forked from mskcc/cwl-commandlinetools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
174 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
docs/postprocessing_variant_calls/maf_annotated_by_bed_0.2.2.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# CWL for annotating a MAF file with a BED file | ||
|
||
## Version of tools in docker image (/container/Dockerfile) | ||
|
||
| Tool | Version | Location | | ||
| ---------------------------- | ------- | ----------------------------------------------------- | | ||
| postprocessing_variant_calls | 0.2.2 | ghcr.io/msk-access/postprocessing_variant_calls:0.2.2 | | ||
|
||
## CWL | ||
|
||
- CWL specification 1.0 | ||
- Use example_inputs.yaml to see the inputs to the cwl | ||
- Example Command using [toil](https://toil.readthedocs.io): | ||
|
||
```bash | ||
> toil-cwl-runner maf_annotated_by_bed.cwl example_inputs.yaml | ||
``` | ||
|
||
**If at MSK, using the JUNO cluster having installed toil version 3.19 and manually modifying [lsf.py](https://github.com/DataBiosphere/toil/blob/releases/3.19.0/src/toil/batchSystems/lsf.py#L170) by removing `type==X86_64 &&` you can use the following command** | ||
|
||
```bash | ||
#Using CWLTOOL | ||
> cwltool --singularity --non-strict /path/to/maf_annotated_by_bed.cwl /path/to/inputs.yaml | ||
|
||
#Using toil-cwl-runner | ||
> mkdir mafAnnotation_toil_log | ||
> toil-cwl-runner --singularity --logFile /path/to/mafAnnotation_toil_log/cwltoil.log --jobStore /path/to/mafAnnotation_jobStore --batchSystem lsf --workDir /path/to/mafAnnotation_toil_log --outdir . --writeLogs /path/to/mafAnnotation_toil_log --logLevel DEBUG --stats --retryCount 2 --disableCaching --maxLogFileSize 20000000000 /path/to/maf_annotated_by_bed.cwl /path/to/inputs.yaml > mafAnnotation_toil.stdout 2> mafAnnotation_toil.stderr & | ||
``` | ||
|
||
### Usage | ||
|
||
```shell | ||
usage: maf_annotated_by_bed.cwl | ||
[-h] [--memory_per_job MEMORY_PER_JOB] | ||
[--memory_overhead MEMORY_OVERHEAD] | ||
[--number_of_threads NUMBER_OF_THREADS] | ||
--input_maf INPUT_MAF | ||
--input_bed INPUT_BED | ||
[--output_filename OUTPUT_FILENAME] | ||
[--column_name COLUMN_NAME] | ||
[job_order] | ||
``` |
42 changes: 42 additions & 0 deletions
42
postprocessing_variant_calls/0.2.2/maf_annotated_by_bed/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# CWL for annotating a MAF file with a BED file | ||
|
||
## Version of tools in docker image (/container/Dockerfile) | ||
|
||
| Tool | Version | Location | | ||
| ---------------------------- | ------- | ----------------------------------------------------- | | ||
| postprocessing_variant_calls | 0.2.2 | ghcr.io/msk-access/postprocessing_variant_calls:0.2.2 | | ||
|
||
## CWL | ||
|
||
- CWL specification 1.0 | ||
- Use example_inputs.yaml to see the inputs to the cwl | ||
- Example Command using [toil](https://toil.readthedocs.io): | ||
|
||
```bash | ||
> toil-cwl-runner maf_annotated_by_bed.cwl example_inputs.yaml | ||
``` | ||
|
||
**If at MSK, using the JUNO cluster having installed toil version 3.19 and manually modifying [lsf.py](https://github.com/DataBiosphere/toil/blob/releases/3.19.0/src/toil/batchSystems/lsf.py#L170) by removing `type==X86_64 &&` you can use the following command** | ||
|
||
```bash | ||
#Using CWLTOOL | ||
> cwltool --singularity --non-strict /path/to/maf_annotated_by_bed.cwl /path/to/inputs.yaml | ||
|
||
#Using toil-cwl-runner | ||
> mkdir mafAnnotation_toil_log | ||
> toil-cwl-runner --singularity --logFile /path/to/mafAnnotation_toil_log/cwltoil.log --jobStore /path/to/mafAnnotation_jobStore --batchSystem lsf --workDir /path/to/mafAnnotation_toil_log --outdir . --writeLogs /path/to/mafAnnotation_toil_log --logLevel DEBUG --stats --retryCount 2 --disableCaching --maxLogFileSize 20000000000 /path/to/maf_annotated_by_bed.cwl /path/to/inputs.yaml > mafAnnotation_toil.stdout 2> mafAnnotation_toil.stderr & | ||
``` | ||
|
||
### Usage | ||
|
||
```shell | ||
usage: maf_annotated_by_bed.cwl | ||
[-h] [--memory_per_job MEMORY_PER_JOB] | ||
[--memory_overhead MEMORY_OVERHEAD] | ||
[--number_of_threads NUMBER_OF_THREADS] | ||
--input_maf INPUT_MAF | ||
--input_bed INPUT_BED | ||
[--output_filename OUTPUT_FILENAME] | ||
[--column_name COLUMN_NAME] | ||
[job_order] | ||
``` |
4 changes: 4 additions & 0 deletions
4
postprocessing_variant_calls/0.2.2/maf_annotated_by_bed/example_inputs.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
columnName: annotation | ||
inputMaf: /path/to/input/maf.maf | ||
input_bed: /path/to/input/bed.bed | ||
output_filename: annotated |
75 changes: 75 additions & 0 deletions
75
postprocessing_variant_calls/0.2.2/maf_annotated_by_bed/maf_annotated_by_bed.cwl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
class: CommandLineTool | ||
cwlVersion: v1.0 | ||
$namespaces: | ||
dct: 'http://purl.org/dc/terms/' | ||
doap: 'http://usefulinc.com/ns/doap#' | ||
foaf: 'http://xmlns.com/foaf/0.1/' | ||
sbg: 'https://www.sevenbridges.com/' | ||
id: maf_annotated_by_bed | ||
baseCommand: | ||
- pv | ||
inputs: | ||
- id: memory_per_job | ||
type: int? | ||
doc: Memory per job in megabytes | ||
- id: memory_overhead | ||
type: int? | ||
doc: Memory overhead per job in megabytes | ||
- id: number_of_threads | ||
type: int? | ||
- id: input_maf | ||
type: File | ||
inputBinding: | ||
position: 0 | ||
prefix: '-m' | ||
- id: input_bed | ||
type: File | ||
inputBinding: | ||
position: 1 | ||
prefix: '-b' | ||
- id: output_filename | ||
type: string? | ||
inputBinding: | ||
position: 3 | ||
prefix: '-o' | ||
- 'sbg:toolDefaultValue': annotation | ||
id: column_name | ||
type: string? | ||
inputBinding: | ||
position: 4 | ||
prefix: '-c' | ||
outputs: | ||
- id: output | ||
type: File | ||
outputBinding: | ||
glob: '*.maf' | ||
label: maf_annotated_by_bed | ||
arguments: | ||
- maf | ||
- annotate | ||
- mafbybed | ||
requirements: | ||
- class: ResourceRequirement | ||
ramMin: 8000 | ||
coresMin: 2 | ||
- class: DockerRequirement | ||
dockerPull: 'ghcr.io/msk-access/postprocessing_variant_calls:0.2.2' | ||
- class: InlineJavascriptRequirement | ||
'dct:contributor': | ||
- class: 'foaf:Organization' | ||
'foaf:member': | ||
- class: 'foaf:Person' | ||
'foaf:mbox': 'mailto:shahr2@mskcc.org' | ||
'foaf:name': Ronak Shah | ||
'foaf:name': Memorial Sloan Kettering Cancer Center | ||
'dct:creator': | ||
- class: 'foaf:Organization' | ||
'foaf:member': | ||
- class: 'foaf:Person' | ||
'foaf:mbox': 'mailto:sivaprk@mskcc.org' | ||
'foaf:name': Karthigayini Sivaprakasam | ||
'foaf:name': Memorial Sloan Kettering Cancer Center | ||
'doap:release': | ||
- class: 'doap:Version' | ||
'doap:name': postprocessing_variant_calls | ||
'doap:revision': 0.0.1 |