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

use feature_relationship.rank

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@4600 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 22b8e060
No related branches found
No related tags found
No related merge requests found
......@@ -569,6 +569,7 @@ public class DatabaseDocument extends Document
String parent_id = null;
String parent_relationship = null;
int rank = -1;
if(feat.getFeature_relationship() != null)
{
ChadoFeatureRelationship feat_relationship = feat.getFeature_relationship();
......@@ -577,6 +578,7 @@ public class DatabaseDocument extends Document
parent_relationship = feat_relationship.getCvterm().getName();
rank= feat_relationship.getRank();
if(parent_relationship == null)
parent_relationship = getCvtermName(parent_type_id, dao);
}
......@@ -650,6 +652,10 @@ public class DatabaseDocument extends Document
this_buff.append("timelastmodified=" + timelastmodified + ";");
// this is the chado feature_relationship.rank used
// to order features e.g. exons
if(rank > -1)
this_buff.append("feature_relationship_rank="+rank+";");
// attributes
Hashtable qualifiers = feat.getQualifiers();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment