get_features: GET features of protein(s) from UniProt API

Description Usage Arguments Value Examples

View source: R/get_features.R

Description

This function creates the URL required to query the UniProt API and returns the features of the protein or proteins in JSON format. It uses the GET() function from the httr package.

Usage

1
get_features(proteins_acc)

Arguments

proteins_acc

A vector of length 1 with one or more UniProt accession numbers separated by spaces.

Value

If there is internet access and the UniProt accession numbers are good, the function will return a list of lists. The list will be of length equivalent to the number of Uniprot accession numbers supplied. The lists inside will be of length 6 and will contain information about the proteins and the features.

Examples

1
2
# Requires internet access
prot_data <- get_features("Q04206 Q01201 Q04864 P19838 Q00653")

drawProteins documentation built on Nov. 8, 2020, 5:25 p.m.