public class DBGeneDAO extends DBCoreObjectDAO implements GeneDAO
Modifier and Type | Class and Description |
---|---|
class |
DBGeneDAO.GeneMappingRowHandler |
class |
DBGeneDAO.MappingRowHandler |
collFactory, singleSpecies, species, ssFactory
configuration, daoFactory
Constructor and Description |
---|
DBGeneDAO() |
DBGeneDAO(DAOCollectionCoreFactory factory) |
DBGeneDAO(DAOSingleSpeciesCoreFactory factory) |
Modifier and Type | Method and Description |
---|---|
DAGene |
addGeneByIDOnParent(Integer id,
DNASequence parent) |
DAGene |
addGeneByStableIDOnParent(String stableID,
DNASequence parent)
The gene returned has mapping to a sequence region - and the id for
the coordinate system that this region belongs to
|
String |
getComparaDB() |
DAGene |
getGeneByID(Integer id) |
DAGene |
getGeneByStableID(String stableID) |
List<Mapping> |
getGeneMappingsOnRegion(DNASequence region,
Coordinate coords) |
List<DAGene> |
getGenesByExactName(String name) |
List<DAGene> |
getGenesByNameBeginning(String name) |
List<DAGene> |
getGenesForVegaID(String id)
Returns a list of Ensembl Genes matching the query VegaID string.
|
void |
reInitialize(IdentifiableObject object)
Uses the stableid of an object to fill in missing data that would have been
present if the the gene had intially been made by a call to getGeneByStableID
or getGeneByID.
|
getDAOFactory, getSpecies, isSingleSpecies, setFactory, setFactory
getFactory, setConfiguration, setFactory
public DBGeneDAO()
public DBGeneDAO(DAOSingleSpeciesCoreFactory factory) throws DAOException
DAOException
public DBGeneDAO(DAOCollectionCoreFactory factory) throws DAOException
DAOException
public void reInitialize(IdentifiableObject object) throws DAOException
reInitialize
in interface ReInitializationDAO
object
- DAOException
public DAGene getGeneByID(Integer id) throws DAOException
getGeneByID
in interface GeneDAO
id
- DAOException
public DAGene addGeneByIDOnParent(Integer id, DNASequence parent) throws DAOException
addGeneByIDOnParent
in interface GeneDAO
DAOException
public DAGene getGeneByStableID(String stableID) throws DAOException
getGeneByStableID
in interface GeneDAO
stableID
- DAOException
public DAGene addGeneByStableIDOnParent(String stableID, DNASequence parent) throws DAOException
addGeneByStableIDOnParent
in interface GeneDAO
stableID
- parent
- DAOException
public List<Mapping> getGeneMappingsOnRegion(DNASequence region, Coordinate coords) throws DAOException
getGeneMappingsOnRegion
in interface GeneDAO
DAOException
public List<DAGene> getGenesForVegaID(String id) throws DAOException
getGenesForVegaID
in interface GeneDAO
id
- a valid vega ID (these begin 'OTT...')DAOException
public List<DAGene> getGenesByExactName(String name) throws DAOException
getGenesByExactName
in interface GeneDAO
DAOException
public List<DAGene> getGenesByNameBeginning(String name) throws DAOException
getGenesByNameBeginning
in interface GeneDAO
DAOException
public String getComparaDB()
getComparaDB
in interface GeneDAO
JEnsembl: A Java API for Ensembl Data Access v1.78
© Roslin Institute 2010-14. GNU General Public License, version3