Build simple gene dictionary using data from NCBI gene database.
- Install the prerequisite and follow the installation steps shown below.
- Choose one of two methods:
- Acquire data through NCBI's API
- edit the list of genes in search.py
pipenv run search
- Use local copy of NCBI gene database
- edit the list of genes in extract.py
pipenv run extract
- Acquire data through NCBI's API
- result will be saved in data.json
- Python 3.7
- pipenv
- gene2xml
wget ftp://ftp.ncbi.nlm.nih.gov/gene/DATA/ASN_BINARY/Mammalia/Homo_sapiens.ags.gz -O Homo_sapiens.ags.gz
gene2xml -i ./Homo_sapiens.ags.gz -o ./gene_database.xml -c T -l T -b T
pipenv install
pipenv install --dev
pipenv run test