Package org.biopax.paxtools.util
Class HGNC
java.lang.Object
org.biopax.paxtools.util.HGNC
This class provides a mapping between HGNC IDs and Symbols.
If JVM option paxtools.core.use-latest-genenames=ture, then
it downloads the custom mapping data from genenames.org;
otherwise will use previously downloaded built-in mapping file.
- Author:
- Ozgun Babur, Igor Rodchenkov
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancontainsGeneId(String id) static StringProvides NCBI (Entrez) Gene ID of the given gene symbol.static Stringstatic Stringstatic StringgetSymbolByHgncIdOrSym(String idOrSymbol) Find HGNC Symbol by HGNC id or name (do not use NCBI/Entrez gene id as the input to avoid mistakes).
-
Field Details
-
GENENAMES_CUST_EXPORT_URL
- See Also:
-
-
Constructor Details
-
HGNC
public HGNC()
-
-
Method Details
-
getSymbolByHgncIdOrSym
Find HGNC Symbol by HGNC id or name (do not use NCBI/Entrez gene id as the input to avoid mistakes).- Parameters:
idOrSymbol- HGNC ID (with or without "HGNC:" banana) or gene symbol (e.g. previous version)- Returns:
- primary HGNC gene symbol (if it's already the one, return the same)
-
getHgncId
-
getGeneId
Provides NCBI (Entrez) Gene ID of the given gene symbol.- Parameters:
symbol- gene symbol- Returns:
- EG ID
-
getSymbolByGeneId
-
containsGeneId
-