View Javadoc

1   /*--------------------------------------------------------------------------
2    *  Copyright 2009 utgenome.org
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *     http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
15   *--------------------------------------------------------------------------*/
16  //--------------------------------------
17  // utgb-core Project
18  //
19  // BEDGene.java
20  // Since: 2010/09/02
21  //
22  // $URL$ 
23  // $Author$
24  //--------------------------------------
25  package org.utgenome.gwt.utgb.client.bio;
26  
27  import java.io.Serializable;
28  
29  /**
30   * Representing each gene line of BED format
31   * 
32   * @author yoshimura
33   * 
34   */
35  public class BEDGene extends Gene implements Serializable {
36  
37  	private static final long serialVersionUID = 1L;
38  
39  	public String coordinate;
40  	public int score = 0;
41  
42  	public BEDGene() {
43  	}
44  
45  	public BEDGene(BEDGene other) {
46  		super(other);
47  		this.coordinate = other.coordinate;
48  		this.score = other.score;
49  	}
50  
51  	public CDS cdsRange() {
52  		return getCDS().get(0);
53  	}
54  
55  	@Override
56  	public void accept(OnGenomeDataVisitor visitor) {
57  		visitor.visitBEDGene(this);
58  	}
59  }