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

View source: R/extract_from_api.R

extract_feat_accR Documentation

Create a dataframe of protein features from JSON object (List of 6)

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

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

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


brennanpincardiff/drawProteins documentation built on March 8, 2024, 8:15 a.m.