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
@Immutable public abstract class Ct extends Object implements Serializable
An RNA secondary structure encoded in CT (connect) format.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCt.ExtendedEntryA single entry in the CT formatted structure.
-
Constructor Summary
Constructors Constructor Description Ct()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract SortedSet<Ct.ExtendedEntry>entries()static CtfromBpSeq(BpSeq bpSeq)Converts RNA secondary structure in BPSEQ format to CT format.static CtfromBpSeqAndPdbModel(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 CtfromDotBracket(DotBracket dotBracket)Converts RNA secondary structure in dot-bracket format to CT format.static CtfromString(String data)Parses string into an instance of this class.intstrandCount()StringtoString()protected Ctvalidate()CtwithoutIsolatedPairs()Finds all isolated base pairs and creates a copy of this instance without them.CtwithoutPair(Ct.ExtendedEntry entry)Creates a copy of this instance, but with the given pair removed.
-
-
-
Method Detail
-
fromString
public static Ct fromString(String data)
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
public static Ct fromBpSeq(BpSeq bpSeq)
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
public 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).- Parameters:
bpSeq- The data in BPSEQ format.model- The 3D data.- Returns:
- An instance of this class with converted data.
-
fromDotBracket
public static Ct fromDotBracket(DotBracket dotBracket)
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
@Parameter(order=1) @NaturalOrder public abstract SortedSet<Ct.ExtendedEntry> entries()
- Returns:
- The list of CT entries.
-
strandCount
public final int strandCount()
- Returns:
- The number of strands.
-
withoutPair
public final Ct withoutPair(Ct.ExtendedEntry entry)
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
public final Ct 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.
-
validate
@Check protected Ct validate()
-
-