Skip to content

Commit d4dc323

Browse files
committed
Docs
1 parent 496daf0 commit d4dc323

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

biojava-integrationtest/src/test/java/org/biojava/nbio/structure/test/contact/TestInterfaceFinder.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import org.biojava.nbio.structure.Structure;
44
import org.biojava.nbio.structure.StructureException;
55
import org.biojava.nbio.structure.StructureIO;
6-
import org.biojava.nbio.structure.contact.AtomContact;
76
import org.biojava.nbio.structure.contact.AtomContactSet;
87
import org.biojava.nbio.structure.contact.InterfaceFinder;
98
import org.biojava.nbio.structure.contact.Pair;

biojava-structure/src/main/java/org/biojava/nbio/structure/contact/InterfaceFinder.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
import javax.vecmath.Point3d;
1212
import java.util.List;
1313

14+
/**
15+
* A class containing methods to find interfaces in a given structure.
16+
* @author Jose Duarte
17+
* @since 5.4.0
18+
*/
1419
public class InterfaceFinder {
1520

1621
public static final double DEFAULT_CONTACT_CUTOFF = 6;
@@ -28,10 +33,20 @@ public InterfaceFinder(Structure structure) {
2833
this.cutoff = DEFAULT_CONTACT_CUTOFF;
2934
}
3035

36+
/**
37+
* Set the contact distance cutoff.
38+
* @param cutoff the distance value in Angstroms
39+
*/
3140
public void setCutoff(double cutoff) {
3241
this.cutoff = cutoff;
3342
}
3443

44+
/**
45+
* Find all inter polymer-chain interfaces in the structure.
46+
* Two chains will be considered in contact if at least a pair of atoms from each is within the
47+
* contact cutoff.
48+
* @return the list of all interfaces
49+
*/
3550
public StructureInterfaceList getAllInterfaces() {
3651
initBoundingBoxes();
3752

0 commit comments

Comments
 (0)