- this(seq.getName(), seq.getSequence(), seq.getStart(), seq.getEnd());
+ this(seq.getName(),
+ seq.getSequence(),
+ seq.getStart(),
+ seq.getEnd());
+ description = seq.getDescription();
+ if (seq.getSequenceFeatures()!=null) {
+ SequenceFeature[] sf = seq.getSequenceFeatures();
+ for (int i=0; i<sf.length; i++) {
+ addSequenceFeature(new SequenceFeature(sf[i]));
+ }
+ }
+ if (seq.getDBRef()!=null) {
+ DBRefEntry[] dbr = seq.getDBRef();
+ for (int i=0; i<dbr.length; i++) {
+ addDBRef(new DBRefEntry(dbr[i]));
+ }
+ }
+ setDatasetSequence(seq.getDatasetSequence());
+ if (seq.getAnnotation()!=null) {
+ AlignmentAnnotation[] sqann = seq.getAnnotation();
+ for (int i=0;i<sqann.length; i++)
+ {
+ AlignmentAnnotation newann = new AlignmentAnnotation(sqann[i]);
+ addAlignmentAnnotation(newann);
+ }
+ }
+ if (seq.getPDBId()!=null) {
+ Vector ids = seq.getPDBId();
+ Enumeration e = ids.elements();
+ while (e.hasMoreElements()) {
+ this.addPDBId(new PDBEntry((PDBEntry) e.nextElement()));
+ }
+ }