public class dbSNP extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
aaPosition
location of the mutation in terms of amino acids
|
protected int |
geneID
gene associated with this dbSNP entry.
|
protected Set<HGVS> |
hgvs
Different Strings describing the variations in nomenclature
|
protected Set<String> |
residues
known mutated amino acid residues for this SNP
|
protected int |
rsID
dbSNP internal id.
|
protected String |
wildtype
Mutation has one wildtype
|
| Constructor and Description |
|---|
dbSNP()
Simple constructor
|
dbSNP(int rsID,
int geneID,
Set<String> residues,
int aaPosition,
String wildtype)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
(non-Javadoc)
|
int |
getAaPosition() |
int |
getGeneID()
Get the associated entrez gene identifier
|
Set<HGVS> |
getHgvs() |
Set<String> |
getResidues() |
int |
getRsID()
Get dbSNP identifier (rs-id)
|
static List<dbSNP> |
getSNP(int geneID)
Retrieves a list of dbSNP entries associated with a specific entrez-gene ID
|
String |
getWildtype() |
int |
hashCode()
(non-Javadoc)
|
static void |
init(DatabaseConnection mysql,
String psmTable,
String hgvs_view)
Initializes prepared statements for retrieving SNP information
|
void |
setAaPosition(int aaPosition) |
void |
setGeneID(int geneID)
Set the associated entrez gene identifier
|
void |
setHgvs(Set<HGVS> hgvs) |
void |
setResidues(Set<String> residues) |
void |
setRsID(int rsID)
Set the dbSNP identifier (e.g., rs334)
|
String |
toString()
(non-Javadoc)
|
protected int rsID
protected int geneID
protected String wildtype
protected int aaPosition
protected Set<HGVS> hgvs
public static void init(DatabaseConnection mysql, String psmTable, String hgvs_view) throws SQLException
mysql - database connectionpsmTable - PSM Table namehgvs_view - HGVS Table nameSQLExceptionpublic static List<dbSNP> getSNP(int geneID)
geneID - Entrez-Gene Identifierpublic int getRsID()
public void setRsID(int rsID)
rsID - dbSNP IDpublic int getGeneID()
public void setGeneID(int geneID)
geneID - Entrez Gene IDpublic String getWildtype()
public int getAaPosition()
public void setAaPosition(int aaPosition)
aaPosition - Amino acid locationpublic void setHgvs(Set<HGVS> hgvs)
hgvs - HGVS entries associated with this SNPpublic int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public String toString()
toString in class ObjectObject.toString()Copyright © 2016. All rights reserved.