Hello everybody,
I wanted to calculate and generate coverage stats for my bam file and i used samtools coverage -m input.bam
This generated a histogram for each chromosome in the command line but it is a little bit hard to understand the output of it. what is the y axis of these histograms. it is shown only in percentages and how is it calculated? any help would be appreciated.
I am also wondering about how i can transfer these histograms from the bash command line into images.
Thank you so much in advance.
Thank you so much. Is there a way also transfer the data that was used for generating these images (histograms). this does not give me enough freedom to edit the images.
don't use option
-m
....It is not the same output. Without -m, it gives only the stats for each chromosome as a whole
then you should just parse the output of
samtools depth
and aggregate the output with any tool like R, awk, etc...