Skip to content

Script to calculate depth and breath of coverage for contigs in a BAMfile, using the output from samtools mpileup

Notifications You must be signed in to change notification settings

tvandervalk/mpileup-to-coverage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Description

Script to calculate depth and breath of coverage for contigs in a BAMfile, using the output from samtools mpileup

Runs as follows:

python mtDNA_coverages.py fasta_headers.txt reference.fai filename.depth

Required files:

fasta_header.txt: Headers of the reference fasta file. Can be obtained by running grep ">" reference.fna > fasta_header.txt

reference.fai: Length of the contigs. Can be obtained running samtools faidx reference.fna

filename.mpile: Output from samtools depth. Can be obtained by running samtools depth filename.bam > filename.depth

About

Script to calculate depth and breath of coverage for contigs in a BAMfile, using the output from samtools mpileup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages