Package pl.poznan.put.structure.formats
Class CombinedStrandFromPdb
java.lang.Object
pl.poznan.put.structure.formats.AbstractCombinedStrand
pl.poznan.put.structure.formats.CombinedStrandFromPdb
- All Implemented Interfaces:
DotBracket
,DotBracketFromPdb
- Direct Known Subclasses:
ImmutableCombinedStrandFromPdb
@Immutable
public abstract class CombinedStrandFromPdb
extends AbstractCombinedStrand
implements DotBracketFromPdb
A dot-bracket encoded structure made from combining one or more strands. This structure has
one-to-one correspondence with a 3D structure.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal List<DotBracketFromPdb>
combineStrands
(List<ClassifiedBasePair> unused) Combines strands which are connected via canonical or non-canonical base pairs.final boolean
contains
(PdbResidueIdentifier residueIdentifier) Checks if this structure contains a mapping for the given residue identifier.final PdbResidueIdentifier
identifier
(DotBracketSymbol symbol) Maps the given dot-bracket symbol to its corresponding residue identifier.final Set<PdbResidueIdentifier>
protected abstract Map<DotBracketSymbol,
PdbResidueIdentifier> protected org.apache.commons.collections4.BidiMap<DotBracketSymbol,
PdbResidueIdentifier> mapping()
final int
originalIndex
(DotBracketSymbol symbol) Returns the index of a dot-bracket symbol according to some external source like PDB numbering.pairs()
strands()
final DotBracketSymbol
symbol
(PdbResidueIdentifier residueIdentifier) Maps the given residue identifier to its corresponding dot-bracket symbol.symbols()
protected Map<DotBracketSymbol,
PdbResidueIdentifier> Methods inherited from class pl.poznan.put.structure.formats.AbstractCombinedStrand
combineStrands
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface pl.poznan.put.structure.formats.DotBracket
combineStrands, containsMissing, findStrand, isIsolated, isolatedSymbols, length, missingInternal, missingTerminal, pseudoknotOrder, sequence, sequence, structure, structure, toStringWithStrands
-
Constructor Details
-
CombinedStrandFromPdb
public CombinedStrandFromPdb()
-
-
Method Details
-
inputStrands
- Specified by:
inputStrands
in classAbstractCombinedStrand
- Returns:
- The list of input strands.
-
symbols
- Specified by:
symbols
in interfaceDotBracket
- Overrides:
symbols
in classAbstractCombinedStrand
- Returns:
- The list of dot-bracket symbols.
-
strands
- Specified by:
strands
in interfaceDotBracket
- Overrides:
strands
in classAbstractCombinedStrand
- Returns:
- The list of strands.
-
inputSymbolToResidue
@Parameter(order=2) protected abstract Map<DotBracketSymbol,PdbResidueIdentifier> inputSymbolToResidue()- Returns:
- The mapping of dot-bracket symbols with corresponding PDB identifiers.
-
originalIndex
Description copied from interface:DotBracket
Returns the index of a dot-bracket symbol according to some external source like PDB numbering.- Specified by:
originalIndex
in interfaceDotBracket
- Parameters:
symbol
- Dot-bracket symbol for which the original index is sought.- Returns:
- An index which reflects the numbering in real structure (e.g. PDB).
-
pairs
- Specified by:
pairs
in interfaceDotBracket
-
identifier
Description copied from interface:DotBracketFromPdb
Maps the given dot-bracket symbol to its corresponding residue identifier.- Specified by:
identifier
in interfaceDotBracketFromPdb
- Parameters:
symbol
- The symbol to look for.- Returns:
- The PDB residue identifier.
-
symbol
Description copied from interface:DotBracketFromPdb
Maps the given residue identifier to its corresponding dot-bracket symbol.- Specified by:
symbol
in interfaceDotBracketFromPdb
- Parameters:
residueIdentifier
- The residue identifier to look for.- Returns:
- The dot-bracket symbol.
-
contains
Description copied from interface:DotBracketFromPdb
Checks if this structure contains a mapping for the given residue identifier.- Specified by:
contains
in interfaceDotBracketFromPdb
- Parameters:
residueIdentifier
- The residue identifier to check.- Returns:
- True, if there is a mapping for the given residue identifier.
-
combineStrands
Description copied from interface:DotBracketFromPdb
Combines strands which are connected via canonical or non-canonical base pairs.- Specified by:
combineStrands
in interfaceDotBracketFromPdb
- Parameters:
unused
- The list of non-canonical base pairs to take into account.- Returns:
- The list of dot-bracket structures from the combined strands.
-
identifierSet
- Specified by:
identifierSet
in interfaceDotBracketFromPdb
- Returns:
- The set of residue identifiers used in this structure.
-
symbolToResidue
-
mapping
@Lazy @Auxiliary protected org.apache.commons.collections4.BidiMap<DotBracketSymbol,PdbResidueIdentifier> mapping()
-