Added toString() method
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@3516 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
6fd2d39a7d
commit
4f1181974b
|
|
@ -30,7 +30,7 @@ package org.broadinstitute.sting.playground.gatk.walkers.annotator;
|
||||||
*/
|
*/
|
||||||
public class AminoAcid {
|
public class AminoAcid {
|
||||||
private String name;
|
private String name;
|
||||||
private String code;
|
private String threeLetterCode;
|
||||||
private String letter;
|
private String letter;
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -43,7 +43,7 @@ public class AminoAcid {
|
||||||
*/
|
*/
|
||||||
public AminoAcid( String letter, String name, String code) {
|
public AminoAcid( String letter, String name, String code) {
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.code = code;
|
this.threeLetterCode = code;
|
||||||
this.letter = letter;
|
this.letter = letter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -74,11 +74,15 @@ public class AminoAcid {
|
||||||
/**
|
/**
|
||||||
* Returns the 3 letter code.
|
* Returns the 3 letter code.
|
||||||
*/
|
*/
|
||||||
public String getCode() { return code; }
|
public String getCode() { return threeLetterCode; }
|
||||||
|
|
||||||
|
|
||||||
/** Returns true if the amino acid is really just a stop codon. */
|
/** Returns true if the amino acid is really just a stop codon. */
|
||||||
public boolean isStop() {
|
public boolean isStop() {
|
||||||
return "*".equals(getLetter());
|
return "*".equals(getLetter());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String toString() {
|
||||||
|
return name;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue