What is this result from samtools idxstats?
1
1
Entering edit mode
10.4 years ago

When running samtools idxstats on an indexed BAM file foo.bam in order to build a list of chromosomes, I get a result that includes a line I'm not sure how to interpret:

$ samtools idxstats foo.bam | cut -f1
chr1
chr10
chr11
...
chrY
*

What is the asterisk supposed to refer to, when I iterate through this list and extract data from that chromosome?

samtools bam bai index • 5.5k views
ADD COMMENT
0
Entering edit mode

Thanks :-) Lige hvad jeg skulle bruge.

ADD REPLY
1
Entering edit mode
A Møøse once bit my sister...
ADD REPLY
5
Entering edit mode
10.4 years ago

in the code of bam_index.c

printf("*\t0\t0\t%llu\n", (long long)idx->n_no_coor);

where n_no_coor = "unmapped reads without coordinate"

ADD COMMENT
0
Entering edit mode

Thanks for the code citation!

ADD REPLY

Login before adding your answer.

Traffic: 1825 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6