This repository was 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
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 #74 from SciDAP/master
Test files & sccript for bam-genomecov-bigwig.cwl workflow
- Loading branch information
Showing
7 changed files
with
53 additions
and
83 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Script has to be run in current directory ./test/test-files | ||
|
||
#download test files | ||
wget -q -O - ftp://hgdownload.cse.ucsc.edu/goldenPath/dm3/chromosomes/chr4.fa.gz|gunzip >dm3_chr4.fa | ||
wget -q -O - https://scidap.com/tests/dm3.gtf.bz2 | bunzip2 > dm3_chr4.gtf | ||
wget -q -O - https://scidap.com/tests/SRR1031972.fastq.bz2 |bunzip2 > SRR1031972.fastq | ||
mkdir -p dm3 | ||
|
||
#generate required files. Reference genome. Align reads. Create index. | ||
cd .. | ||
cwltool ../tools/STAR.cwl ./STAR-genomeGenerate-job.json | ||
cwltool ../tools/STAR.cwl ./STAR-alignReads-job.json | ||
cwltool ../tools/samtools-index.cwl ./samtools-index-job.json | ||
mv SRR1031972.Aligned.sortedByCoord.out.bam.bai ./test-files/ | ||
cd test-files | ||
|
||
#link the job file into current directory. and run the pipeline | ||
ln -s ../../workflows/scidap/bam-genomecov-bigwig-job.json ./bam-genomecov-bigwig-job.json | ||
cwltool --tmpdir-prefix $(pwd) --tmp-outdir-prefix $(pwd) --debug ../../workflows/scidap/bam-genomecov-bigwig.cwl ./bam-genomecov-bigwig-job.json | ||
rm ./bam-genomecov-bigwig-job.json |
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
{ | ||
"input": { | ||
"class": "File", | ||
"path": "./test-files/rna.SRR948778.bam" | ||
"path": "./SRR1031972.Aligned.sortedByCoord.out.bam" | ||
}, | ||
"genomeFile": { | ||
"class": "File", | ||
"path": "./test-files/mm10-chrNameLength.txt" | ||
"path": "./dm3/chrNameLength.txt" | ||
}, | ||
"scale": 1, | ||
"dept":"-bg", | ||
"bigWig": "./rna.SRR948778.bigwig" | ||
"bigWig": "./SRR1031972.bigwig" | ||
} |