Package org.intermine.bio.web.model
Class GeneModel
- java.lang.Object
-
- org.intermine.bio.web.model.GeneModel
-
public class GeneModel extends java.lang.ObjectRepresentation of a gene model - being one transcript of a gene and including exons, introns, UTRs and CDSs where data are available. On construction for a particular transcript this will fetch additional information from the database.
-
-
Constructor Summary
Constructors Constructor Description GeneModel(org.intermine.metadata.Model model, org.intermine.model.bio.Gene gene, org.intermine.model.InterMineObject transcript)Construct a new gene model for the given transcript and gene.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<org.intermine.model.InterMineObject>getCDSs()Get the CDSs if present.java.util.List<org.intermine.model.InterMineObject>getExons()Get the exons if present.org.intermine.model.InterMineObjectgetFivePrimeUTR()Get the fivePrimeUTR if present.org.intermine.model.bio.GenegetGene()The parent gene for this gene model.java.util.Set<java.lang.Integer>getIds()Return the ids of all objects represented in this gene model including the gene itself.java.util.List<org.intermine.model.InterMineObject>getIntrons()Get the introns if present.org.intermine.model.InterMineObjectgetThreePrimeUTR()Get the threePrimeUTR if present.org.intermine.model.InterMineObjectgetTranscript()Get the transcript this gene model represents
-
-
-
Constructor Detail
-
GeneModel
public GeneModel(org.intermine.metadata.Model model, org.intermine.model.bio.Gene gene, org.intermine.model.InterMineObject transcript)Construct a new gene model for the given transcript and gene. This will run queries for exons, introns, UTRs, etc. Note that model classes other than Gene can't be referred to by name as they may not be in all models.- Parameters:
model- the data modelgene- the parent genetranscript- the transcript to construct a gene model for
-
-
Method Detail
-
getGene
public org.intermine.model.bio.Gene getGene()
The parent gene for this gene model.- Returns:
- the gene
-
getTranscript
public org.intermine.model.InterMineObject getTranscript()
Get the transcript this gene model represents- Returns:
- the transcript
-
getExons
public java.util.List<org.intermine.model.InterMineObject> getExons()
Get the exons if present.- Returns:
- the exons
-
getIntrons
public java.util.List<org.intermine.model.InterMineObject> getIntrons()
Get the introns if present.- Returns:
- the introns
-
getCDSs
public java.util.List<org.intermine.model.InterMineObject> getCDSs()
Get the CDSs if present.- Returns:
- the CDSs
-
getThreePrimeUTR
public org.intermine.model.InterMineObject getThreePrimeUTR()
Get the threePrimeUTR if present.- Returns:
- the threePrimeUTR
-
getFivePrimeUTR
public org.intermine.model.InterMineObject getFivePrimeUTR()
Get the fivePrimeUTR if present.- Returns:
- the fivePrimeUTR
-
getIds
public java.util.Set<java.lang.Integer> getIds()
Return the ids of all objects represented in this gene model including the gene itself.- Returns:
- the ids of all objects represented in this gene model
-
-