-
Notifications
You must be signed in to change notification settings - Fork 4
/
runthrough.sh
26 lines (20 loc) · 850 Bytes
/
runthrough.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# install nextflow
export NXF_MODE=google
curl https://get.nextflow.io | bash
# gsutil if you like
# pip install gsutil
# setup google access -- YOU NEED TO EDIT
export GOOGLE_APPLICATION_CREDENTIALS=~/Downloads/curatedmetagenomicdata-f7fc1489b036.json
# where to put stuff -- YOU NEED TO EDIT
export GOOGLE_BUCKET_NAME=temp-testing-cmgd
# make bucket if it doesn't exist
gsutil mb gs://$GOOGLE_BUCKET_NAME
# pull the workflow directly from github
nextflow pull seandavi/curatedMetagenomicsNextflow -r main # could be a specific revision
# And run with sample data
nextflow run seandavi/curatedMetagenomicsNextflow \
-profile google \
-work-dir gs://$GOOGLE_BUCKET_NAME/work \
-r main \
--metadata_tsv https://raw.githubusercontent.com/seandavi/curatedMetagenomicsNextflow/main/samplesheet.test.tsv \
--bucket gs://$GOOGLE_BUCKET_NAME