Skip to content

Commit

Permalink
Merge pull request #24 from sunbeam-labs/22-allow-for-fa-and-fasta-ex…
Browse files Browse the repository at this point in the history
…tensions-in-host-dir

Allow .fna host extension as well
  • Loading branch information
Ulthran authored Jun 6, 2024
2 parents 9e3c8fd + 1ddee2b commit 65ead77
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sbx_mapping.smk
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ else:
if not GenomeFiles:
GenomeFiles = [f for f in Cfg["sbx_mapping"]["genomes_fp"].glob("*.fa")]
HOST_FILE_EXT = ".fa"
if not GenomeFiles:
GenomeFiles = [f for f in Cfg["sbx_mapping"]["genomes_fp"].glob("*.fna")]
HOST_FILE_EXT = ".fna"
GenomeSegments = {
PurePath(g.name).stem: read_seq_ids(Cfg["sbx_mapping"]["genomes_fp"] / g)
for g in GenomeFiles
Expand Down

0 comments on commit 65ead77

Please sign in to comment.