git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
615ceb5
)
Features now array
author
amwaterhouse
<Andrew Waterhouse>
Fri, 24 Feb 2006 11:40:07 +0000
(11:40 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Fri, 24 Feb 2006 11:40:07 +0000
(11:40 +0000)
src/jalview/analysis/SeqsetUtils.java
patch
|
blob
|
history
diff --git
a/src/jalview/analysis/SeqsetUtils.java
b/src/jalview/analysis/SeqsetUtils.java
index
40869c2
..
61f10b5
100755
(executable)
--- a/
src/jalview/analysis/SeqsetUtils.java
+++ b/
src/jalview/analysis/SeqsetUtils.java
@@
-49,7
+49,7
@@
public class SeqsetUtils
sqinfo.put("Name", seq.getName());
\r
sqinfo.put("Start", new Integer(seq.getStart()));
\r
sqinfo.put("End", new Integer(seq.getEnd()));
\r
sqinfo.put("Name", seq.getName());
\r
sqinfo.put("Start", new Integer(seq.getStart()));
\r
sqinfo.put("End", new Integer(seq.getEnd()));
\r
- sqinfo.put("SeqFeatures", (seq.getSequenceFeatures() !=null) ? seq.getSequenceFeatures() : new Vector());
\r
+ sqinfo.put("SeqFeatures", (seq.getSequenceFeatures() !=null) ? seq.getSequenceFeatures() : null);
\r
sqinfo.put("PdbId",
\r
(seq.getPDBId() != null) ? seq.getPDBId() : new Vector());
\r
sqinfo.put("datasetSequence", (seq.getDatasetSequence() !=null) ? seq.getDatasetSequence() : new Sequence("THISISAPLACEHOLDER",""));
\r
sqinfo.put("PdbId",
\r
(seq.getPDBId() != null) ? seq.getPDBId() : new Vector());
\r
sqinfo.put("datasetSequence", (seq.getDatasetSequence() !=null) ? seq.getDatasetSequence() : new Sequence("THISISAPLACEHOLDER",""));
\r
@@
-71,7
+71,7
@@
public class SeqsetUtils
String oldname = (String) sqinfo.get("Name");
\r
Integer start = (Integer) sqinfo.get("Start");
\r
Integer end = (Integer) sqinfo.get("End");
\r
String oldname = (String) sqinfo.get("Name");
\r
Integer start = (Integer) sqinfo.get("Start");
\r
Integer end = (Integer) sqinfo.get("End");
\r
- java.util.Vector sfeatures = (java.util.Vector) sqinfo.get(
\r
+ SequenceFeature [] sfeatures = (SequenceFeature[]) sqinfo.get(
\r
"SeqFeatures");
\r
Vector pdbid = (Vector) sqinfo.get("PdbId");
\r
Sequence seqds = (Sequence) sqinfo.get("datasetSequence");
\r
"SeqFeatures");
\r
Vector pdbid = (Vector) sqinfo.get("PdbId");
\r
Sequence seqds = (Sequence) sqinfo.get("datasetSequence");
\r
@@
-94,7
+94,7
@@
public class SeqsetUtils
sq.setEnd(end.intValue());
\r
}
\r
\r
sq.setEnd(end.intValue());
\r
}
\r
\r
- if ((sfeatures != null) && (sfeatures.size()>0))
\r
+ if ((sfeatures != null) && (sfeatures.length>0))
\r
{
\r
sq.setSequenceFeatures(sfeatures);
\r
}
\r
{
\r
sq.setSequenceFeatures(sfeatures);
\r
}
\r