Skip to content

Commit

Permalink
Removing quality filter option from cli
Browse files Browse the repository at this point in the history
  • Loading branch information
skchronicles committed Apr 3, 2024
1 parent b5d50b5 commit 8ddcd67
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 22 deletions.
20 changes: 3 additions & 17 deletions mpox-seek
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,6 @@ def parsed_arguments(name, description):
[--silent] [--threads THREADS] [--tmp-dir TMP_DIR] \\
[--resource-bundle RESOURCE_BUNDLE] [--use-conda] \\
[--conda-env-name CONDA_ENV_NAME] \\
[--quality-filter QUALITY_FILTER] \\
--input INPUT [INPUT ...] \\
--output OUTPUT
Expand All @@ -404,10 +403,7 @@ def parsed_arguments(name, description):
Example: --output /data/$USER/output
{3}{4}Analysis options:{5}
--quality-filter QUALITY_FILTER
Filter reads on a minimum average quality score. The
default average minimum quality filter is set to 8.
Example: --quality-filter 8
More analysis option coming soon!
{3}{4}Orchestration options:{5}
--mode {{slurm,local}}
Expand Down Expand Up @@ -529,7 +525,7 @@ def parsed_arguments(name, description):
# Step 2A.) Dry-run the pipeline
./{0} run --input .tests/*.fastq.gz \\
--output /data/$USER/output \\
--output output_01 \\
--mode slurm \\
--dry-run
Expand All @@ -538,7 +534,7 @@ def parsed_arguments(name, description):
# the cluster. It is recommended running
# the pipeline in this mode.
./{0} run --input .tests/*.fastq.gz \\
--output /data/$USER/output \\
--output output_01 \\
--mode slurm
{2}{3}Version:{4}
Expand Down Expand Up @@ -575,16 +571,6 @@ def parsed_arguments(name, description):
help = argparse.SUPPRESS
)

# Analysis Arguments
# Minimum average read quality filter
subparser_run.add_argument(
'--quality-filter',
type = int,
required = False,
default = 8,
help = argparse.SUPPRESS
)

# Optional Arguments
# Add custom help message
subparser_run.add_argument(
Expand Down
4 changes: 0 additions & 4 deletions workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ samples2barcodes = config['barcodes'] # Samples to demultiplex, `cat` t
# means they need to be merged
barcoded_samples = [k for k in samples2barcodes if samples2barcodes[k]]
samples = list(config['barcodes'].keys())
# Read average quality score filter
quality_filter = int(
config['options']['quality_filter']
) # Default: 8

# Determines if Conda or Singularity
# are used for software dependencies
Expand Down
2 changes: 1 addition & 1 deletion workflow/rules/trim.smk
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ rule nanofilt:
flt = join(workpath, "{name}", "fastqs", "{name}.filtered.fastq.gz"),
params:
rname='nanofilt',
qual_filt=quality_filter,
qual_filt=8,
conda: depending(conda_yaml_or_named_env, use_conda)
container: depending(config['images']['mpox-seek'], use_singularity)
shell:
Expand Down

0 comments on commit 8ddcd67

Please sign in to comment.