-
Notifications
You must be signed in to change notification settings - Fork 90
Dsl2-polyg-polyx-filtering #1177
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
base: dev
Are you sure you want to change the base?
Changes from all commits
6b75295
efc160b
9a2c863
d7ba141
938777b
91dbf89
2abc08c
9b77958
6d483ae
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -401,16 +401,36 @@ | |||||
| "preprocessing_fastp_complexityfilter": { | ||||||
| "type": "boolean", | ||||||
| "description": "Specify to turn on sequence complexity filtering of reads.", | ||||||
| "help_text": "Performs a poly-G tail removal step in the beginning of the pipeline using fastp.\n\nThis can be useful for trimming ploy-G tails from short-fragments sequenced on two-colour Illumina chemistry such as NextSeqs or NovaSeqs (where no-fluorescence is read as a G on two-colour chemistry), which can inflate reported GC content values.\n\n> Modifies fastp parameter: `--trim_poly_g`", | ||||||
| "help_text": "Performs a read complexity filtering step using fastp.\n\nThis can be useful for removing highly repetitive and low-complexity reads from downstream analysis.\n\n> Modifies fastp parameter: `--low_complexity_filter`", | ||||||
| "fa_icon": "fas fa-power-off" | ||||||
| }, | ||||||
| "preprocessing_fastp_complexityfilter_threshold": { | ||||||
| "type": "integer", | ||||||
| "default": 10, | ||||||
| "description": "Specify the complexity threshold that must be reached or exceeded to retain reads.", | ||||||
| "help_text": "This option can be used to define the minimum length of a poly-G tail to begin low complexity trimming.\n\n> Modifies fastp parameter: `--poly_g_min_len`", | ||||||
| "help_text": "This option can be used to define the complexity of a read to be retained for downstream analysis.\n\n> Modifies fastp parameter: `--complexity_threshold`", | ||||||
| "fa_icon": "fas fa-filter" | ||||||
| }, | ||||||
| "preprocessing_fastp_disable_polygfilter": { | ||||||
| "type": "boolean", | ||||||
| "description": "Specify to disable poly-G filtering of 2 colour chemistry reads.", | ||||||
| "fa_icon": "fas fa-power-off", | ||||||
| "help_text": "This option will disable fastp-based poly-G trimming carried out by default on all 2 colour chemistry sequencing data.\n\n> Modifies fastp parameter: `--disable_trim_poly_g`" | ||||||
| }, | ||||||
| "preprocessing_fastp_polygfilter_minlength": { | ||||||
| "type": "integer", | ||||||
| "default": 10, | ||||||
| "description": "Specify length of poly-g min for clipping to be performed on 2 colour chemistry datasets.", | ||||||
| "help_text": "This option can be used to define the minimum length of a poly-G tail to begin low complexity trimming on 2 colour chemistry datasets. In short-fragments sequenced on two-colour Illumina chemistry such as NextSeqs or NovaSeqs, where no-fluorescence is read as a G on two-colour chemistry, poly-G tails can inflate reported GC content values and cause mapability issues downstream.\n\n> Modifies fastp parameter: `--poly_g_min_len`", | ||||||
| "fa_icon": "fas fa-ruler-horizontal" | ||||||
| }, | ||||||
| "preprocessing_fastp_polyxfilter_minlength": { | ||||||
| "type": "integer", | ||||||
| "default": 0, | ||||||
| "description": "Specify the complexity threshold that must be reached or exceeded to retain reads.", | ||||||
| "help_text": "This option can be used to define the minimum length of a poly-X (A,T,C,N) tail to begin low complexity trimming following poly-G trimming (if performed). This would be carried out on all sequencing data, regardless of the colour chemistry.\n\n> Modifies fastp parameter: `--trim_poly_x` and `--poly_x_min_len`", | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If setting the parameter to 0 disables polyx filtering, it should be clearly stated.
Suggested change
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, the FastP docs have slightly confusing phrasing about this. Does this happen AFTER poly-G or before poly-G trimming?
|
||||||
| "fa_icon": "fas fa-ruler-horizontal" | ||||||
| }, | ||||||
| "preprocessing_adapterremoval_preserve5p": { | ||||||
| "type": "boolean", | ||||||
| "description": "Skip AdapterRemoval quality and N base trimming at 5 prime end.", | ||||||
|
|
||||||
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.
Doesn't this turn on polyG filtering only for 4-colour chem, but force it off for 2-colour chem? 🤔 Maybe that's why the tests were failing?
Either way, I think this should be restructured to use a single option for enable/disable, as described in the review.
The min length parameter can then be independent from this logic and always set (except if FastP complains when min length is set while disabling the filter).