AUREA.parser.SynonymParser
index
/home/earls3/Price/AUREA/build/lib.linux-x86_64-2.6/AUREA/parser/SynonymParser.py

Copyright (C) 2011  N.D. Price Lab
 
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.
 
You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

 
Classes
       
SynonymParser

 
class SynonymParser
    A parser for gene_info.gs from ftp://ftp.ncbi.nlm.nih.gov/gene/DATA/
This will may need to be expanded in order to allow other
sources for synonyms, but this seems pretty comprehensive.
Note in version 2.0 we should use pyBabel.
 
  Methods defined here:
__init__(self)
getSynonyms(self, geneName)
Returns a list of genes that are synonyms for the given gene Name
Returns None if it can't find geneName in its dictionary.
importgene_info(self, fname)
A specific function to read the gene_info.gz
you need to provide with the name and path to gene_info.gz
see ftp://ftp.ncbi.nlm.nih.gov/gene/DATA/README to see how it is
layed out
For testing I used Homo_sapiens.gene_info.gz pretty much exclusively.