Skip to content
This repository was archived by the owner on Aug 9, 2023. It is now read-only.

Commit 182e361

Browse files
committed
examples cleanup
1 parent 63ef2b7 commit 182e361

File tree

9 files changed

+35
-43
lines changed

9 files changed

+35
-43
lines changed

src/aws-genomics-cdk/app.config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"accountID": "840249831562",
2+
"accountID": "111111111111",
33
"region": "us-west-2",
44
"projectName": "genomics",
55
"tags": [{
@@ -13,7 +13,7 @@
1313
],
1414
"S3": {
1515
"existingBucket": true,
16-
"bucketName": "genomics-pipelines-840249831562"
16+
"bucketName": "YOUR-BUCKET-NAME"
1717
},
1818
"VPC": {
1919
"createVPC": true,

src/aws-genomics-cdk/examples/batch-bwa-job.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"jobName": "bwa",
33
"jobQueue": "genomics-default-queue",
4-
"jobDefinition": "bwa:3",
4+
"jobDefinition": "bwa:1",
55
"containerOverrides": {
66
"command": ["bwa mem -t 8 -p -o ${SAMPLE_ID}.sam ${REFERENCE_NAME}.fasta ${SAMPLE_ID}_*1*.fastq.gz"],
77
"environment": [{
88
"name": "JOB_INPUTS",
9-
"value": "s3://genomics-pipelines-840249831562/sample/ s3://genomics-pipelines-840249831562/hg38/v0/"
9+
"value": "s3://aws-batch-genomics-shared/secondary-analysis/example-files/fastq/NIST7035* s3://broad-references/hg38/v0/Homo_sapiens_assembly38.fasta*"
1010
},
1111
{
1212
"name": "SAMPLE_ID",
@@ -22,11 +22,7 @@
2222
},
2323
{
2424
"name": "JOB_OUTPUT_PREFIX",
25-
"value": "s3://genomics-pipelines-840249831562/output"
26-
},
27-
{
28-
"name": "JOB_INPUT_S3_COPY_METHOD",
29-
"value": "s3sync"
25+
"value": "s3://YOUR-BUCKET-NAME/output"
3026
}
3127
]
3228
}

src/aws-genomics-cdk/examples/batch-fastqc-job.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"jobName": "fastqc",
33
"jobQueue": "genomics-default-queue",
4-
"jobDefinition": "fastqc:3",
4+
"jobDefinition": "fastqc:1",
55
"containerOverrides": {
66
"command": ["fastqc *.gz"],
77
"environment": [{
@@ -14,7 +14,7 @@
1414
},
1515
{
1616
"name": "JOB_OUTPUT_PREFIX",
17-
"value": "s3://genomics-pipelines-840249831562/output"
17+
"value": "s3://YOUR-BUCKET-NAME/output"
1818
}
1919
]
2020
}

src/aws-genomics-cdk/examples/batch-gatk-dictionary.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
"command": ["java -jar /usr/app/picard.jar CreateSequenceDictionary R=Homo_sapiens_assembly38.fasta O=Homo_sapiens_assembly38.dict"],
77
"environment": [{
88
"name": "JOB_INPUTS",
9-
"value": "s3://genomics-pipelines-840249831562/hg38/v0/Homo_sapiens_assembly38.fasta"
9+
"value": "s3://broad-references/hg38/v0/Homo_sapiens_assembly38.fasta"
1010
},
1111
{
1212
"name": "JOB_OUTPUTS",
1313
"value": "*.dict"
1414
},
1515
{
1616
"name": "JOB_OUTPUT_PREFIX",
17-
"value": "s3://genomics-pipelines-840249831562/hg38/v0"
17+
"value": "s3://YOUR-BUCKET-NAME/ref"
1818
}
1919
]
2020
}

src/aws-genomics-cdk/examples/batch-gatk-htc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"command": ["gatk --java-options \"-Xmx4g\" HaplotypeCaller -R ${REFERENCE_NAME}.fasta -I ${SAMPLE_ID}.bam -O ${SAMPLE_ID}.vcf.gz -bamout ${SAMPLE_ID}.out.bam"],
77
"environment": [{
88
"name": "JOB_INPUTS",
9-
"value": "s3://genomics-pipelines-840249831562/output/ s3://genomics-pipelines-840249831562/hg38/v0/"
9+
"value": "s3://YOUR-BUCKET-NAME/ref s3://YOUR-BUCKET-NAME/samples"
1010
},
1111
{
1212
"name": "SAMPLE_ID",
@@ -22,7 +22,7 @@
2222
},
2323
{
2424
"name": "JOB_OUTPUT_PREFIX",
25-
"value": "s3://genomics-pipelines-840249831562/output"
25+
"value": "s3://YOUR-BUCKET-NAME/output"
2626
},
2727
{
2828
"name": "JOB_INPUT_S3_COPY_METHOD",

src/aws-genomics-cdk/examples/batch-minimap2-job.json

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,17 @@
77
"memory": 16000,
88
"command": ["minimap2 -ax map-pb Homo_sapiens_assembly38.fasta NIST7035_R1_trim_samp-0p1.fastq.gz > NIST7035.sam"],
99
"environment": [{
10-
"name": "JOB_INPUTS",
11-
"value": "s3://broad-references/hg38/v0/Homo_sapiens_assembly38.fasta s3://aws-batch-genomics-shared/secondary-analysis/example-files/fastq/NIST7035_R1_trim_samp-0p1.fastq.gz"
12-
},
13-
{
14-
"name": "JOB_OUTPUTS",
15-
"value": "*.sam"
16-
},
17-
{
18-
"name": "JOB_OUTPUT_PREFIX",
19-
"value": "s3://[YOUR BUCKET NAME]/[SOME PREFIX]"
20-
},
21-
{
22-
"name": "JOB_AWS_CLI_PATH",
23-
"value": "/opt/aws-cli/bin"
24-
}
10+
"name": "JOB_INPUTS",
11+
"value": "s3://broad-references/hg38/v0/Homo_sapiens_assembly38.fasta s3://aws-batch-genomics-shared/secondary-analysis/example-files/fastq/NIST7035_R1_trim_samp-0p1.fastq.gz"
12+
},
13+
{
14+
"name": "JOB_OUTPUTS",
15+
"value": "*.sam"
16+
},
17+
{
18+
"name": "JOB_OUTPUT_PREFIX",
19+
"value": "s3://YOUR-BUCKET-NAME/output"
20+
}
2521
]
2622
}
27-
}
23+
}

src/aws-genomics-cdk/examples/batch-picard-add-missing-groups.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"jobDefinition": "picardAddMissingGroups:1",
55
"containerOverrides": {
66
"command": ["java -jar /usr/picard/picard.jar AddOrReplaceReadGroups",
7-
" -I ${SAMPLE_ID}.bam -O ${SAMPLE_ID}.rg.bam -RGID 4 --RGLB lib1 ",
8-
" --RGPL ILLUMINA --RGPU unit1 --RGSM 20;",
9-
" cp ${SAMPLE_ID}.rg.bam ${SAMPLE_ID}.bam;",
10-
" rm ${SAMPLE_ID}.rg.bam"],
7+
" -I ${SAMPLE_ID}.bam -O ${SAMPLE_ID}.rg.bam -RGID 4 --RGLB lib1 ",
8+
" --RGPL ILLUMINA --RGPU unit1 --RGSM 20;",
9+
" mv ${SAMPLE_ID}.rg.bam ${SAMPLE_ID}.bam;"
10+
],
1111
"environment": [{
1212
"name": "JOB_INPUTS",
13-
"value": "s3://genomics-pipelines-840249831562/output/NIST7035.bam"
13+
"value": "s3://YOUR-BUCKET-NAME/samples/NIST7035.bam"
1414
},
1515
{
1616
"name": "SAMPLE_ID",
@@ -22,8 +22,8 @@
2222
},
2323
{
2424
"name": "JOB_OUTPUT_PREFIX",
25-
"value": "s3://genomics-pipelines-840249831562/output"
25+
"value": "s3://YOUR-BUCKET-NAME/output"
2626
}
2727
]
2828
}
29-
}
29+
}

src/aws-genomics-cdk/examples/batch-samtools-index.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"jobName": "samtoolsIndex",
33
"jobQueue": "genomics-default-queue",
4-
"jobDefinition": "samtoolsIndex:2",
4+
"jobDefinition": "samtoolsIndex:1",
55
"containerOverrides": {
66
"command": ["samtools index ${SAMPLE_ID}.bam"],
77
"environment": [{
88
"name": "JOB_INPUTS",
9-
"value": "s3://genomics-pipelines-840249831562/output/NIST7035.bam"
9+
"value": "s3://YOUR-BUCKET-NAME/samples/NIST7035.bam"
1010
},
1111
{
1212
"name": "SAMPLE_ID",
@@ -18,7 +18,7 @@
1818
},
1919
{
2020
"name": "JOB_OUTPUT_PREFIX",
21-
"value": "s3://genomics-pipelines-840249831562/output"
21+
"value": "s3://YOUR-BUCKET-NAME/output"
2222
}
2323
]
2424
}

src/aws-genomics-cdk/examples/batch-samtools-sort.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"command": ["samtools sort -@ 4 -o ${SAMPLE_ID}.bam ${SAMPLE_ID}.sam"],
77
"environment": [{
88
"name": "JOB_INPUTS",
9-
"value": "s3://genomics-pipelines-840249831562/output/NIST7035.sam"
9+
"value": "s3://YOUR-BUCKET-NAME/samples/NIST7035.sam"
1010
},
1111
{
1212
"name": "SAMPLE_ID",
@@ -18,7 +18,7 @@
1818
},
1919
{
2020
"name": "JOB_OUTPUT_PREFIX",
21-
"value": "s3://genomics-pipelines-840249831562/output"
21+
"value": "s3://YOUR-BUCKET-NAME/output"
2222
}
2323
]
2424
}

0 commit comments

Comments
 (0)