public class StructureInterfaceList extends Object implements Serializable, Iterable<StructureInterface>
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_ASA_SPHERE_POINTS
Default number of points to use when calculating ASAs
|
static double |
DEFAULT_CONTACT_OVERLAP_SCORE_CLUSTER_CUTOFF
Any 2 interfaces with contact overlap score larger than this value
will be considered to be clustered
|
static int |
DEFAULT_MIN_COFACTOR_SIZE
Default minimum size of cofactor molecule (non-chain HET atoms) that will be used
|
static double |
DEFAULT_MINIMUM_INTERFACE_AREA
Default minimum area for a contact between two chains to be considered a
valid interface.
|
Constructor and Description |
---|
StructureInterfaceList() |
Modifier and Type | Method and Description |
---|---|
void |
add(StructureInterface interf) |
void |
addNcsEquivalent(StructureInterface interfaceNew,
StructureInterface interfaceRef)
Add an interface to the list, possibly defining it as NCS-equivalent to an interface already in the list.
|
void |
calcAsas()
Calculates ASAs for all interfaces in list, both for the unbound
chains and for the complex of the two chains together.
|
void |
calcAsas(int nSpherePoints,
int nThreads,
int cofactorSizeToUse)
Calculates ASAs for all interfaces in list, both for the unbound
chains and for the complex of the two chains together.
|
static StructureInterfaceList |
calculateInterfaces(Structure struc)
Calculates the interfaces for a structure using default parameters
|
StructureInterface |
get(int id)
Gets the interface corresponding to given id.
|
List<StructureInterfaceCluster> |
getClusters()
Calculate the interface clusters for this StructureInterfaceList
using a contact overlap score to measure the similarity of interfaces.
|
List<StructureInterfaceCluster> |
getClusters(double contactOverlapScoreClusterCutoff)
Calculate the interface clusters for this StructureInterfaceList
using a contact overlap score to measure the similarity of interfaces.
|
List<StructureInterfaceCluster> |
getClustersNcs()
Get the interface clusters for this StructureInterfaceList grouped by NCS-equivalence.
|
Iterator<StructureInterface> |
iterator() |
void |
removeInterfacesBelowArea()
Removes from this interface list all interfaces with areas
below the default cutoff area.
|
void |
removeInterfacesBelowArea(double area)
Removes from this interface list all interfaces with areas
below the given cutoff area.
|
void |
setChainOrigNamesMap(Map<String,String> chainOrigNamesMap)
Sets a map with mapping from NCS chain names to original chain names.
|
int |
size() |
void |
sort()
Sorts the interface list and reassigns ids based on new sorting
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static final double DEFAULT_MINIMUM_INTERFACE_AREA
public static final int DEFAULT_ASA_SPHERE_POINTS
calcAsas(int, int, int)
,
Constant Field Valuespublic static final int DEFAULT_MIN_COFACTOR_SIZE
calcAsas(int, int, int)
,
Constant Field Valuespublic static final double DEFAULT_CONTACT_OVERLAP_SCORE_CLUSTER_CUTOFF
public StructureInterfaceList()
public void add(StructureInterface interf)
public int size()
public StructureInterface get(int id)
sort()
was called then the order is descendent by area.id
- public void calcAsas()
Uses default parameters
public void calcAsas(int nSpherePoints, int nThreads, int cofactorSizeToUse)
nSpherePoints
- nThreads
- cofactorSizeToUse
- the minimum size of cofactor molecule (non-chain HET atoms) that will be usedpublic void sort()
public List<StructureInterfaceCluster> getClustersNcs()
StructureInterfaceCluster
objects.public void addNcsEquivalent(StructureInterface interfaceNew, StructureInterface interfaceRef)
interfaceNew
- an interface to be added to the list.interfaceRef
- interfaceNew will be added to the cluster which contains interfaceRef.
If interfaceRef is null, new cluster will be created for interfaceNew.public void setChainOrigNamesMap(Map<String,String> chainOrigNamesMap)
addNcsEquivalent(StructureInterface, StructureInterface)
is used and NCS equivalent
interfaces exist in this list and their names need mapping when setting ASAs.chainOrigNamesMap
- a map of NCS chain name to original chain namepublic void removeInterfacesBelowArea()
calcAsas(int, int, int)
, otherwise all areas would
be 0 and thus all removed.DEFAULT_MINIMUM_INTERFACE_AREA
public void removeInterfacesBelowArea(double area)
calcAsas(int, int, int)
, otherwise all areas would
be 0 and thus all removed.area
- the minimum interface buried surface area to keep. Interfaces below this value will be removed.public List<StructureInterfaceCluster> getClusters()
DEFAULT_CONTACT_OVERLAP_SCORE_CLUSTER_CUTOFF
public List<StructureInterfaceCluster> getClusters(double contactOverlapScoreClusterCutoff)
StructureInterfaceCluster.getTotalArea()
contactOverlapScoreClusterCutoff
- the contact overlap score above which a pair will be
clusteredpublic Iterator<StructureInterface> iterator()
iterator
in interface Iterable<StructureInterface>
public static StructureInterfaceList calculateInterfaces(Structure struc)
struc
- Copyright © 2000–2019 BioJava. All rights reserved.