Skip to content
Prev 6166 / 21312 Next

[Bioc-devel] should genome() be so complicated?/add genome report to GRanges show method

On 09/08/2014 11:41 AM, Michael Lawrence wrote:
OK, maybe. Don't trust my memory too much on this. No regrets though.
I think it was the right thing to do ;-) Just because the SAM/BAM
format does it is a good enough reason for us to do it too. According
to the SAM Spec, the header can look like:

   @HD	VN:1.3	SO:coordinate
   @SQ	SN:chr1_hg19	LN:45	AS:hg19
   @SQ	SN:chr1_mm10	LN:42	AS:mm10

The only problem is that seqinfo(BamFile("test.bam")) seems to ignore
the AS tag (genome assembly identifier) at the moment:

   > seqinfo(BamFile("test.bam"))
   Seqinfo of length 2
   seqnames seqlengths isCircular genome
   chr1_hg19        45         NA   <NA>
   chr1_mm10        42         NA   <NA>

Hopefully that can be addressed. But that's a separate issue...

Cheers,
H.