scglue.genomics.Bed.expand¶
-
Bed.
expand
(upstream, downstream, chr_len=None)[source]¶ Expand genomic features towards upstream and downstream
- Parameters
- Return type
- Returns
expanded_bed – A new
Bed
object, containing expanded features of the currentBed
object
Note
Starting position < 0 after expansion is always trimmed. Ending position exceeding chromosome length is trimed only if
chr_len
is specified.