Skip to content

Add option to report protein count when filtering by taxa in private_api#98

Closed
pverscha wants to merge 1 commit into
developfrom
feature/protein_count_for_taxa
Closed

Add option to report protein count when filtering by taxa in private_api#98
pverscha wants to merge 1 commit into
developfrom
feature/protein_count_for_taxa

Conversation

@pverscha

@pverscha pverscha commented Jun 5, 2026

Copy link
Copy Markdown
Member

This PR expands the private_api/taxa endpoint and adds a new parameter report_protein_count that will report the amount of proteins that are associated with the provided taxa. If a taxon is provided at a level that's higher than species or strain, the protein count is equal to the sum of the protein count of all descendant taxa.

Example:

Request:

{
    "taxids": [4751],
    "report_protein_count": true
}

Response:

[
    {
        "id": 4751,
        "name": "Fungi",
        "rank": "kingdom",
        "lineage": [
            2759,
            null,
            4751,
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            null,
            null
        ],
        "protein_count": 38050
    }
]

@pverscha pverscha self-assigned this Jun 5, 2026
@pverscha pverscha added the enhancement New feature or request label Jun 5, 2026
@pverscha

Copy link
Copy Markdown
Member Author

Merged with #101.

@pverscha pverscha closed this Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant