public class AtomContactRDD extends Object implements Serializable
AtomContact data in an JavaRDD| Constructor and Description |
|---|
AtomContactRDD(org.apache.spark.api.java.JavaRDD<org.biojava.nbio.structure.contact.AtomContact> atomContactRdd)
|
| Modifier and Type | Method and Description |
|---|---|
void |
cacheData()
Cache the data - for multi-processing.
|
Long |
countInterAtomContacts(String atomNameOne,
String atomNameTwo)
Get the number of inter-atom name contacts for a given pair of atoms names.
|
Long |
countInterElementContacts(String elementOne,
String elementTwo)
Get the number of inter-element contacts for a given pair of element names.
|
Long |
countInterGroupContacts(String groupNameOne,
String groupNameTwo)
Get the number of inter-group contacts for a given pair of group names.
|
AtomContactRDD |
filterDistance(double cutoff)
Filter all contacts greater than a certain distance.
|
AtomContactRDD |
filterElementElementContacts(String elementNameOne,
String elementNameTwo)
Filter an
AtomContactRDD based on two elements being in contact. |
AtomContactRDD |
filterElementGroupContacts(String groupName,
String elementName)
Filter an
AtomContactRDD based on two elements being in contact. |
Map<String,Long> |
getAllInterAtomElementContacts()
Get a map counting the number of interactions between atom element names.
|
Map<String,Long> |
getAllInterAtomNameContacts()
Get a map counting the number of interactions between atom names.
|
Map<String,Long> |
getAllInterGroupContacts()
Get a map counting the number of interactions between groups.
|
org.apache.spark.api.java.JavaRDD<org.biojava.nbio.structure.contact.AtomContact> |
getAtomContactRDD()
Get the
JavaRDD of AtomContact objects. |
AtomData |
getAtoms()
Get the contacts as an
AtomDataRDD |
org.apache.spark.api.java.JavaDoubleRDD |
getDistanceDistOfAtomInts(String atomName,
String otherAtomName)
Get the distance distributions for all of the atom types.
|
List<String> |
getGroupIds()
Get the associate group ids
|
org.apache.spark.api.java.JavaPairRDD<org.biojava.nbio.structure.Atom,org.biojava.nbio.structure.Atom> |
getPairs()
Get the assoicated pairs of atoms found in this
|
List<String> |
getPdbIds()
Get the associated PDB ids as a list of Strings
|
public AtomContactRDD(org.apache.spark.api.java.JavaRDD<org.biojava.nbio.structure.contact.AtomContact> atomContactRdd)
atomContactRdd - the input JavaRDD of AtomContactpublic void cacheData()
public org.apache.spark.api.java.JavaRDD<org.biojava.nbio.structure.contact.AtomContact> getAtomContactRDD()
JavaRDD of AtomContact objects.JavaRDD of AtomContact objectspublic AtomContactRDD filterDistance(double cutoff)
AtomContactRDD after filteringpublic org.apache.spark.api.java.JavaDoubleRDD getDistanceDistOfAtomInts(String atomName, String otherAtomName)
atomName - the original atom nameotherAtomName - the other atom namepublic Map<String,Long> getAllInterGroupContacts()
public Long countInterGroupContacts(String groupNameOne, String groupNameTwo)
groupNameOne - the name of the first groupsgroupNameTwo - the name of the second grouppublic Long countInterElementContacts(String elementOne, String elementTwo)
elementOne - the name of the first element (e.g. Ca for Calcium)elementTwo - the name of the second element (e.g. Ca for Calcium)public Long countInterAtomContacts(String atomNameOne, String atomNameTwo)
atomNameOne - the name of the first atom name (e.g. CA for C-alpha)atomNameTwo - the name of the second atom name (e.g. CA for C-alpha)public Map<String,Long> getAllInterAtomNameContacts()
public Map<String,Long> getAllInterAtomElementContacts()
public AtomContactRDD filterElementGroupContacts(String groupName, String elementName)
AtomContactRDD based on two elements being in contact.groupName - the group name, e.g. HIS for histidineelementName - the element name (IUPAC) e.g. Ca for calciumAtomContactRDDpublic AtomContactRDD filterElementElementContacts(String elementNameOne, String elementNameTwo)
AtomContactRDD based on two elements being in contact.elementNameOne - the second element name (IUPAC) e.g. Ca for calciumelementNameOne - the second element name (IUPAC) e.g. Ca for calciumAtomContactRDDpublic List<String> getPdbIds()
public List<String> getGroupIds()
public org.apache.spark.api.java.JavaPairRDD<org.biojava.nbio.structure.Atom,org.biojava.nbio.structure.Atom> getPairs()
public AtomData getAtoms()
AtomDataRDDAtomDataRDD of all the atoms found in these contactsCopyright © 2016 Biojava. All Rights Reserved.