Skip to content

Commit

Permalink
medaka cpu only
Browse files Browse the repository at this point in the history
  • Loading branch information
yanhui09 committed Feb 2, 2024
1 parent 3131263 commit 3037b35
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
1 change: 0 additions & 1 deletion laca/workflow/config_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ racon:
medaka:
iter: 1
m: r941_min_hac_g507
cudnn: False
##############################################################
# create abundance matrix by sequence id or minimap2 mapping, the first is the final
# seqid|minimap2: seqid, recommended in pool mode; minimap2, recommended in single sample mode
Expand Down
10 changes: 2 additions & 8 deletions laca/workflow/rules/consensus.smk
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ rule medaka_consensus:
ext = ["_to_draft.bam", "_to_draft.bam.bai"])),
params:
m = config["medaka"]["m"],
cudnn = 'CUDA_VISIBLE_DEVICES=""' if config["medaka"]["cudnn"] is False else 'TF_FORCE_GPU_ALLOW_GROWTH=true',
cudnn = 'CUDA_VISIBLE_DEVICES=""',
_dir = "{consensus}/polish/{bc_cls_cand}/medaka_{iter2}",
inedxs = lambda wc: get_medaka_files(wc, index = True),
conda: "../envs/medaka.yaml"
Expand All @@ -406,16 +406,10 @@ rule medaka_consensus:
mkdir -p {params._dir} 2> {log}
touch {output} 2>> {log}
else
export OLD_LD_LIBRARY_PATH=${{LD_LIBRARY_PATH}}
export LD_LIBRARY_PATH="$CONDA_PREFIX/lib":${{LD_LIBRARY_PATH}}
export TF_CPP_MIN_LOG_LEVEL='2'
export TF_CPP_MIN_LOG_LEVEL='3'
export {params.cudnn}
medaka_consensus -i {input.fastq} -d {input.fna} -o {params._dir} -t {threads} -m {params.m} > {log} 2>&1
rm -f {params.inedxs}
export LD_LIBRARY_PATH=${{OLD_LD_LIBRARY_PATH}}
unset OLD_LD_LIBRARY_PATH
fi
"""

Expand Down

0 comments on commit 3037b35

Please sign in to comment.