PubmedZenbu
Project description
pubmed-zenbu
- This tool collects literature data (title_only or title_and_abstract) of your interest.
- This tool also extracts metadata from literature data using ChatGPT if you set the parameters.
How to use
- `conda create -n pubmedzenbu python=3.9'
- Create a
config.yml
# Sample config.yml
pubmed_search:
# (Required) NCBI API Key
ncbi_api_key: YOUR_NCBI_API_KEY
# (Required) Search query to obtain the PubMed articles of your interest
search_query: prime editing pig
# (Required) How far back in time you want to search.
search_oldest_year: 2010
# (Required) `title` or `abstract`. If choose `abstract`, it means you get the joined string of title and abstract.
which_text_to_use: title
openai:
# (Required) `true` or `false`
use_openai: true
# (Optional) if use_openai is true, add your openai_api_key
openai_api_key: YOUR_OPENAI_API_KEY
# (Optional) Prompt to ask ChatGPT
prompt: "extract gene and species from the following text \n"
# (Required) Set the output path. If use_openai is false, literature data will be written out.
output_path: /Users/suzuki/pubmed-zenbu/extract_result_20231004.csv
- import the package and run the module by assiging the path to config.yml
import PubmedZenbu
PubmedZenbu.PubmedZenbu(YOUR_config.yml_PATH)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for PubmedZenbu-0.2.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e9072be22e83b9150b6a078a967a7451cbf1df427382cf7e03df52a7b550856 |
|
MD5 | a08bd0453ecf66b4f46ae8aed4709415 |
|
BLAKE2b-256 | f67ae0e2c100420dbe09ecbf4ee874f9bcc22e779636c88152f41fc27e0149c7 |