Metadata-Version: 2.5
Name: pub-worm
Version: 0.3.18
Summary: Wormbase/PubMed/Ensembl/BioRxiv/ORCID API Access
Author-email: Dan Higgins <daniel.higgins@yahoo.com>
License: MIT
Requires-Python: >=3.12
Requires-Dist: aiofiles>=24.1.0
Requires-Dist: aiohttp>=3.9.5
Requires-Dist: beautifulsoup4>=4.12.3
Requires-Dist: lxml>=5.2.0
Requires-Dist: numpy>=1.26.0
Requires-Dist: openpyxl>=3.1.2
Requires-Dist: pandas>=2.2.3
Requires-Dist: pydantic>=2.7.0
Requires-Dist: requests>=2.31.0
Provides-Extra: dev
Requires-Dist: ipykernel>=6.29.0; extra == 'dev'
Requires-Dist: mypy>=1.10.0; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
Requires-Dist: pytest>=8.0.0; extra == 'dev'
Requires-Dist: ruff>=0.4.0; extra == 'dev'
Requires-Dist: types-aiofiles>=24.1.0; extra == 'dev'
Requires-Dist: types-requests>=2.31.0; extra == 'dev'
Description-Content-Type: text/markdown

# pub_worm
## Wormbase

- http://rest.wormbase.org/index.html

## API integration of Wormbase and NCBI Utils

- Call from the commandline
- `$PYTHONPATH="./src" python -m pub_worm.wormbase.WormbaseREST`


# Helpful Sites

- https://researchguides.library.wisc.edu/c.php?g=1144260&p=8349872

# ncbi_utils

- https://www.ncbi.nlm.nih.gov/books/NBK25501/

- https://www.ncbi.nlm.nih.gov/books/NBK25497/table/chapter2.T._entrez_unique_identifiers_ui/?report=objectonly


# eInfo

- https://eutils.ncbi.nlm.nih.gov/entrez/eutils/einfo.fcgi

- https://eutils.ncbi.nlm.nih.gov/entrez/eutils/einfo.fcgi?db=pmc

- https://eutils.ncbi.nlm.nih.gov/entrez/eutils/einfo.fcgi?db=nlmcatalog

# eSearch

- https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=pubmed&retmax=20&term=Dennis+Voelker

- https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=nlmcatalog&term=journalspmc[All%20Fields]

### Search nlmcatalog only get pubmed journals
- https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=nlmcatalog&term=nlmcatalog%20pubmed[subset]

- https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?db=nlmcatalog&term=nlmcatalog%20pubmed[subset]%20CellMetabolism[All%20Fields]


# eSummary
- https://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi?db=pubmed&id=37144896


# eFetch

- https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nlmcatalog&retmode=xml&id=101682128,101233170

- https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nlmcatalog&retmode=xml&id=297618,7505876

- https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=nuccore&id=34577062,24475906&rettype=fasta&retmode=text

- https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&query_key=1&WebEnv=MCID_6570ac6193da3159df3e2274

# Pull Article

- https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8322431/pdf/41598_2021_Article_94902.pdf


- https://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi"

```
        efetch_params = {
            "db": "pubmed",
            "id": ",".join(papers),  # Join IDs with comma
            "retmode": "json",
            "rettype": "abstract"
        }
```

## Pytest
* Run a specific test from the command line 

- `cd /Users/dan/Code/Python/pub_worm/tests`
- `export PYTHONPATH=..;python -m pytest  ncbi/test_entreze_api.py::test_entreze_esearch`
