Skip to content

Commit b5425af

Browse files
committed
Update UniprotProxySequenceReader.java
Uniprot has begun adding spaces into the sequence string. We simply strip them out again so we don't get a compound noot found error.
1 parent d17f8ef commit b5425af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

biojava-core/src/main/java/org/biojava/nbio/core/sequence/loader/UniprotProxySequenceReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public void setCompoundSet(CompoundSet<C> compoundSet) {
149149
public void setContents(String sequence) throws CompoundNotFoundException {
150150
// Horrendously inefficient - pretty much the way the old BJ did things.
151151
// TODO Should be optimised.
152-
this.sequence = sequence;
152+
this.sequence = sequence.replaceAll(" ", "");
153153
this.parsedCompounds.clear();
154154
for (int i = 0; i < sequence.length();) {
155155
String compoundStr = null;

0 commit comments

Comments
 (0)