Skip to content
Snippets Groups Projects
Commit f008a228 authored by tjc's avatar tjc
Browse files

fix for organisms with no residues

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@3898 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 449973ae
No related branches found
No related tags found
No related merge requests found
......@@ -808,6 +808,9 @@ public class DatabaseDocument extends Document
while(rs.next())
cvterm_id.add(rs.getString("type_id"));
if(cvterm_id.size() == 0) // no residues for this organism
continue;
sql = new String(
"SELECT abbreviation, name, feature_id, type_id FROM organism, "+
schema + ".feature WHERE (");
......@@ -886,6 +889,9 @@ public class DatabaseDocument extends Document
schema_CVlist.setSchema(schema);
List list = sqlMap.queryForList("getResidueType", schema);
if(list.size() == 0) // no residues for this organism
continue;
schema_CVlist.setCvlist(list);
List list_residue_features = sqlMap.queryForList("getSchemaResidueFeatures",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment