Adding a coordinate axis¶
Axis¶
-
genomeview.
get_ticks
(start, end, target_n_labels=10)[source]¶ Tries to put an appropriate number of ticks at nice round coordinates between the genomic positions start and end. Tries but doesn’t guarantee to create target_n_labels number of ticks / labels.
Returns: a list of tuples (coordinate, label), where “label” is a nicely formatted string describing the coordinate