Skip to content

Commit

Permalink
Merge pull request #22 from EBI-Metagenomics/filter_operator
Browse files Browse the repository at this point in the history
Filter operator fix
  • Loading branch information
jmattock5 authored Nov 20, 2024
2 parents 36f9c8e + 8aa06e7 commit 686fe47
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ SRR6180434,short_reads_filter_ratio_threshold_exceeded
| Exclusion Message | Description |
| --------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `short_reads_filter_ratio_threshold_exceeded` | The maximum fraction of reads that are allowed to be filtered out. If exceeded, it flags excessive filtering. The default value is 0.9, meaning that if more than 90% of the reads are filtered out, the threshold is considered exceeded, and the run is not assembled. |
| `short_reads_filter_ratio_threshold_exceeded` | The maximum fraction of reads that are allowed to be filtered out. If exceeded, it flags excessive filtering. The default value is 0.1, meaning that if less than 10% of the reads are retained after filtering, the threshold is considered exceeded, and the run is not assembled. |
| `short_reads_low_reads_count_threshold` | The minimum number of reads required after filtering. If below, it flags a low read count, and the run is not assembled. |
#### Assembled Runs
Expand Down
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ params {
// QC FILTERING

// Short reads QC filtering options
short_reads_filter_ratio_threshold = 0.9
short_reads_filter_ratio_threshold = 0.1
short_reads_low_reads_count_threshold = 1000

// Long reads options
Expand Down
4 changes: 2 additions & 2 deletions nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@
"properties": {
"short_reads_filter_ratio_threshold": {
"type": "number",
"description": "The maximum fraction of reads that are allowed to be filtered out. If exceeded, it flags excessive filtering. The default value is 0.9, meaning that if more than 90% of the reads are filtered out, the threshold is considered exceeded, and the run is not assembled.",
"default": 0.9,
"description": "The maximum fraction of reads that are allowed to be filtered out. If exceeded, it flags excessive filtering. The default value is 0.1, meaning that if less than 10% of the reads are retained after filtering, the threshold is considered exceeded, and the run is not assembled.",
"default": 0.1,
"minimum": 0.0,
"maximum": 1.0
},
Expand Down
2 changes: 1 addition & 1 deletion workflows/short_reads_assembler.nf
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ workflow SHORT_READS_ASSEMBLER {

/******************************************/
/* Reads that fail the following rules: */
/* - Reads discarded by fastp > 90% (default value) */
/* - Reads kept by fastp < 10% (default value) */
/* - Less than 1k reads */
/******************************************/
extended_qc = SHORT_READS_QC.out.fastp_json.map { meta, json -> {
Expand Down

0 comments on commit 686fe47

Please sign in to comment.