1 package jalview.datamodel;
\r
5 public class FeaturePair {
\r
9 public FeaturePair() {
\r
10 this.f1 = new SequenceFeature();
\r
11 this.f2 = new SequenceFeature();
\r
13 public FeaturePair(SequenceFeature f1, SequenceFeature f2) {
\r
17 public void setQueryFeature(SequenceFeature feature) {
\r
20 public SequenceFeature getQueryFeature() {
\r
23 public void setHitFeature(SequenceFeature feature) {
\r
26 public SequenceFeature getHitFeature() {
\r
29 public void setStart(int start) {
\r
32 public int getStart() {
\r
33 return f1.getStart();
\r
35 public void setEnd(int end) {
\r
38 public int getEnd() {
\r
41 public void setStrand(int strand) {
\r
42 f1.setStrand(strand);
\r
44 public int getStrand() {
\r
45 return f1.getStrand();
\r
47 public String getId() {
\r
50 public void setId(String id) {
\r
53 public double getScore() {
\r
54 return f1.getScore();
\r
56 public void setScore(double score) {
\r
61 public String getHitId() {
\r
64 public void setHitId(String name) {
\r
67 public int getHstart() {
\r
68 return f2.getStart();
\r
70 public void setHstart(int start) {
\r
73 public int getHend() {
\r
76 public void setHend(int end) {
\r
79 public void setHstrand(int strand) {
\r
80 f2.setStrand(strand);
\r
82 public int getHstrand() {
\r
83 return f2.getStrand();
\r
86 public double getPValue() {
\r
87 return f1.getPValue();
\r
89 public void setPValue(double value) {
\r
90 f1.setPValue(value);
\r
91 f2.setPValue(value);
\r
93 public double getPercentId() {
\r
94 return f1.getPercentId();
\r
96 public void setPercentId(double pid) {
\r
97 f1.setPercentId(pid);
\r
98 f2.setPercentId(pid);
\r
101 public void invert() {
\r
102 SequenceFeature tmp = f1;
\r
107 public String toGFFString() {
\r
108 String tmp = f1.toGFFString();
\r
110 tmp = tmp + "\t" + getHitId() + "\t" + getHstart() + "\t" + getHend() + "\t" + getPValue() + "\t" + getPercentId();
\r
115 public static void main(String[] args) {
\r
116 FeaturePair fp = new FeaturePair();
\r