From: amwaterhouse Date: Thu, 5 May 2005 10:34:02 +0000 (+0000) Subject: pdbfile details not essential to sequence X-Git-Tag: Release_2_0~321 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=58d43be1e7c0bcd32c567ec9dfafc3abee45e20c;p=jalview.git pdbfile details not essential to sequence --- diff --git a/src/jalview/datamodel/Sequence.java b/src/jalview/datamodel/Sequence.java index 7a48c2b..8928425 100755 --- a/src/jalview/datamodel/Sequence.java +++ b/src/jalview/datamodel/Sequence.java @@ -8,21 +8,14 @@ import MCview.*; public class Sequence implements SequenceI { - protected String name; - protected String sequence; + protected String name; + protected String sequence; protected String description; - protected int start; - protected int end; - protected String displayId; - protected Color color = Color.white; + protected int start; + protected int end; + protected String displayId; + protected Color color = Color.white; String pdbId; - PDBfile pdb; - - public int maxchain = -1; - public int pdbstart; - public int pdbend; - public int seqstart; - public int seqend; public Vector sequenceFeatures = new Vector(); public void setSequenceFeatures(Vector v) @@ -42,47 +35,6 @@ public class Sequence implements SequenceI return pdbId; } - public void setPDBfile(PDBfile pdb) - { - this.pdb = pdb; - int max = -10; - maxchain = -1; - - for (int i=0; i < pdb.chains.size(); i++) { - - System.out.println("PDB sequence = " + ((PDBChain)pdb.chains.elementAt(i)).sequence); - // Now lets compare the sequences to get - // the start and end points. - - - StringTokenizer str = new StringTokenizer(sequence, "."); - String newString = ""; - - while (str.hasMoreTokens()) { - newString += str.nextToken(); - } - // Align the sequence to the pdb - AlignSeq as = new AlignSeq(this,((PDBChain)pdb.chains.elementAt(i)).sequence,"pep"); - as.calcScoreMatrix(); - as.traceAlignment(); - as.printAlignment(); - - System.out.println("Score = " + as.maxscore); - if (as.maxscore > max) { - System.out.println("New max score"); - max = as.maxscore; - maxchain = i; - - pdbstart = as.seq2start; - pdbend = as.seq2end; - seqstart = as.seq1start - 1 ; - seqend = as.seq1end -1; - } - - System.out.println("PDB start/end " + pdbstart + " " + pdbend); - System.out.println("SEQ start/end " + seqstart + " " + seqend); - } - } public Sequence(String name, String sequence, int start, int end) {