Skip to content

Suggestion: statistics overview? E. g. a common statistics overview for ruby-htslib #21

@rubyFeedback

Description

@rubyFeedback

Hey there kojix2,

Today I tested ruby-htslib a bit following the examples in the main README e. g.

bam = HTS::Bam.open("foobar.bam")

bam.each do |r|
  pp name: r.qname,

And so forth. It shows a lot of information and outputs a LOT. E. g. a 67 MB .bam
file contains so much data.

Would it be possible to add some "central" statistics module into ruby-htslib,
and show in the main README how to use it?

This statistics module should show a summary of the content of the .bam
file such as how many entries it contains and so forth, any information
that is useful, but that can be displayed on the commandline, without
scrolling too much outside. E. g. a full "paper size" at max, not more.
A summary.

The rationale for this proposal would be to get a quick overview from
a .bam file without needing to go through .each - just to understand what
this .bam file is all about. And it would be useful if ruby-htslib could support
this directly as-is, if possible, so people can just use it rather than create
their own custom ad-hoc solution (they can do so anyway but I think it
would be more convenient if ruby-htslib can support this directly).

Anyway it is just a suggestion, please feel free to proceed in any way you
see fit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions