genomepy.genome.sequences

Functions to extract or convert genomic sequences

Functions

bad_coords(region, track)

bed_to_seq(self, vals[, stranded, ...])

bed_to_seqs(self, track[, stranded, ...])

get_random_sequences(self[, n, length, ...])

Return random genomic sequences.

get_track_type(track)

region_to_seq(self, region[, extend_up, ...])

regions_to_seqs(self, track[, extend_up, ...])

track2fasta(self, track[, fastafile, ...])

Return a list of fasta sequences as Sequence objects as directed from the track(s).

weighted_selection(list_of_tuples, n)

Selects n random elements from a list of (weight, item) tuples.