Open rebeccaito opened 1 year ago
Hi @rebeccaito - try the pubmed-annotate
function instead. The inputs are handled a bit differently as it can accept a full set of PubMed search results, but these can also be PMIDs. This should work, for example:
$ontogpt pubmed-annotate -t mendelian_disease.MendelianDisease --limit 1 37666660
It will perform the extraction on this publication's title+abstract alone.
pubmed-extract
appears to create a prompt for each character in the title/abstract when provided a Pubmed ID. For example, when providing PMID:37666660 ("Biallelic truncating variants in VGLL2 cause syngnathia in humans") with the following command:The following output is generated (truncated here because it's quite long):
As you can see the
Text
fields spellTitle: Biallelic...
when you stitch it back together, so the correct Pubmed ID is being accessed, although it appears to be parsed incorrectly before prompt generation.Is there a preferred way to extract information from Pubmed articles? Thanks.