Skip to content

Commit e4c0cba

Browse files
committed
Updated with batch patches. Submodule 2 works. Submodule 3 might have errors ran out of time
1 parent ea05d31 commit e4c0cba

4 files changed

Lines changed: 278 additions & 266 deletions

File tree

AWS/Submodule_2_annotation_only.ipynb

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -293,11 +293,11 @@
293293
"outputs": [],
294294
"source": [
295295
"# replace batch bucket name in nextflow configuration file\n",
296-
"! sed -i \"s/aws-batch-nigms-batch-bucket-/$BUCKET_NAME/g\" ../denovotranscript/nextflow.config\n",
296+
"! sed -i \"s/aws-batch-nigms-batch-bucket-/$BUCKET_NAME/g\" /home/ec2-user/SageMaker/Transcriptome-Assembly-Refinement-and-Applications/denovotranscript/nextflow.config\n",
297297
"# replace job queue name in configuration file \n",
298-
"! sed -i \"s/aws-batch-nigms-JobQueue/$AWS_QUEUE/g\" ../denovotranscipt/nextflow.config\n",
298+
"! sed -i \"s/aws-batch-nigms-JobQueue/$AWS_QUEUE/g\" /home/ec2-user/SageMaker/Transcriptome-Assembly-Refinement-and-Applications/denovotranscipt/nextflow.config\n",
299299
"# replace the region placeholder with the region you are in \n",
300-
"! sed -i \"s/aws-region/$AWS_REGION/g\" ../denovotranscipt/nextflow.config"
300+
"! sed -i \"s/aws-region/$AWS_REGION/g\" /home/ec2-user/SageMaker/Transcriptome-Assembly-Refinement-and-Applications/denovotranscipt/nextflow.config"
301301
]
302302
},
303303
{
@@ -330,8 +330,12 @@
330330
"metadata": {},
331331
"outputs": [],
332332
"source": [
333-
"! nextflow run ../denovotranscript/main.nf --input ../denovotranscript/test_samplesheet_aws.csv -profile aws \\\n",
334-
"--run_mode annotation_only --transcript_fasta s3://nigms-sandbox/nosi-inbremaine-storage/resources/trans/Oncorhynchus_mykiss_GGBN01.1.fa"
333+
"! nextflow run /home/ec2-user/SageMaker/Transcriptome-Assembly-Refinement-and-Applications/denovotranscript/main.nf \\\n",
334+
" --input /home/ec2-user/SageMaker/Transcriptome-Assembly-Refinement-and-Applications/denovotranscript/test_samplesheet_aws.csv \\\n",
335+
" -profile docker,awsbatch \\\n",
336+
" -c /home/ec2-user/SageMaker/Transcriptome-Assembly-Refinement-and-Applications/denovotranscript/nextflow.config \\\n",
337+
" --run_mode annotation_only \\\n",
338+
" --transcript_fasta s3://nigms-sandbox/nosi-inbremaine-storage/resources/trans/Oncorhynchus_mykiss_GGBN01.1.fa --awsqueue $AWS_QUEUE --awsregion $AWS_REGION"
335339
]
336340
},
337341
{

AWS/Submodule_3_basic_assembly.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,9 @@
300300
"metadata": {},
301301
"outputs": [],
302302
"source": [
303-
"! nextflow run main.nf --input test_samplesheet.csv -profile aws --run_mode full"
303+
"! nextflow run /home/ec2-user/SageMaker/Transcriptome-Assembly-Refinement-and-Applications/denovotranscript/main.nf \\\n",
304+
" --input /home/ec2-user/SageMaker/Transcriptome-Assembly-Refinement-and-Applications/denovotranscript/test_samplesheet_aws.csv \\\n",
305+
" -profile awsbatch --run_mode full --awsqueue $AWS_QUEUE --awsregion $AWS_REGION "
304306
]
305307
},
306308
{

denovotranscript/nextflow.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ params {
8282
igenomes_ignore = false
8383

8484
// Boilerplate options
85-
outdir = null
85+
//outdir = null
8686
publish_dir_mode = 'copy'
8787
email = null
8888
email_on_fail = null
@@ -112,7 +112,7 @@ includeConfig 'conf/base.config'
112112

113113
profiles {
114114

115-
aws {
115+
awsbatch {
116116
process {
117117
executor = 'awsbatch'
118118
queue = params.awsqueue // Name of your Job queue

0 commit comments

Comments
 (0)