Skip to contents

Pure. Sorted by start position.

Usage

uniprot_parse_features(body)

Arguments

body

A parsed EBI Proteins features response.

Value

A tibble of type, label, description, begin, and end. A zero-row tibble when the entry has no features of the requested types, because "this protein has no annotated domains" is a real answer.

References

Nightingale et al. (2017). The Proteins API: accessing key integrated protein and genome information. Nucleic Acids Research 45(W1), W539-W544. doi:10.1093/nar/gkx237

The data it serves is UniProt's. The UniProt Consortium (2025). UniProt: the Universal Protein Knowledgebase in 2025. Nucleic Acids Research 53(D1), D609-D617. doi:10.1093/nar/gkae1010

Service documentation: https://www.ebi.ac.uk/proteins/api/doc/

Examples

body <- list(features = list(
  list(type = "DOMAIN", description = "Protein kinase", begin = "457", end = "717")
))
uniprot_parse_features(body)
#> # A tibble: 1 × 5
#>   type   label  description    begin   end
#>   <chr>  <chr>  <chr>          <int> <int>
#> 1 DOMAIN Domain Protein kinase   457   717