Google Cloud plugin for Nextflow
Summary
The Google Cloud plugin provides support for Google Cloud Platform (GCP), including Google Cloud Batch as a compute executor and Google Cloud Storage as a file system.
Get Started
To use this plugin, add it to your nextflow.config:
plugins {
id 'nf-google'
}
Configure your Google Cloud credentials and project:
google {
project = '<YOUR PROJECT ID>'
location = 'us-central1'
}
process.executor = 'google-batch'
workDir = 'gs://<YOUR BUCKET>/work'
Authentication can be done via:
- Application Default Credentials
- Service account JSON key file
- Workload Identity (for GKE)
Examples
Basic Google Cloud Batch Configuration
plugins {
id 'nf-google'
}
google {
project = 'my-gcp-project'
location = 'europe-west1'
batch {
spot = true
}
}
process.executor = 'google-batch'
workDir = 'gs://my-bucket/work'
Using Service Account
google {
project = 'my-gcp-project'
location = 'us-central1'
credentials = '/path/to/service-account.json'
}
Machine Type Configuration
process {
executor = 'google-batch'
machineType = 'n2-standard-4'
disk = '100 GB'
}