Implement new private_api/taxa/unique_peptides endpoint#99
Closed
pverscha wants to merge 2 commits into
Closed
Conversation
private_api/taxa/unique_peptides endpoint
Member
Author
|
Merged with #101 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Add
/private_api/taxa/unique_peptidesendpointSummary
GET/POSTendpoint at/private_api/taxa/unique_peptides(and.json) that computes taxon-unique peptides for a given strain or species.get_proteins_for_taxon()to thedatabasecrate: an exactterm-query ontaxon_idwithsearch_afterpagination to correctly handle taxa with more than 10,000 proteins.fancy-regexdependency to support lookahead assertions in user-supplied cleavage patterns (the standardregexcrate does not support lookaheads).Endpoint contract
Request parameters
taxon_idu32cleavage_regexstring[KR](?!P)min_lengthusize5Response
{ "unique_peptides": ["AAFEDLQSLQDK", "NLFVAKNLR"], "total_peptides": 4821, "total_unique_peptides": 312 }total_peptidesis the count of deduplicated peptides after digestion and length filtering.total_unique_peptidesequalsunique_peptides.length.Error cases:
Algorithm: