unimap -t {threads} --secondary=no -a --eqx -Y -x asm20 \
-s 10000 -r 200000 \
{input.ref} {input.asm} \
| samtools view -F 260 -u - \
| samtools sort -m {resources.mem}G -@ {threads} - \
> {output.bam}
bedtools bamtobed -i {output.bam} | bedtools sort -i - | cut -f 1,2,3,4,5 > {output.bed}
Rscript ideogram.R --asm test_data/chm13.hifi.to.hg38.bed --plot chm13.pdf
(see test_data/chm13.pdf
for example output)
Ideal for comparing two assemblies or two haplotypes.
Rscript ideogram.R --asm test_data/chm13.hifi.to.hg38.bed --asm2 test_data/AK1.to.hg38.bed --plot chm13_ak1.pdf
(see test_data/chm13_ak1.pdf
for example output)