This repository has been archived by the owner on Oct 2, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 62
[WIP] Hiveplots workflow demo & tool descriptions #44
Open
mr-c
wants to merge
14
commits into
master
Choose a base branch
from
hiveplots
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 12 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
2033668
blank file to start hiveplots branch
mr-c 5a1dceb
initial description of vawk
mr-c 6775ba9
tabs to spaces
mr-c 7c5d9e2
update to draft3.dev3
mr-c 8afb57f
Initial cwl tool for vcftobedpe from hall-lab/svtools
brainstorm 75244b0
add sample job, fix vawk def
mr-c d4a17d7
Stray arguments from samtools, removed
brainstorm 7da8018
Remove all metadata and ontologies stuff... for now
brainstorm d4f8a40
Merge branch 'hiveplots' of github.com:common-workflow-language/workf…
brainstorm 5ec9ed0
rename vawk output
mr-c f576f2a
Working vcftobedpe cwl tool
brainstorm 76f0ffe
Merge branch 'hiveplots' of github.com:common-workflow-language/workf…
brainstorm c04e060
Jobfile for vcftobedpe, thanks @mr-c for the heads up
brainstorm 80ba936
add docker hint
mr-c File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/usr/bin/env cwl-runner | ||
|
||
cwlVersion: "cwl:draft-3.dev2" | ||
|
||
class: CommandLineTool | ||
|
||
description: | | ||
Usage: vcftobedbpe -i <in.vcf> -o [out.bedpe] | ||
|
||
requirements: | ||
- "@import": envvar-global.cwl | ||
|
||
inputs: | ||
- id: "#input" | ||
type: File | ||
description: | | ||
"Input vcf file." | ||
streamable: true | ||
inputBinding: | ||
prefix: "-i" | ||
|
||
stdout: | ||
"output.bedpe" | ||
|
||
outputs: | ||
- id: "#bedpe" | ||
type: File | ||
description: "The bedpe file" | ||
streamable: true | ||
outputBinding: | ||
glob: "output.bedpe" | ||
|
||
baseCommand: ["vcftobedpe"] |
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,7 @@ | ||
{ | ||
"input": { | ||
"class": "File", | ||
"path": "../test-files/APGI2049_Tumor-manta.vcf" | ||
}, | ||
"cmd": "{ print $1 }" | ||
} |
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,68 @@ | ||
#!/usr/bin/env cwl-runner | ||
|
||
cwlVersion: "cwl:draft-3.dev2" | ||
|
||
class: CommandLineTool | ||
|
||
requirements: | ||
- "@import": envvar-global.cwl | ||
|
||
description: | | ||
usage: vawk [-h] [-v VAR] [-c INFO_COL] [--header] [--debug] cmd [vcf] | ||
positional arguments: | ||
cmd vawk command syntax is exactly the same as awk syntax with | ||
a few additional features. The INFO field can be split using | ||
the I$ prefix and the SAMPLE field can be split using | ||
the S$ prefix. For example, I$AF prints the allele frequency of | ||
each variant and S$NA12878 prints the entire SAMPLE field for the | ||
NA12878 individual for each variant. S$* returns all samples. | ||
The SAMPLE field can be further split based on the keys in the | ||
FORMAT field of the VCF (column 9). For example, S$NA12877$GT | ||
returns the genotype of the NA12878 individual. | ||
ex: '{ if (I$AF>0.5) print $1,$2,$3,I$AN,S$NA12878,S$NA12877$GT }' | ||
vcf VCF file (default: stdin) | ||
optional arguments: | ||
-h, --help show this help message and exit | ||
-v VAR, --var VAR declare an external variable (e.g.: SIZE=10000) | ||
-c INFO_COL, --col INFO_COL | ||
column of the INFO field [8] | ||
--header print VCF header | ||
--debug debugging level verbosity | ||
|
||
inputs: | ||
- id: "#cmd" | ||
type: string | ||
description: | | ||
vawk command syntax is exactly the same as awk syntax with a few | ||
additional features. The INFO field can be split using the I$ prefix | ||
and the SAMPLE field can be split using the S$ prefix. For example, | ||
I$AF prints the allele frequency of each variant and S$NA12878 prints | ||
the entire SAMPLE field for the NA12878 individual for each variant. | ||
S$* returns all samples. The SAMPLE field can be further split based on | ||
the keys in the FORMAT field of the VCF (column 9). For example, | ||
S$NA12877$GT returns the genotype of the NA12878 individual. | ||
ex: '{ if (I$AF>0.5) print $1,$2,$3,I$AN,S$NA12878,S$NA12877$GT }' | ||
inputBinding: | ||
position: 1 | ||
streamable: true | ||
|
||
- id: "#input" | ||
type: File | ||
description: | | ||
VCF file | ||
inputBinding: | ||
position: 2 | ||
|
||
stdout: | ||
"output.vcf" | ||
|
||
outputs: | ||
- id: "#processed" | ||
type: File | ||
description: "The resulting VCF file" | ||
streamable: true | ||
outputBinding: | ||
glob: "output.vcf" | ||
|
||
|
||
baseCommand: ["vawk"] |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a good practice to provide output file name for stdout
draft2 example: