Skip to content

Commit

Permalink
fix typo in eager_tsv script
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmeaton committed Apr 27, 2021
1 parent 62c1c5c commit f36ae76
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
6 changes: 3 additions & 3 deletions results/config/snakemake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ sqlite_select_command_asm : SELECT
(BioSampleComment LIKE '%KEEP%Assembly%Modern%'
AND length(AssemblyFTPGenbank) > 0
AND length(BioSampleCollectionDate) > 0)
OR (BioSampleComment LIKE '%KEEP%Assembly%Modern%Outgroup%')


sqlite_select_command_sra : SELECT
BioSampleAccession,
Expand Down Expand Up @@ -100,7 +100,7 @@ iqtree_runs : 1
iqtree_other : "--ufboot 1000"

# Outgroup Option #1: Reference
#iqtree_outgroup : "Reference"
iqtree_outgroup : "Reference"

# Outgroup Option #2: Basal modern clade
#iqtree_outgroup : "GCA_000323485.1_ASM32348v1_genomic,GCA_000323845.1_ASM32384v1_genomic"
Expand All @@ -109,4 +109,4 @@ iqtree_other : "--ufboot 1000"
#iqtree_outgroup : "SAMEA3541826"

# Outgroup Option #4: Outgroup
iqtree_outgroup : "GCA_900637475.1_51108_B01_genomic,GCA_000834295.1_ASM83429v1_genomic"
#iqtree_outgroup : "GCA_900637475.1_51108_B01_genomic,GCA_000834295.1_ASM83429v1_genomic"
5 changes: 3 additions & 2 deletions workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,10 @@ rule all:
# Multiqc
#multiqc_all_input,
# Phylo
iqtree_all_input,
#iqtree_all_input,
# Post-Phylo
#lsd_all_input,
lsd_all_input,
snippy_multi_filter_prune_all_input,
# Plot
plot_missing_data_all_input,
plot_snp_matrix_all_input,
Expand Down
4 changes: 2 additions & 2 deletions workflow/rules/alignment.smk
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ rule eager:
final_bam = results_dir + "/eager/{reads_origin}/{sample}/final_bams/{sample}.bam",
eager_tsv = results_dir + "/eager/{reads_origin}/{sample}/metadata_{sample}.tsv",
log_html = results_dir + "/eager/{reads_origin}/{sample}/{sample}.html",
#log_txt = results_dir + "/eager/{reads_origin}/{sample}/{sample}.log",
log_txt = results_dir + "/eager/{reads_origin}/{sample}/{sample}.log",
wildcard_constraints:
reads_origin = "(sra|local)",
resources:
Expand Down Expand Up @@ -58,7 +58,7 @@ rule eager:
--max_memory {resources.mem_mb}.MB \
--max_time {resources.time_min}m \
{config[eager_other]} \
-resume;
-resume > {output.log_txt};
{scripts_dir}/eager_cleanup.sh {results_dir} {wildcards.reads_origin} {wildcards.sample};
"""

Expand Down
4 changes: 4 additions & 0 deletions workflow/scripts/eager_tsv.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@
sample_file_dict[sample_name] = {}
# Iterate through the single or paired fastq files
for library_file in sample_files:
# Catch random log files
library_ext = os.path.splitext(library_file)[1]
if library_ext != ".fastq" and library_ext != ".gz":
continue
library_id = library_file.split("_")[0]
if library_id not in sample_file_dict[sample_name]:
sample_file_dict[sample_name][library_id] = []
Expand Down

0 comments on commit f36ae76

Please sign in to comment.