Introduce ncbi_post_uid() #97
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related to #40.
This PR:
validate_ncbi_uid()which checks if the input is a valid NCBI UID.ncbi_post_uid()which post uids to NCBI and return ancbi_uidobject 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.