Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
site the file is incorporated into. You can learn more about the `github_url` field at:
https://sphinx-rtd-theme.readthedocs.io/en/stable/configuring.html#confval-github_url

Reads QC Workflow (v1.0.14-alpha.1)
Reads QC Workflow
=============================

.. image:: lrrqc_workflow2024.svg
Expand Down Expand Up @@ -39,6 +39,7 @@ The following parameters are used for :literal:`rqcfilter2` in this workflow::
- removemouse=true : Remove mouse reads via mapping.
- barcodefilter=false : Disable improper barcodes filter
- chastityfilter=false: Remove illumina reads failing chastity filter.
- filterbytile=false : Remove reads from low-quality parts of the flowcell.
- trimfragadapter=true: Trim all known Illumina adapter sequences, including TruSeq and Nextera.
- removemicrobes=true : Remove common contaminant microbial reads via mapping, and place them in a separate file.

Expand Down
4 changes: 3 additions & 1 deletion rqcfilter.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ workflow rqcfilter{
Boolean interleaved
Boolean shortRead
Boolean? chastityfilter_flag
Boolean? filterbytile_flag
}

Boolean has_accessions = defined(accessions) && length(select_first([accessions, []])) > 0
Expand Down Expand Up @@ -42,7 +43,8 @@ workflow rqcfilter{
input_fq2 = if is_interleaved then [] else select_first([sra2fastq.output_fq2, input_fq2]),
interleaved = is_interleaved,
proj = proj,
chastityfilter_flag = if (has_accessions) then false else chastityfilter_flag
chastityfilter_flag = if (has_accessions) then false else chastityfilter_flag,
filterbytile_flag = if (has_accessions) then false else filterbytile_flag
}
}

Expand Down
7 changes: 6 additions & 1 deletion shortReadsqc.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ workflow ShortReadsQC {
String database="/refdata/"
Int rqc_mem = 180
Boolean? chastityfilter_flag
Boolean? filterbytile_flag
}

if (interleaved) {
Expand Down Expand Up @@ -43,7 +44,8 @@ workflow ShortReadsQC {
database = database,
memory = rqc_mem,
container = bbtools_container,
chastityfilter_flag = chastityfilter_flag
chastityfilter_flag = chastityfilter_flag,
filterbytile_flag = filterbytile_flag
}

call stats_jsons {
Expand Down Expand Up @@ -183,6 +185,7 @@ task rqcfilter {
String database
String rqcfilterdata = database + "/RQCFilterData"
Boolean chastityfilter_flag=true
Boolean filterbytile_flag=true
Int memory
Int xmxmem = floor(memory * 0.75)
Int threads
Expand All @@ -192,6 +195,7 @@ task rqcfilter {
String filename_stat2="filtered/filterStats2.txt"
String filename_reproduce="filtered/reproduce.sh"
String chastityfilter= if (chastityfilter_flag) then "cf=t" else "cf=f"
String filterbytile = if (filterbytile_flag) then "filterbytile=t" else "filterbytile=f"
}

command <<<
Expand Down Expand Up @@ -221,6 +225,7 @@ task rqcfilter {
removecat=t \
removemouse=t \
khist=t \
~{filterbytile} \
removemicrobes=t \
sketch \
kapa=t \
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.0.24
v1.0.25