Alignment
Ensure there is bwa
in the environment. If not, install using this:
1 | git clone https://github.com/lh3/bwa.git |
or
1 | sudo apt install bwa |
Ensure there are reference in .fasta
and reads_R1 & reads_R2 in .fastq
or .fq
.
1 | #Create Index Files |
Follow-up processing
Ensure there are samtools
and bcftools
in the environment. If not, install using this:
1 | sudo apt install samtools |
then use samtools
,
1 | # Convert SAM to BAM |
and use bcftools
to process .mpileup
file and call mutations.
1 | bcftools mpileup -f reference.fasta aln-pe.sorted.bam | bcftools call -mv -Ov > variants.vcf |