Skip to content

Conversation

@stitam
Copy link
Owner

@stitam stitam commented Feb 7, 2025

Related to #40.

This PR:

  • Adds a non-exported utility function validate_ncbi_uid() which checks if the input is a valid NCBI UID.
  • Adds an exported function ncbi_post_uid() which post uids to NCBI and return a ncbi_uid object with web history.

While this does not impact the behavior of functions when they try to access invalid web histories, it does enable the users to generate new web histories for their UIDs if they want. UIDs may come from outside webseq in which case they will not have web history, they may be generated without web history, or their web history may expire. In any case, if a new web history is needed for a vector uids, this function can be used to generate one.

@stitam stitam merged commit ab2beb6 into master Feb 7, 2025
3 of 4 checks passed
@stitam stitam deleted the webhistory branch February 7, 2025 19:26
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.

2 participants