-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add FastQC to Optimus and SmartSeq2 #202
Open
kachulis
wants to merge
15
commits into
master
Choose a base branch
from
ck_fastqc
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 all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
5abc522
Adding FastQC to optimus and SS2
kachulis 6646b3c
remove test workflow
kachulis 497f2a0
run fastqc on only subset of reads in fastqs
kachulis 6f3bda6
adding dependencies to fix tests; reverting to draft2
kachulis 23e57ed
adjusting disk size calculations
kachulis 2436d2f
tests:
kachulis 0905e04
fixing tests
kachulis 5adc1a6
fixing tests
kachulis e866909
tests
kachulis 78b4ef3
tests
kachulis b296533
tests should now pass...
kachulis abb02f0
Phil comments
kachulis 2b84308
tests
kachulis e794f71
tests
kachulis c139eef
fixing tests
kachulis 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,50 @@ | ||
task FastQC { | ||
Array[File] fastq_files | ||
File? limits_file | ||
Int startRead = 250000 | ||
Int nRead = 250000 | ||
String docker = "quay.io/biocontainers/fastqc:0.11.8--1" | ||
Int machine_mem_mb = 3850 | ||
Int disk = 100 | ||
Int preemptible = 3 | ||
|
||
String dollar = "$" | ||
parameter_meta { | ||
fastq_files: "input fastq files" | ||
limits_file: "(optional) limits file to use with fastqc" | ||
startRead: "(optional) start fastqc at the nth read of the file" | ||
nRead: "(optional) use (at most) n reads for fastqc" | ||
docker: "(optional) the docker image containing the runtime environment for this task" | ||
disk: "(optional) the amount of disk space (GiB) to provision for this task" | ||
preemptible: "(optional) if non-zero, request a pre-emptible instance and allow for this number of preemptions before running the task on a non preemptible machine" | ||
machine_mem_mb: "(optional) the amount of memory (MiB) to provision for this task" | ||
|
||
} | ||
|
||
command <<< | ||
set -e | ||
|
||
mkdir outputs | ||
declare -a fastqs=() | ||
for fastq in ${sep=' ' fastq_files} | ||
do | ||
outname=`basename ${dollar}fastq .fastq.gz`_skip${startRead}_read${nRead}.fastq | ||
zcat ${dollar}fastq | head -n ${4*(startRead + nRead)} | tail -n ${4*nRead} > ${dollar}outname | ||
fastqs+=(${dollar}outname) | ||
done | ||
|
||
fastqc ${dollar}{fastqs[@]} -o outputs ${"--limits " + limits_file} | ||
>>> | ||
|
||
runtime { | ||
docker: docker | ||
memory: "${machine_mem_mb} MiB" | ||
disks: "local-disk ${disk} HDD" | ||
preemptible: preemptible | ||
} | ||
|
||
output { | ||
Array[File] fastqc_htmls = glob("outputs/*.html") | ||
Array[File] fastqc_zips = glob("outputs/*.zip") | ||
} | ||
} |
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
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
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
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
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.
If you are expecting multiple zips or htmls then I think
select_all()
would be better here.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.
Since only one of
FastQC
andFastQCNoIndex
will ever be run, usingselect_all()
would just result in an extra unnecessary level of array.