This repository contains examples for the [Google Genomics Pipelines API] (https://cloud.google.com/genomics/reference/rest/v1alpha2/pipelines).
|This is an Alpha release of Google Genomics API. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.|
The API provides an easy way to create, run, and monitor command-line tools on Google Compute Engine running in a Docker container. You can use it like you would a job scheduler.
The most common use case is to run an off-the-shelf tool or custom script that reads and writes files. You may want to run such a tool over files in Google Cloud Storage. You may want to run this independently over hundreds or thousands of files.
The typical flow for a pipeline is:
- Create a Compute Engine virtual machine
- Copy one or more files from Cloud Storage to a disk
- Run the tool on the file(s)
- Copy the output to Cloud Storage
- Destroy the Compute Engine virtual machine
You can submit batch operations from your laptop, and have them run in the cloud. You can do the packaging to Docker yourself, or use existing Docker images.
- Clone or fork this repository.
- If you plan to create your own Docker images, then install docker: https://docs.docker.com/engine/installation/#installation
- Follow the Google Genomics getting started instructions to set up your Google Cloud Project. The Pipelines API requires that the following are enabled in your project:
- Follow the Google Genomics getting started instructions to install and authorize the Google Cloud SDK.
- Install or update the python client via
pip install --upgrade google-api-python-client. For more detail see https://cloud.google.com/genomics/v1/libraries.
- Compress or Decompress files
- Run FastQC over a list of BAM or FASTQ files
- Use samtools to create a BAM index file
- Use a custom script in Cloud Storage to update a VCF header
- Use Bioconductor to count overlaps in a BAM file
- Use Cromwell and WDL to orchestrate a multi-stage workflow