Package pl.poznan.put.structure.formats
Class DefaultDotBracketFromPdb
java.lang.Object
pl.poznan.put.structure.formats.DefaultDotBracketFromPdb
- All Implemented Interfaces:
DotBracket,DotBracketFromPdb
- Direct Known Subclasses:
ImmutableDefaultDotBracketFromPdb
@Immutable
public abstract class DefaultDotBracketFromPdb
extends Object
implements DotBracketFromPdb
A default implementation of a dot-bracket structure which is mapped to data from 3D coordinates.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal List<DotBracket>Combines strands which share a base pair into a new dot-bracket instance and returns a list of those.final List<DotBracketFromPdb>combineStrands(List<ClassifiedBasePair> nonCanonical) Combines strands which are connected via canonical or non-canonical base pairs.final booleancontains(PdbResidueIdentifier residueIdentifier) Checks if this structure contains a mapping for the given residue identifier.final PdbResidueIdentifieridentifier(DotBracketSymbol symbol) Maps the given dot-bracket symbol to its corresponding residue identifier.abstract PdbModelmodel()final intoriginalIndex(DotBracketSymbol symbol) Returns the index of a dot-bracket symbol according to some external source like PDB numbering.pairs()protected Map<PdbResidueIdentifier,DotBracketSymbol> abstract Stringsequence()strands()abstract Stringfinal DotBracketSymbolsymbol(PdbResidueIdentifier residueIdentifier) Maps the given residue identifier to its corresponding dot-bracket symbol.symbols()protected Map<DotBracketSymbol,PdbResidueIdentifier> protected DefaultDotBracketFromPdbvalidate()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface pl.poznan.put.structure.formats.DotBracket
containsMissing, findStrand, isIsolated, isolatedSymbols, length, missingInternal, missingTerminal, pseudoknotOrder, sequence, structure, symbols, toStringWithStrandsMethods inherited from interface pl.poznan.put.structure.formats.DotBracketFromPdb
identifierSet
-
Constructor Details
-
DefaultDotBracketFromPdb
public DefaultDotBracketFromPdb()
-
-
Method Details
-
model
-
combineStrands
Description copied from interface:DotBracketCombines strands which share a base pair into a new dot-bracket instance and returns a list of those.- Specified by:
combineStrandsin interfaceDotBracket- Returns:
- The list of dot-bracket instances, each containing strands which only pair with each other.
-
originalIndex
Description copied from interface:DotBracketReturns the index of a dot-bracket symbol according to some external source like PDB numbering.- Specified by:
originalIndexin 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).
-
strands
- Specified by:
strandsin interfaceDotBracket- Returns:
- The list of strands.
-
sequence
- Specified by:
sequencein interfaceDotBracket- Returns:
- The sequence of nucleotides.
-
structure
- Specified by:
structurein interfaceDotBracket- Returns:
- The sequence of dots and brackets representing paired and unpaired residues.
-
pairs
- Specified by:
pairsin interfaceDotBracket
-
identifier
Description copied from interface:DotBracketFromPdbMaps the given dot-bracket symbol to its corresponding residue identifier.- Specified by:
identifierin interfaceDotBracketFromPdb- Parameters:
symbol- The symbol to look for.- Returns:
- The PDB residue identifier.
-
symbol
Description copied from interface:DotBracketFromPdbMaps the given residue identifier to its corresponding dot-bracket symbol.- Specified by:
symbolin interfaceDotBracketFromPdb- Parameters:
residueIdentifier- The residue identifier to look for.- Returns:
- The dot-bracket symbol.
-
contains
Description copied from interface:DotBracketFromPdbChecks if this structure contains a mapping for the given residue identifier.- Specified by:
containsin 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:DotBracketFromPdbCombines strands which are connected via canonical or non-canonical base pairs.- Specified by:
combineStrandsin interfaceDotBracketFromPdb- Parameters:
nonCanonical- The list of non-canonical base pairs to take into account.- Returns:
- The list of dot-bracket structures from the combined strands.
-
residueToSymbol
-
symbolToResidue
-
validate
-
symbols
- Specified by:
symbolsin interfaceDotBracket- Returns:
- The list of dot-bracket symbols.
-
candidatesToCombine
-