Created
July 23, 2020 15:03
-
-
Save jodyphelan/cab8e4b846cabb2b251997bf0e4f000d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget ftp://ftp.ensemblgenomes.org/pub/release-32/bacteria//fasta/bacteria_0_collection/mycobacterium_tuberculosis_h37rv/dna/Mycobacterium_tuberculosis_h37rv.ASM19595v2.dna.toplevel.fa.gz | |
gunzip Mycobacterium_tuberculosis_h37rv.ASM19595v2.dna.toplevel.fa.gz | |
mv Mycobacterium_tuberculosis_h37rv.ASM19595v2.dna.toplevel.fa H37Rv.fa | |
printf "Chromosome\t5\tX\tT\n" > snp.txt | |
printf "Chromosome\t50000\tX\tT\n" >> snp.txt | |
seqtk mutfa H37Rv.fa snp.txt >mutant.fa | |
# My current command | |
minimap2 H37Rv.fa mutant.fa --cs | sort -k6,6 -k8,8 | paftools.js call -l 100 -L 100 -f H37Rv.fa -s test - | |
# With -x asm5 | |
minimap2 H37Rv.fa mutant.fa --cs -x asm5 | sort -k6,6 -k8,8 | paftools.js call -l 100 -L 100 -f H37Rv.fa -s test - | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment