Skip to content

Commit

Permalink
feat: add configurable chunk size option to minos_config.yaml for bla…
Browse files Browse the repository at this point in the history
…st/diamond jobs to reduce HPC overhead
  • Loading branch information
gemygk committed Feb 12, 2024
1 parent 4f6407d commit 8fed890
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions minos/etc/minos_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ params:
quant: "-b 100"
blast:
makeblastdb: "-dbtype prot"
chunk_size: 1000
blastp: "-max_target_seqs 1 -evalue 1e-5"
blastx: "-max_target_seqs 1 -evalue 1e-5"
tophit:
pident_threshold: 0.0
qcov_threshold: 0.0
diamond:
makedb: ""
chunk_size: 20000
blastp: "--max-target-seqs 1 --evalue 1e-5"
blastx: "--max-target-seqs 1 --evalue 1e-5"
tophit:
Expand Down
2 changes: 1 addition & 1 deletion minos/zzz/minos_run.smk
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ checkpoint minos_chunk_proteins:
log:
os.path.join(LOG_DIR, os.path.basename(rules.minos_gffread_extract_sequences.output.pep if config["blast-mode"] == "blastp" else rules.minos_gffread_extract_sequences.output.cds) + ".chunk.log")
params:
chunksize = 1000,
chunksize = config["params"]["diamond"]["chunk_size"] if config["use-diamond"] else config["params"]["blast"]["chunk_size"],
outdir = os.path.join(TEMP_DIR, "chunked_proteins")
threads:
HPC_CONFIG.get_cores("minos_chunk_proteins")
Expand Down

0 comments on commit 8fed890

Please sign in to comment.