-
Notifications
You must be signed in to change notification settings - Fork 7
update pubmed fetch code #292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for strchive ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@laurelhiatt would you mind checking my edits here? Did I mess anything up?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides the one closing parenthesis which is honestly probably unnecessary, it looks good to me! it seems to have worked and be in compatible formatting with downstream stuff from what I know, as soon as it's renamed
| #joined_terms <- paste0('(', paste(or_terms, collapse = '[Title/Abstract] OR '), ')[Title/Abstract]') | ||
| # Construct the query with organized or_terms | ||
| query <- paste0('("repeat expansion"[Title/Abstract] OR "tandem repeat"[Title/Abstract]) AND ("discovered"[Title/Abstract] OR "identified"[Title/Abstract] OR "causative"[Title/Abstract] OR "underlie"[Title/Abstract] OR "basis"[Title/Abstract]) AND "English"[Language] AND ("disease"[Title/Abstract] OR "disorder"[Title/Abstract] OR "syndrome"[Title/Abstract] OR "condition*"[Title/Abstract]) AND ("journal article"[Publication Type] OR "letter"[Publication Type] OR "Case Reports"[Publication Type]) NOT "review"[Publication Type])') | ||
| query <- paste0('("repeat expansion"[Title/Abstract] OR "tandem repeat"[Title/Abstract]) AND ("discovered"[Title/Abstract] OR "identified"[Title/Abstract] OR "causative"[Title/Abstract] OR "underlie"[Title/Abstract] OR "basis"[Title/Abstract]) AND "English"[Language] AND ("disease"[Title/Abstract] OR "disorder"[Title/Abstract] OR "syndrome"[Title/Abstract] OR "condition*"[Title/Abstract]) AND ("journal article"[Publication Type] OR "letter"[Publication Type] OR "Case Reports"[Publication Type]) NOT "review"[Publication Type]') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need a closing parenthesis here?
|
There was one extra ")" without a matching "(" at the start. So one was
extra. It was causing an error that didn't crash the program but was
confusing me so I decided to remove it.
Thanks for checking my work!
…On Thu, Nov 6, 2025 at 2:08 PM laurelhiatt ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
On scripts/get-literature.R
<#292 (comment)>:
Besides the one closing parenthesis which is honestly probably
unnecessary, it looks good to me! it seems to have worked and be in
compatible formatting with downstream stuff from what I know, as soon as
it's renamed
—
Reply to this email directly, view it on GitHub
<#292 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA46PBPYVQK4HQ5PME2SNGL33O2ELAVCNFSM6AAAAACLE6GCHCVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZTIMZQGU3DOMZYGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Harriet Dashnow (*she/her)*
BSc, BA, MSc (Bioinformatics), PhD
https://dashnowlab.org/
|
b47c8ca to
ac8431d
Compare
ac8431d to
4333bd9
Compare
Description
Changed the way pubmed queries are run using the new batch approach
Fixes: #290
To do before merge
Minor Changes
Checklist
CITATION.cff, format X.Y.Z. If any major changes, increment Y. If only minor changes, increment Z. If the breaking change (rare), increment X.