-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from mskcc/release/0.3.0
Release 0.3.0
- Loading branch information
Showing
34 changed files
with
1,259 additions
and
98 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
class: CommandLineTool | ||
cwlVersion: v1.0 | ||
id: alfred_0_1_17 | ||
baseCommand: | ||
- alfred | ||
- qc | ||
inputs: | ||
- id: reference | ||
type: File | ||
inputBinding: | ||
position: 0 | ||
prefix: '--reference' | ||
- id: ignore_rg | ||
type: boolean? | ||
inputBinding: | ||
position: 0 | ||
prefix: '--ignore' | ||
- id: bed | ||
type: File? | ||
inputBinding: | ||
position: 0 | ||
prefix: '--bed' | ||
- id: bam | ||
type: File | ||
inputBinding: | ||
position: 3 | ||
secondaryFiles: | ||
- .bai | ||
- id: read_group | ||
type: string? | ||
inputBinding: | ||
position: 0 | ||
prefix: '--rg' | ||
- id: supplementary | ||
type: boolean? | ||
inputBinding: | ||
position: 0 | ||
prefix: '--supplementary' | ||
- id: secondary | ||
type: boolean? | ||
inputBinding: | ||
position: 0 | ||
prefix: '--secondary' | ||
- id: jsonout | ||
type: string? | ||
inputBinding: | ||
position: 0 | ||
prefix: '--jsonout' | ||
- id: sample_name | ||
type: string? | ||
inputBinding: | ||
position: 0 | ||
prefix: '--name' | ||
- id: outfile | ||
type: string? | ||
outputs: | ||
- id: output | ||
type: File? | ||
outputBinding: | ||
glob: '*.pdf' | ||
- id: output_pdf | ||
type: File? | ||
outputBinding: | ||
glob: '*.tsv.gz' | ||
label: alfred_0.1.17 | ||
arguments: | ||
- position: 4 | ||
prefix: '' | ||
shellQuote: false | ||
valueFrom: '&&' | ||
- position: 5 | ||
prefix: '' | ||
shellQuote: false | ||
valueFrom: Rscript | ||
- position: 6 | ||
prefix: '' | ||
shellQuote: false | ||
valueFrom: /opt/alfred/scripts/stats.R | ||
- position: 7 | ||
prefix: '' | ||
shellQuote: false | ||
valueFrom: |- | ||
${ | ||
if (inputs.outname) { | ||
return inputs.outname + '.tsv.gz'; | ||
} | ||
if (inputs.ignore_rg) { | ||
return inputs.bam.basename.replace('.bam', '') + '.alfred.tsv.gz' | ||
} | ||
return inputs.bam.basename.replace('.bam', '') + 'RG.alfred.tsv.gz' | ||
} | ||
- position: 2 | ||
prefix: '--outfile' | ||
shellQuote: false | ||
valueFrom: |- | ||
${ | ||
if (inputs.outname) { | ||
return inputs.outname + '.tsv.gz'; | ||
} | ||
if (inputs.ignore_rg) { | ||
return inputs.bam.basename.replace('.bam', '') + '.alfred.tsv.gz'; | ||
} | ||
return inputs.bam.basename.replace('.bam', '') + 'RG.alfred.tsv.gz'; | ||
} | ||
requirements: | ||
- class: ShellCommandRequirement | ||
- class: DockerRequirement | ||
dockerPull: 'cmopipeline/alfred:v0.1.17' | ||
- class: InlineJavascriptRequirement |
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,56 @@ | ||
# CWL and Dockerfile for running Bedtools GenomeCov | ||
|
||
## Version of tools in [docker image ](https://hub.docker.com/r/biocontainers/bedtools) | ||
|
||
| Tool | Version | Location | | ||
|--- |--- |--- | | ||
| Bedtools | v2.28.0_cv2 | https://github.com/arq5x/bedtools2/releases/tag/v2.28.0 | | ||
|
||
[![](https://img.shields.io/badge/version-2.28.0_cv2-blue)](https://github.com/arq5x/bedtools2/releases/tag/v2.28.0) | ||
## CWL | ||
|
||
- CWL specification 1.0 | ||
- Use example_inputs.yml to see the inputs to the cwl | ||
- Example Command using [toil](https://toil.readthedocs.io): | ||
|
||
```bash | ||
> toil-cwl-runner bedtools_genomecov_v2.28.0_cv2.cwl example_inputs.yml | ||
``` | ||
|
||
**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 bedtools_genomecov_v2.28.0_cv2.cwl inputs.yaml | ||
|
||
#Using toil-cwl-runner | ||
> mkdir run_directory | ||
> toil-cwl-runner --singularity --logFile path/to/run_directory/cwltoil.log --jobStore path/to/jobStore --batchSystem lsf --workDir /path/to/run_directory --outdir /path/to/run_directory --writeLogs /path/to/run_directory --logLevel DEBUG --stats --retryCount 2 --disableCaching --maxLogFileSize 20000000000 bedtools_genomecov_v2.28.0_cv2.cwl inputs.yaml > file.stdout 2> file.stderr & | ||
``` | ||
|
||
## Usage | ||
|
||
```bash | ||
> toil-cwl-runner bedtools_genomecov_v2.28.0_cv2.cwl --help | ||
|
||
usage: bedtools_genomecov_v2.28.0_cv2.cwl [-h] --input INPUT | ||
--output_file_name OUTPUT_FILE_NAME | ||
[--memory_overhead MEMORY_OVERHEAD] | ||
[--memory_per_job MEMORY_PER_JOB] | ||
[--number_of_threads NUMBER_OF_THREADS] | ||
[--option_bedgraph] | ||
[job_order] | ||
|
||
positional arguments: | ||
job_order Job input json file | ||
|
||
optional arguments: | ||
-h, --help show this help message and exit | ||
--input INPUT The input file can be in BAM format (Note: BAM must be | ||
sorted by position) | ||
--output_file_name OUTPUT_FILE_NAME | ||
--memory_overhead MEMORY_OVERHEAD | ||
--memory_per_job MEMORY_PER_JOB | ||
--number_of_threads NUMBER_OF_THREADS | ||
--option_bedgraph option flag parameter to choose output file format. | ||
-bg refers to bedgraph format |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# CWL and Dockerfile for running Bedtools Merge | ||
|
||
## Version of tools in [docker image ](https://hub.docker.com/r/biocontainers/bedtools) | ||
|
||
| Tool | Version | Location | | ||
|--- |--- |--- | | ||
| Bedtools | v2.28.0_cv2 | https://github.com/arq5x/bedtools2/releases/tag/v2.28.0 | | ||
|
||
[![](https://img.shields.io/badge/version-2.28.0_cv2-blue)](https://github.com/arq5x/bedtools2/releases/tag/v2.28.0) | ||
## CWL | ||
|
||
- CWL specification 1.0 | ||
- Use example_inputs.yml to see the inputs to the cwl | ||
- Example Command using [toil](https://toil.readthedocs.io): | ||
|
||
```bash | ||
> toil-cwl-runner bedtools_merge_v2.28.0_cv2.cwl example_inputs.yml | ||
``` | ||
|
||
**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 bedtools_merge_v2.28.0_cv2.cwl inputs.yaml | ||
|
||
#Using toil-cwl-runner | ||
> mkdir run_directory | ||
> toil-cwl-runner --singularity --logFile path/to/run_directory/cwltoil.log --jobStore path/to/jobStore --batchSystem lsf --workDir /path/to/run_directory --outdir /path/to/run_directory --writeLogs /path/to/run_directory --logLevel DEBUG --stats --retryCount 2 --disableCaching --maxLogFileSize 20000000000 bedtools_merge_v2.28.0_cv2.cwl inputs.yaml > file.stdout 2> file.stderr & | ||
``` | ||
|
||
## Usage | ||
|
||
```bash | ||
> toil-cwl-runner bedtools_merge_v2.28.0_cv2.cwl --help | ||
|
||
usage: bedtools_merge_v2.28.0_cv2.cwl [-h] --input INPUT --output_file_name | ||
OUTPUT_FILE_NAME | ||
[--memory_overhead MEMORY_OVERHEAD] | ||
[--memory_per_job MEMORY_PER_JOB] | ||
[--number_of_threads NUMBER_OF_THREADS] | ||
[--distance_between_features DISTANCE_BETWEEN_FEATURES] | ||
[job_order] | ||
|
||
positional arguments: | ||
job_order Job input json file | ||
|
||
optional arguments: | ||
-h, --help show this help message and exit | ||
--input INPUT BEDgraph format file generated from Bedtools Genomecov | ||
module | ||
--output_file_name OUTPUT_FILE_NAME | ||
--memory_overhead MEMORY_OVERHEAD | ||
--memory_per_job MEMORY_PER_JOB | ||
--number_of_threads NUMBER_OF_THREADS | ||
--distance_between_features DISTANCE_BETWEEN_FEATURES | ||
Maximum distance between features allowed for features | ||
to be merged. |
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
Oops, something went wrong.