Skip to content

Commit 1a971ea

Browse files
committed
Fixed a bug causing errors when sending networks from STRING to
Cytoscape for some species.
1 parent 80f1395 commit 1a971ea

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<packaging>bundle</packaging>
1919
<name>${bundle.symbolicName}</name>
2020

21-
<version>2.1.0</version>
21+
<version>2.1.1</version>
2222

2323
<build>
2424
<plugins>

src/main/java/edu/ucsf/rbvi/stringApp/internal/tasks/ProteinQueryTask.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ public ProteinQueryTask(final StringManager manager) {
120120
public void run(TaskMonitor monitor) {
121121
monitor.setTitle("STRING Protein Query");
122122
Species sp = Species.getSpecies(species);
123-
if (taxonID != -1 && !sp.isCustom()) {
123+
// if (taxonID != -1 && sp != null && !sp.isCustom()) {
124+
// Fallback to species taxonID if species name was not enough to find our species
125+
if (sp == null && taxonID != -1) {
124126
for (Species s : speciesList) {
125127
if (s.getTaxId() == taxonID) {
126128
if (!s.toString().equals(species)) {
Binary file not shown.

0 commit comments

Comments
 (0)