Skip to content

Commit

Permalink
Merge branch 'new_schemes' of github.com:ssi-dk/bifrost_chewbbaca int…
Browse files Browse the repository at this point in the history
…o new_schemes
  • Loading branch information
kriskiil committed Nov 22, 2024
2 parents 34774ff + 38f0df6 commit 68a333b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion bifrost_chewbbaca/pipeline.smk
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import os
import sys
import traceback

from pathlib import Path
from bifrostlib import common
from bifrostlib.datahandling import SampleReference
from bifrostlib.datahandling import Sample
Expand Down Expand Up @@ -85,6 +86,7 @@ rule check_requirements:
samplecomponent
run:
if samplecomponent.has_requirements():
if not Path(output.check_file).exists():
with open(output.check_file, "w") as fh:
fh.write("")

Expand Down Expand Up @@ -150,7 +152,7 @@ rule run_chewbbaca_on_genome:
genome = rules.blast_gene_call.output.gene_calls
output:
chewbbaca_results = directory(f"{component['name']}/chewbbaca_results"),
results_tsv = f"{component['name']}/chewbbaca_results/output/results_alleles.tsv",
#results_tsv = f"{component['name']}/chewbbaca_results/output/results_alleles.tsv",
chewbbaca_done = f"{component['name']}/chewbbaca_done"
params:
samplecomponent_ref_json = samplecomponent.to_reference().json,
Expand Down
2 changes: 1 addition & 1 deletion bifrost_chewbbaca/rule__blast_genecall.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def reverse_complement_check(seq):
"""
Checks if the sequence should be reverse complemented based on its starting pattern.
"""
return seq.startswith(('tta', 'tca', 'cta'))
return seq.lower().startswith(('tta', 'tca', 'cta'))


def extract_subsequences(fasta_sequences, alleles):
Expand Down

0 comments on commit 68a333b

Please sign in to comment.