extract_feat_acc: Create a dataframe of protein features from JSON object (List...

Description Usage Arguments Value Examples

View source: R/extract_from_api.R

Description

Converts the list of 6 JSON object created by getting the features from UniProt. Used in the feature_to_dataframe(). Does not give order. Does not operate on List of lists - just the list of 6.

Usage

1
extract_feat_acc(features_list)

Arguments

features_list

A JSON object - list of 6 with features inside. Created as one of the lists in the list of lists by the get_features() function.

Value

A dataframe with features: "type", "description", "begin", "end" and adds accession, entryName and taxid for each row.

Examples

1
2
3
data("five_rel_list")
one_protein_features <- extract_feat_acc(five_rel_list[[1]])
head(one_protein_features)

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