Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasEskildsen committed Jul 5, 2024
1 parent 4e025ab commit a883884
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 1 addition & 5 deletions workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ include: "rules/11-prep_for_phyloseq.smk"
include: "rules/12-phyloseq_abund_blast.smk"
include: "rules/13-ampvis2_std_plots.smk"
include: "rules/capture_config.smk" # <- this is a custom rule to capture the config file and changes to config file
### Validate configuration options for "include_sintax_output" and "include_blast_output"
def validate_boolean_config(config_value, config_name):
if not isinstance(config_value, bool):
raise ValueError(f"Invalid value for {config_name}: '{config_value}'. It must be True or False (case-sensitive).")
# Validate the configuration values
# Validate the configuration values, using
validate_boolean_config(config["include_blast_output"], "include_blast_output")
validate_boolean_config(config["include_sintax_output"], "include_sintax_output")

Expand Down
5 changes: 4 additions & 1 deletion workflow/rules/common.smk
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
## Wildcards helper function - new version, this is the one located in the exp branch.
import glob
import os

### Validate configuration options for "include_sintax_output" and "include_blast_output"
def validate_boolean_config(config_value, config_name):
if not isinstance(config_value, bool):
raise ValueError(f"Invalid value for {config_name}: '{config_value}'. It must be True or False (case-sensitive).")
# Wildcards helper function
def listFastq(wildcards):
sample_path = os.path.join(config['input_dir'])
Expand Down
1 change: 0 additions & 1 deletion workflow/scripts/nanoplot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ statistics() {
export -f statistics

parallel -j "$JobNr" statistics ::: "${files[@]}" ::: $((threads / JobNr)) ::: "$output_dir"
module purge


echo "Check your amplicon size and quality before setting parameters for chopper filtering, used in the snakemake workflow. Filtering settings can be changed in the config file. \"config/config.yaml\""

0 comments on commit a883884

Please sign in to comment.