g2gtools.bins module¶
-
g2gtools.bins.
bin_info
()[source]¶ Useful for debugging: how large is each bin, and what are the bin IDs?
-
g2gtools.bins.
bins
(start, stop, fmt='gff', one=True)[source]¶ Uses the definition of a “genomic bin” described in Fig 7 of http://genome.cshlp.org/content/12/6/996.abstract.
- one : boolean
If one=True (default), then only return the smallest bin that completely contains these coordinates (useful for assigning a single bin).
If one=False, then return the set of all bins that overlap these coordinates (useful for looking for features that could intersect)
- fmt : ‘gff’ | ‘bed’
- This specifies 1-based start coords (gff) or 0-based start coords (bed)