util Module¶
Fluke, Anchor and AnchorList classes providing useful attributes and methods
- class anchorna.util.Anchor(data=None, **kw)[source]¶
Bases:
UserListA single Anchor is a list of
Flukes, one for each sequenceSome properties: data (list of flukes), id, gseqid, guide, minscore (aka score), maxscore, medscore.
- _abc_impl = <_abc._abc_data object>¶
- property good_flukes¶
- property guide¶
- property id¶
- property maxscore¶
- property medscore¶
- property minscore¶
- property poor_flukes¶
- property seqids¶
- property sid¶
- property strand¶
- class anchorna.util.AnchorList(data=None, no_cds=False)[source]¶
Bases:
UserListCollection of
Anchorswith useful methods- _abc_impl = <_abc._abc_data object>¶
- convert2fts(**kw)[source]¶
Convert anchors to
FeatureListobject, seeanchors2fts()
- property no_cds¶
- remove_contradicting_anchors(aggressive=True)[source]¶
Remove contradicting anchors, step C of
anchorna go
- write(fname, **kw)[source]¶
Write anchors to GFF file, see
write_anchors()
- class anchorna.util.Fluke(*args: Any, **kwargs: Any)[source]¶
Bases:
AttrA fluke is a word position on a single sequence and part of an
AnchorProperties: id, seqid, score, median_score, start, stop, offset, word, poor.
- property len¶
- property strand¶
- anchorna.util.anchors2fts(anchors, mode=None)[source]¶
Convert anchors to
FeatureListobjectWrite some important attributes to
Feature.meta._gffmetadata.- Parameters:
mode – Optionally convert anchors to
'nt'or'cds'indices
- anchorna.util.fts2anchors(fts, no_cds=False)[source]¶
Convert
FeatureListobject to anchorsRead some important attributes from
Feature.meta._gffmetadata.