rotary-genomics / rotary

Assembly/annotation workflow for Nanopore-based microbial genome data containing circular DNA elements
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

Simplify read mapping file extension code in rules. #124

Closed LeeBergstrand closed 5 months ago

LeeBergstrand commented 5 months ago

Problem Description:

There is a more straightforward to account for multiple extensions rather than the code below.

read_mapping_files= temp(expand("{{sample}}/{{step}}/polypolish/input/{{sample}}_input.fasta.{ext}", ext=READ_MAPPING_FILE_EXTENSIONS))

Problem Solution:

Use this instead:

read_mapping_files= temp(multiext("{sample}/{step}/polypolish/input/{{sample}}_input.fasta", *READ_MAPPING_FILE_EXTENSIONS))
jmtsuji commented 5 months ago

Closed via #125