public class StructuralMotif extends Object implements LeafSubstructureContainer
| Modifier and Type | Class and Description |
|---|---|
static class |
StructuralMotif.Type
The type of a
StructuralMotif, representing inter (across multiple protein chains) and intra
(within one protein chain) StructuralMotifs. |
| Modifier and Type | Field and Description |
|---|---|
LinkedHashMap<LeafIdentifier,LeafSubstructure<?>> |
leafSubstructures |
| Modifier and Type | Method and Description |
|---|---|
void |
addExchangeableFamily(LeafIdentifier leafIdentifier,
AminoAcidFamily aminoAcidFamily)
For a given
LeafIdentifier a possible exchange is added. |
void |
addExchangeableFamily(LeafIdentifier leafIdentifier,
MatcherFamily matcherFamily)
For a given
LeafIdentifier a possible exchange is added. |
void |
addExchangeableFamily(LeafIdentifier leafIdentifier,
NucleotideFamily nucleotideFamily)
For a given
LeafIdentifier a possible exchange is added. |
void |
addExchangeableFamilyToAll(AminoAcidFamily aminoAcidFamily)
Assigns an
AminoAcidFamily to all members of this motif as exchange. |
void |
addExchangeableFamilyToAll(MatcherFamily matcherFamily)
Assigns each member of a
MatcherFamily to all members of this motif as exchange. |
void |
addExchangeableFamilyToAll(NucleotideFamily nucleotideFamily)
Assigns an
NucleotideFamily to all members of this motif as exchange. |
void |
addLeafSubstructure(LeafSubstructure leafSubstructure) |
static StructuralMotif |
fromLeafIdentifiers(Structure structure,
List<LeafIdentifier> leafIdentifiers)
Creates a
StructuralMotif by extracting the given residues identified by a list of LeafIdentifiers. |
static StructuralMotif |
fromLeafSubstructures(List<LeafSubstructure<?>> leafSubstructures)
Forms a
StructuralMotif out of the given LeafSubstructures. |
List<LeafSubstructure<?>> |
getAllLeafSubstructures()
Returns all
LeafSubstructures. |
Optional<Atom> |
getAtom(Integer atomIdentifier)
|
StructuralMotif |
getCopy() |
LeafSubstructure<?> |
getFirstLeafSubstructure() |
Optional<LeafSubstructure<?>> |
getLeafSubstructure(LeafIdentifier leafIdentifier)
Returns an
Optional of the LeafSubstructure with the given identifier. |
void |
removeAtom(Integer atomIdentifier)
Removes an atom from this container.
|
boolean |
removeLeafSubstructure(LeafIdentifier leafIdentifier)
Removes a
LeafSubstructure from this container. |
int |
size()
Returns the size of the structural motif (the number of contained
LeafSubstructures). |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAllAminoAcids, getAllAtoms, getAllLigands, getAllNucleotides, getAminoAcid, getAtom, getLigand, getNucleotide, getNumberOfLeafSubstructures, removeLeafSubstructure, removeLeafSubstructuresNotRelevantForpublic final LinkedHashMap<LeafIdentifier,LeafSubstructure<?>> leafSubstructures
public static StructuralMotif fromLeafIdentifiers(Structure structure, List<LeafIdentifier> leafIdentifiers)
StructuralMotif by extracting the given residues identified by a list of LeafIdentifiers.structure - The Structure from which the StructuralMotif should be extracted.leafIdentifiers - The LeafIdentifiers of the residues that should compose the StructuralMotif.StructuralMotif.public static StructuralMotif fromLeafSubstructures(List<LeafSubstructure<?>> leafSubstructures)
StructuralMotif out of the given LeafSubstructures.leafSubstructures - The LeafSubstructures that should compose the StructuralMotif.StructuralMotif.public List<LeafSubstructure<?>> getAllLeafSubstructures()
LeafSubstructureContainerLeafSubstructures.getAllLeafSubstructures in interface LeafSubstructureContainerLeafSubstructures.public Optional<LeafSubstructure<?>> getLeafSubstructure(LeafIdentifier leafIdentifier)
LeafSubstructureContainerOptional of the LeafSubstructure with the given identifier. If no LeafSubstructure
with the identifier could be found, an empty optional is returned.getLeafSubstructure in interface LeafSubstructureContainerleafIdentifier - The identifier of the leaf.Optional encapsulating the LeafSubstructure.public LeafSubstructure<?> getFirstLeafSubstructure()
getFirstLeafSubstructure in interface LeafSubstructureContainerpublic boolean removeLeafSubstructure(LeafIdentifier leafIdentifier)
LeafSubstructureContainerLeafSubstructure from this container.removeLeafSubstructure in interface LeafSubstructureContainerleafIdentifier - The identifier of the leaf.LeafSubstructure was removed.public void addLeafSubstructure(LeafSubstructure leafSubstructure)
public int size()
LeafSubstructures).public Optional<Atom> getAtom(Integer atomIdentifier)
AtomContainerOptional of the Atom with the given identifier. If no Atom with the identifier could
be found, an empty optional is returned.getAtom in interface AtomContaineratomIdentifier - The identifier of the atom.Optional encapsulating the Atom.public void removeAtom(Integer atomIdentifier)
AtomContainerremoveAtom in interface AtomContaineratomIdentifier - The identifier of the atom to be removed.public void addExchangeableFamily(LeafIdentifier leafIdentifier, MatcherFamily matcherFamily)
LeafIdentifier a possible exchange is added. This exchange is considered when searching with
Fit3D. The MatcherFamily allows exchanges for groups of LeafSubstructures
with similar physicochemical attributes.leafIdentifier - The leaf to add the exchange to.matcherFamily - The MatcherFamily.public void addExchangeableFamily(LeafIdentifier leafIdentifier, NucleotideFamily nucleotideFamily)
LeafIdentifier a possible exchange is added. This exchange is considered when searching with
Fit3D.leafIdentifier - The leaf to add the exchange to.nucleotideFamily - The Nucleotide that can be exchanged.public void addExchangeableFamily(LeafIdentifier leafIdentifier, AminoAcidFamily aminoAcidFamily)
LeafIdentifier a possible exchange is added. This exchange is considered when searching with
Fit3D.leafIdentifier - The leaf to add the exchange to.aminoAcidFamily - The AminoAcid that can be exchanged.public void addExchangeableFamilyToAll(AminoAcidFamily aminoAcidFamily)
AminoAcidFamily to all members of this motif as exchange.aminoAcidFamily - The AminoAcidFamily which should be assigned as exchangeable type.public void addExchangeableFamilyToAll(NucleotideFamily nucleotideFamily)
NucleotideFamily to all members of this motif as exchange.nucleotideFamily - The NucleotideFamily which should be assigned as exchangeable type.public void addExchangeableFamilyToAll(MatcherFamily matcherFamily)
MatcherFamily to all members of this motif as exchange.matcherFamily - The MatcherFamily that bundles all members which should be assigned as exchangeable
type.public StructuralMotif getCopy()
getCopy in interface LeafSubstructureContainerCopyright © 2018. All rights reserved.