Skip to content

Commit 43f20db

Browse files
committed
updating to only output hit genomes with no secondary chains in sam from minimap2
1 parent 916a26c commit 43f20db

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pangolin/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
_program = "pangolin"
2-
__version__ = "2.4.1"
2+
__version__ = "2.4.2"

pangolin/scripts/pangolearn.smk

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ rule align_to_reference:
4444
os.path.join(config["tempdir"], "logs/minimap2_sam.log")
4545
shell:
4646
"""
47-
minimap2 -a -x asm5 -t {workflow.cores} {input.reference:q} {input.fasta:q} | \
47+
minimap2 -a -x asm5 --sam-hit-only --secondary=no -t {workflow.cores} {input.reference:q} '{input.fasta}' | \
4848
gofasta sam toMultiAlign \
4949
-t {workflow.cores} \
5050
--reference {input.reference:q} \
5151
--trimstart {params.trim_start} \
5252
--trimend {params.trim_end} \
5353
--trim \
54-
--pad > {output.fasta:q}
54+
--pad > '{output.fasta}'
5555
"""
5656

5757
rule pangolearn:

0 commit comments

Comments
 (0)