forgi.graph.sequence module¶
-
class
forgi.graph.sequence.
MissingResidue
(resid, res_name)[source]¶ Bases:
object
Parameters: - resid – A fgr.RESID instance of a string.
- resname – A string. Probably one of “AUGC”.
-
class
forgi.graph.sequence.
Sequence
(seq, seqids, missing_residues=None, modifications=None)[source]¶ Bases:
object
A class holding the RNA sequence.
It supports 2 indexing conventions (see below), missing residues and modified nucleotids.
The two indexing conventions are:
- 1-based indexing into the sequence for which structure information is available This uses indices of type integer. Integer based indexing can not address missing residues!
- Indexing using PDB-style numbers (They can start at any positive or negative number and may contain insertion codes or gaps.) This uses indices of type fgr.RESID PDB-Style indices may address missing residues (Reidues for which only sequence but no structure information is present).
Parameters: - seq – A string
- missing_residues – A list of dictionaries with the following keys: “res_name”, “chain”, “ssseq”, “insertion”
-
backbone_breaks_after
¶ Breakpoints as 1-based indices
-
with_missing
¶ Allows slices with missing residues!
-
with_modifications
¶