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) if use, add 'yes'. If not, keep it empty.
use_openai: yes
# (Optional) if use_openai is true, add your openai_api_key. Otherwise, keep it empty.
openai_api_key: YOUR_OPENAI_API_KEY
# (Optional) Prompt to ask ChatGPT. If you don't use it, keep it empty.
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: ./extract_result_20231004.csv
pubmedzenbu PATH_TO_YOUR_config.yml_FILE
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 Distribution
PubmedZenbu-0.3.7.tar.gz
(7.1 kB
view hashes)
Built Distribution
Close
Hashes for PubmedZenbu-0.3.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 423a8a3d04af692d2c2b63f7e20a6d32d77dcad55aa888d6de5601106c6a0661 |
|
MD5 | 5c8a5cab34fc3d234e8abbc3308938be |
|
BLAKE2b-256 | 2eb2f15e6e18478979bc8c067e9a7efe864c45ecfccf50e8ab7b8621df0a4d81 |