overlap_as_array(anchor,
feat_lst,
bin=1,
dtype=<type 'numpy.float64'>,
parseFeature=partial(parseBED,use_score=True),
respect_strand=True)
| source code
|
convert an anchor and a list of overlapping features on a signal
array
anchor: BED5 feat_list: [>=BED4, ...] bin: bin the signal
dtype:type of array use_score: whether to use score from feature. will
set to 1.0 if False respect_strand : whether to mirror the signal for
anchors on the negative strand
returns a signal array of length anchor[2] - anchor[1]
|