Skip to content
Prev 6172 / 21312 Next

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

On 09/08/2014 06:42 PM, Michael Lawrence wrote:
I don't know either. I'm worried that this would make the seqinfo
stuff look like a named vector and that the user would expect
hg19:chr1, hg19:chr2, etc... to be valid names.

With the table-like layout, some screen real estate can always be
saved by printing less lines:

   > gr
   GRanges with 3 ranges and 0 metadata columns:
         seqnames               ranges strand
            <Rle>            <IRanges>  <Rle>
     [1]    chr14 [19069583, 19069654]      +
     [2]    chr14 [19363738, 19363809]      +
     [3]    chr14 [19363755, 19363826]      -
     [4]    chr14 [19369799, 19369870]      +
     --- seqinfo: 60 seqlevels (2 circulars) on 2 genomes (hg19, mm10) ---
     seqlevels                                seqlengths isCircular genome
     chr1                                      249250621       <NA>   hg19
     chr10                                     135534747       <NA>   hg19
     ...                                             ...        ...    ...
     chrX                                      155270560       <NA>   hg19
     chrY                                       59373566       <NA>   hg19

I agree that the exact content of the seqinfo table itself is rarely
of interest so printing only 3 or 4 lines is OK. IMO it's important
to make the user aware of the existence of this hidden table and to
display it like what it really is (i.e. a table). Also displaying the
column names is a well established tradition and serves the purpose
of providing a quick summary of the accessors that are available to
access those fields.

H.