|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.unc.csbio.data.Feature
edu.unc.csbio.data.Gene
public class Gene
The class Gene
inherits abstract class Feature
and
contains information of gene.
Field Summary | |
---|---|
private java.lang.String |
biotype
The name, id and biotype of the gene. |
private java.lang.String |
id
The name, id and biotype of the gene. |
private java.lang.String |
name
The name, id and biotype of the gene. |
private java.util.ArrayList<Transcript> |
transcripts
An ArrayList of transcripts in the gene |
Fields inherited from class edu.unc.csbio.data.Feature |
---|
chrom, end, start |
Constructor Summary | |
---|---|
Gene(java.lang.String _id,
java.lang.String _name,
java.lang.String _biotype,
Transcript _t)
A constructor for Gene object |
Method Summary | |
---|---|
void |
addTranscript(Transcript t)
The method to add a new transcript |
int |
getLength()
The method to get the exon part length of the gene |
java.util.ArrayList<Transcript> |
getTranscripts()
The method to get transcripts in the gene |
java.lang.String |
toString()
A method to get gene information |
Methods inherited from class edu.unc.csbio.data.Feature |
---|
compareTo, getChromosome, getEnd, getRange, getStart |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.lang.String name
private java.lang.String id
private java.lang.String biotype
private java.util.ArrayList<Transcript> transcripts
Constructor Detail |
---|
public Gene(java.lang.String _id, java.lang.String _name, java.lang.String _biotype, Transcript _t)
Gene
object
_id
- id of the gene_name
- name of the gene_biotype
- biotype of the gene_t
- a list of transcript in the geneMethod Detail |
---|
public java.util.ArrayList<Transcript> getTranscripts()
public void addTranscript(Transcript t)
public int getLength()
getLength
in class Feature
public java.lang.String toString()
toString
in class Feature
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |