Package pl.poznan.put.structure.formats
Class Ct
java.lang.Object
pl.poznan.put.structure.formats.Ct
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ImmutableCt
An RNA secondary structure encoded in CT (connect) format.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A single entry in the CT formatted structure. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract SortedSet<Ct.ExtendedEntry>
entries()
static Ct
Converts RNA secondary structure in BPSEQ format to CT format.static Ct
fromBpSeqAndPdbModel
(BpSeq bpSeq, PdbModel model) Converts RNA secondary structure in BPSEQ format to CT format, taking into account information from 3D coordinates (residue numbering, chain sizes).static Ct
fromDotBracket
(DotBracket dotBracket) Converts RNA secondary structure in dot-bracket format to CT format.static Ct
fromString
(String data) Parses string into an instance of this class.final int
final String
toString()
protected Ct
validate()
final Ct
Finds all isolated base pairs and creates a copy of this instance without them.final Ct
withoutPair
(Ct.ExtendedEntry entry) Creates a copy of this instance, but with the given pair removed.
-
Constructor Details
-
Ct
public Ct()
-
-
Method Details
-
fromString
Parses string into an instance of this class.- Parameters:
data
- The string with CT data.- Returns:
- An instance of this class with parsed data.
-
fromBpSeq
Converts RNA secondary structure in BPSEQ format to CT format.- Parameters:
bpSeq
- The data in BPSEQ format.- Returns:
- An instance of this class with converted data.
-
fromBpSeqAndPdbModel
Converts RNA secondary structure in BPSEQ format to CT format, taking into account information from 3D coordinates (residue numbering, chain sizes).- Parameters:
bpSeq
- The data in BPSEQ format.model
- The 3D data.- Returns:
- An instance of this class with converted data.
-
fromDotBracket
Converts RNA secondary structure in dot-bracket format to CT format.- Parameters:
dotBracket
- The data in dot-bracket format.- Returns:
- An instance of this class with converted data.
-
entries
- Returns:
- The list of CT entries.
-
strandCount
public final int strandCount()- Returns:
- The number of strands.
-
withoutPair
Creates a copy of this instance, but with the given pair removed.- Parameters:
entry
- The pair to remove.- Returns:
- A copy of this instance without the given pair.
-
withoutIsolatedPairs
Finds all isolated base pairs and creates a copy of this instance without them.- Returns:
- A copy of this instance, but with all isolated base pairs removed.
-
toString
-
validate
-