Skip to content

Commit

Permalink
udpate
Browse files Browse the repository at this point in the history
  • Loading branch information
RAHenriksen committed Jan 2, 2025
1 parent fd1726b commit 6adfa51
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
2 changes: 2 additions & 0 deletions bifrost_chewbbaca/pipeline_blat.smk
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ rule blat_gene_call:
gene_call_results = directory(f"{component['name']}/blat_gene_call_results"),
gene_calls = f"{component['name']}/blat_gene_call_results/gene_calls.fa",
gene_call_done = f"{component['name']}/blat_gene_call_done"
message:
f"Running step:{rule_name}, outputs: {component['name']}/blat_gene_call_results"
script:
os.path.join(os.path.dirname(workflow.snakefile), "rule__blat_genecall.py")

Expand Down
20 changes: 12 additions & 8 deletions bifrost_chewbbaca/rule__mmseqs_genecall.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,23 +78,27 @@ def parse_mmseqs_output(output_tsv, assembly_sequences):

return alleles

def run_mmseqs_and_parse(query_fa, db_fa, output_tsv, assembly_sequences):
def run_mmseqs_and_parse(query_fa, db, output_tsv, assembly_sequences):
"""
Runs mmseqs and processes the outputs.
"""
# Define the mmseqs command
mmseqs_cmd = [
"mmseqs easy-search",
db_fa,
"mmseqs",
"easy-linsearch",
query_fa,
db,
output_tsv,
"tmp",
"--search-type",'4',
"--format-mode",'0'
"-format-output",'query,target,tlen,pident,alnlen,mismatch,gapopen,qstart,qend,tstart,tend,evalue,bits'
"--min-seq-id",0.9
"--search-type",'3',
"--format-mode",'0',
"--format-output",'query,target,tlen,pident,alnlen,mismatch,gapopen,qstart,qend,tstart,tend,evalue,bits',
"--min-seq-id",'0.9',
"--threads",'6',
"--remove-tmp-files",'1',
]
# mmseqs easy-search assemblatron__v2.3.3/test_cdiff_single___2405W4378.fasta all_Clostridioides_loci.fa alnRes.tsv tmp --search-type 4 --format-mode 0 --format-output "query,target,tlen,pident,alnlen,mismatch,gapopen,qstart,qend,tstart,tend,evalue,bits" --min-seq-id 0.9
print(f"msmeqs commands {mmseqs_cmd}")
#mmseqs easy-linsearch assemblatron__v2.3.3/test_cdiff_single___2405W4378.fasta all_Clostridioides_loci_db alnRes.tsv tmp --search-type 3 --threads 6 --min-seq-id 0.9 --remove-tmp-files 1 --format-mode 0 --format-output "query,target,qlen,pident,alnlen,mismatch,gapopen,qstart,qend,tstart,tend,evalue,bits"

# Run mmseqs
try:
Expand Down

0 comments on commit 6adfa51

Please sign in to comment.