scglue.genomics.Bed.expand
- Bed.expand(upstream, downstream, chr_len=None)[源代码]
Expand genomic features towards upstream and downstream
- 参数:
upstream (
int
) – Number of bps to expand in the upstream directiondownstream (
int
) – Number of bps to expand in the downstream directionchr_len (
typing.Optional
[typing.Mapping
[str
,int
]]) – Length of each chromosome
- 返回类型:
- 返回:
expanded_bed – A new
Bed
object, containing expanded features of the currentBed
object
备注
Starting position < 0 after expansion is always trimmed. Ending position exceeding chromosome length is trimed only if
chr_len
is specified.