public class Gene extends Object
| Constructor and Description |
|---|
Gene()
Empty constructor
|
Gene(int pmid,
int geneID,
int species) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
(non-Javadoc)
|
int |
getConfidence()
Gets the confidence for this gene.
|
String |
getEntity()
Gets the string in the text.
|
int |
getGeneID()
Gets the gene-ID (Entrez in our case).
|
EntityOffset |
getLocation()
Gets the found at which position.
|
int |
getPmid()
Gets the article ID.
|
int |
getSpecies()
Gets the species.
|
int |
hashCode()
(non-Javadoc)
|
static void |
init(DatabaseConnection connection,
String geneTable,
String gene2Pubmed)
Initializes the prepared statements for retrieving
gene information for one PubMed article
|
static Set<Gene> |
queryGenesForArticle(int pmid)
Search for all genes contained in an Article using PubMed ID.
|
String |
toString()
(non-Javadoc)
|
public Gene()
public Gene(int pmid,
int geneID,
int species)
pmid - PubMed-IDgeneID - Entrez Gene IDconfidence - NER/NEN confidencespecies - Associated specieslocation - Position in textentity - Entity mentionpublic int getPmid()
public int getGeneID()
public int getConfidence()
public int getSpecies()
public EntityOffset getLocation()
public String getEntity()
public String toString()
toString in class ObjectObject.toString()public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public static void init(DatabaseConnection connection, String geneTable, String gene2Pubmed) throws SQLException
connection - Database connectiongeneTable - Table name for GNAT resultsgene2Pubmed - Table name for gene2PubMed resultsSQLExceptionCopyright © 2016. All rights reserved.