Skip to content

Commit

Permalink
Merge pull request #224 from leoisl/fix/223
Browse files Browse the repository at this point in the history
Fix COBS filtering not properly taken into account and Minimap instances created even for 0 queries
  • Loading branch information
karel-brinda authored Apr 3, 2023
2 parents e8e681b + 6a46608 commit 5e2b239
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ rule decompress_cobs:
cobs_index=f"{decompression_dir}/{{batch}}.cobs_classic",
input:
xz=f"{cobs_dir}/{{batch}}.cobs_classic.xz",
decompressed_indexes_sizes="data/decompressed_indexes_sizes.txt",
resources:
max_io_heavy_threads=1,
params:
Expand Down
4 changes: 3 additions & 1 deletion scripts/batch_align.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ def load_qdicts(query_fn, accession_fn):
# batch accession filtering on & not in this batch
pass

# STEP 3: Ensure everything get converted to standard dicts
# STEP 3: Filter rname_to_qnames to references that have at least one COBS match
rname_to_qnames = {k: v for k, v in rname_to_qnames.items() if len(v) > 0}

logging.info(f"Query dictionaries loaded")
return qname_to_qfa, rname_to_qnames

Expand Down

0 comments on commit 5e2b239

Please sign in to comment.