-
Notifications
You must be signed in to change notification settings - Fork 5
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
1 parent
77330fa
commit c7467ff
Showing
39 changed files
with
241 additions
and
2,477 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.DS_Store | ||
._.DS_Store | ||
.idea |
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 |
---|---|---|
@@ -1,20 +1,32 @@ | ||
# ChIP-Seq CWL pipeline from BioWardrobe | ||
# ChIP-Seq-SE CWL pipeline from BioWardrobe | ||
|
||
This workflow is a CWL version of a Python pipeline from BioWardrobe (Kartashov and Barski, 2015). It starts by using BowTie (Langmead et al., 2009) to perform alignment to a reference genome, resulting in an unsorted SAM file. The SAM file is then sorted and indexed with samtools (Li et al., 2009) to obtain a BAM file and a BAI index. Next MACS2 (Zhang et al., 2008) is used to call peaks and to estimate fragment size. In the last few steps, the coverage by estimated fragments is calculated from the BAM file and is reported in bigWig format. The pipeline also reports statistics, such as read quality, peak number and base frequency, and other troubleshooting information using tools such as [fastx-toolkit](http://hannonlab.cshl.edu/fastx_toolkit/) and [bamtools](https://github.com/pezmaster31/bamtools). | ||
This workflow is a CWL version of a Python pipeline from BioWardrobe (Kartashov and Barski, 2015). | ||
It starts by extracting input FASTQ file (if it was compressed). Next step runs | ||
BowTie (Langmead et al., 2009) to perform alignment to a reference genome, | ||
resulting in an unsorted SAM file. The SAM file is then sorted and indexed with Samtools | ||
(Li et al., 2009) to obtain a BAM file and a BAI index. Next MACS2 (Zhang et al., 2008) | ||
is used to call peaks and to estimate fragment size. In the last few steps, the coverage | ||
by estimated fragments is calculated from the BAM file and is reported in bigWig format. | ||
The pipeline also reports statistics, such as read quality, peak number and base frequency, | ||
and other troubleshooting information using tools such as | ||
[fastx-toolkit](http://hannonlab.cshl.edu/fastx_toolkit/) and | ||
[bamtools](https://github.com/pezmaster31/bamtools). | ||
|
||
This workflow (v0.0.2) is being used for GA4GH/DREAM challenge (phase 2). | ||
This workflow (v0.0.2) is being used for | ||
[GA4GH-DREAM Workflow Execution Challenge](https://www.synapse.org/#!Synapse:syn8507133/wiki/415976). | ||
|
||
The pipeline scheme is available in the Wiki. | ||
|
||
To download workflow with testing input data use | ||
**To download workflow with the testing input data run the following command** | ||
``` | ||
git clone --recursive https://github.com/Barski-lab/ga4gh_challenge.git | ||
``` | ||
It will clone submodule [ga4gh_challenge_data](https://github.com/michael-kotliar/ga4gh_challenge_data) | ||
into `data`folder. | ||
Uncompress input FASTQ file using | ||
``` | ||
cd ga4gh_challenge/data | ||
./prepare_inputs.sh | ||
``` | ||
> tested with cwltool==1.0.20180116213856 | ||
It will also clone submodule [ga4gh_challenge_data](https://github.com/michael-kotliar/ga4gh_challenge_data) | ||
into the *data* folder and uncompress input FASTQ file. | ||
|
||
|
||
 | ||
Pipeline scheme generated by [Rabix Composer](http://rabix.io/). | ||
|
||
|
||
*tested with cwltool==1.0.20180622214234* |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#!/usr/bin/env cwl-runner | ||
|
||
cwlVersion: v1.0 | ||
class: Workflow | ||
|
||
|
@@ -88,14 +86,7 @@ steps: | |
default: "-bg" | ||
split: | ||
source: split | ||
valueFrom: | | ||
${ | ||
if (self == null){ | ||
return true; | ||
} else { | ||
return self; | ||
} | ||
} | ||
default: true | ||
output_filename: bedgraph_filename | ||
pairchip: pairchip | ||
fragment_size: fragment_size | ||
|
@@ -119,71 +110,4 @@ steps: | |
bedgraph_file: sort_bedgraph/sorted_file | ||
chrom_length_file: chrom_length_file | ||
output_filename: bigwig_filename | ||
out: [bigwig_file] | ||
|
||
$namespaces: | ||
s: http://schema.org/ | ||
|
||
$schemas: | ||
- http://schema.org/docs/schema_org_rdfa.html | ||
|
||
s:name: "bam-bedgraph-bigwig" | ||
s:downloadUrl: hhttps://raw.githubusercontent.com/Barski-lab/ga4gh_challenge/master/workflows/bam-bedgraph-bigwig.cwl | ||
s:codeRepository: https://github.com/Barski-lab/ga4gh_challenge | ||
s:license: http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
s:isPartOf: | ||
class: s:CreativeWork | ||
s:name: Common Workflow Language | ||
s:url: http://commonwl.org/ | ||
|
||
s:creator: | ||
- class: s:Organization | ||
s:legalName: "Cincinnati Children's Hospital Medical Center" | ||
s:location: | ||
- class: s:PostalAddress | ||
s:addressCountry: "USA" | ||
s:addressLocality: "Cincinnati" | ||
s:addressRegion: "OH" | ||
s:postalCode: "45229" | ||
s:streetAddress: "3333 Burnet Ave" | ||
s:telephone: "+1(513)636-4200" | ||
s:logo: "https://www.cincinnatichildrens.org/-/media/cincinnati%20childrens/global%20shared/childrens-logo-new.png" | ||
s:department: | ||
- class: s:Organization | ||
s:legalName: "Allergy and Immunology" | ||
s:department: | ||
- class: s:Organization | ||
s:legalName: "Barski Research Lab" | ||
s:member: | ||
- class: s:Person | ||
s:name: Michael Kotliar | ||
s:email: mailto:[email protected] | ||
s:sameAs: | ||
- id: http://orcid.org/0000-0002-6486-3898 | ||
- class: s:Person | ||
s:name: Andrey Kartashov | ||
s:email: mailto:[email protected] | ||
s:sameAs: | ||
- id: http://orcid.org/0000-0001-9102-5681 | ||
|
||
doc: | | ||
Workflow converts input BAM file into bigWig and bedGraph files | ||
|
||
s:about: | | ||
Workflow converts input BAM file into bigWig and bedGraph files. | ||
|
||
Input BAM file should be sorted by coordinates (required by `bam_to_bedgraph` step). | ||
|
||
If `split` input is not provided use true by default. Default logic is implemented in `valueFrom` field of `split` | ||
input inside `bam_to_bedgraph` step to avoid possible bug in cwltool with setting default values for workflow inputs. | ||
|
||
`scale` has higher priority over the `mapped_reads_number`. The last one is used to calculate `-scale` parameter for | ||
`bedtools genomecov` (step `bam_to_bedgraph`) only in a case when input `scale` is not provided. All logic is | ||
implemented inside `bedtools-genomecov.cwl`. | ||
|
||
`bigwig_filename` defines the output name only for generated bigWig file. `bedgraph_filename` defines the output name | ||
for generated bedGraph file and can influence on generated bigWig filename in case when `bigwig_filename` is not provided. | ||
|
||
All workflow inputs and outputs don't have `format` field to avoid format incompatibility errors when workflow is used | ||
as subworkflow. | ||
out: [bigwig_file] |
Oops, something went wrong.