adding nextflow w batch sample - #159
Conversation
| */ | ||
| workDir = 'gs://<bucketname>/scratch' | ||
| google.location = 'us-central1' | ||
| google.project = '<GCP project name>' |
There was a problem hiding this comment.
Is there a better way to pass these variables? Manually editing the config file is a bit cumbersome. How about creating a template compatible with envsubst?
// nextflow.config.template
profiles {
'google-batch' {
params.transcriptome = 'gs://rnaseq-nf/data/ggal/transcript.fa'
params.reads = 'gs://rnaseq-nf/data/ggal/gut_{1,2}.fq'
params.multiqc = 'gs://rnaseq-nf/multiqc'
process.executor = 'google-batch'
process.container = 'docker.io/nextflow/rnaseq-nf:v1.3.1'
workDir = 'gs://${GCP_BUCKET_NAME}/scratch'
google.location = '${GCP_REGION}'
google.project = '${GCP_PROJECT_ID}'
google.batch.allowedLocations = ['regions/${GCP_REGION}']
// Network configuration
google.batch.network = 'global/networks/${GCP_NETWORK_NAME}'
google.batch.subnetwork = 'regions/${GCP_REGION}/subnetworks/${GCP_SUBNET_NAME}'
}
}
There was a problem hiding this comment.
I updated the nextflow.config and also README.md Please review.
There was a problem hiding this comment.
You don't want to do the envsubst thing?
There was a problem hiding this comment.
Not planning to add since there is only one file to modify.
adding the nextflow batch sample .