Skip to content

Commit 482df9e

Browse files
authored
Merge pull request #711 from valasatava/master
ignore chains that do not have representative atoms
2 parents 14f94a7 + 5a4dce6 commit 482df9e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

biojava-structure/src/main/java/org/biojava/nbio/structure/cluster/SubunitExtractor.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,9 @@ public static List<Subunit> extractSubunits(Structure structure,
7272
// Only take protein chains
7373
if (c.isProtein()) {
7474
Atom[] ca = StructureTools.getRepresentativeAtomArray(c);
75-
logger.debug("Chain " + c.getId() + "; CA Atoms: "
76-
+ ca.length + "; SEQRES: " + c.getSeqResSequence());
75+
logger.debug("Chain " + c.getId() + "; CA Atoms: " + ca.length + "; SEQRES: " + c.getSeqResSequence());
76+
if (ca.length==0)
77+
continue;
7778
subunits.add(new Subunit(ca, c.getName(), null, structure));
7879
}
7980
}

0 commit comments

Comments
 (0)