Skip to content

Conversation

@hdashnow
Copy link
Member

@hdashnow hdashnow commented Nov 4, 2025

Description

Changed the way pubmed queries are run using the new batch approach

Fixes: #290

To do before merge

  • rebase then only change the name of the literature .txt files, not the content. So that no new papers are missed next month.

Minor Changes

  • Needed to rename all intermediate literature files to the new batch format

Checklist

  • All changes are well summarized
  • Check all tests pass
  • Check that the website preview looks good
  • Update the STRchive version in 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.
  • Ask someone to review this PR

@netlify
Copy link

netlify bot commented Nov 4, 2025

Deploy Preview for strchive ready!

Name Link
🔨 Latest commit 7520699
🔍 Latest deploy log https://app.netlify.com/projects/strchive/deploys/690d340376cac50008195745
😎 Deploy Preview https://deploy-preview-292--strchive.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@hdashnow hdashnow marked this pull request as ready for review November 6, 2025 18:37
@hdashnow hdashnow requested a review from laurelhiatt November 6, 2025 18:40
Copy link
Member Author

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?

Copy link
Contributor

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]')
Copy link
Contributor

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?

@hdashnow
Copy link
Member Author

hdashnow commented Nov 6, 2025 via email

@hdashnow hdashnow merged commit 6e78f01 into main Nov 7, 2025
1 check passed
@hdashnow hdashnow deleted the pubmed-fetch branch November 7, 2025 00:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecated "batch_pubmed_download" function in get-literature.R

3 participants