Skip to contents

This function parses the data retrieved from the UniProt API to extract the entry name, protein name, and gene name.

Usage

parse_uniprot_data(uniprot_data)

Arguments

uniprot_data

A list returned by the UniProt API query.

Value

A list containing `entry_name`, `protein_name`, and `gene_name`.

Examples

# Example usage:
# \donttest{
# Retrieve UniProt data
test_result <- retrieve_uniprot_data("O88737")
#> ℹ Sending request to UniProt for accession: O88737
#> ✔ Successfully retrieved data for O88737

# Parse the UniProt data
parsed_result <- parse_uniprot_data(test_result)
#> ℹ Parsing UniProt data...
#> ✔ Entry name retrieved: BSN_MOUSE
#> ✔ Protein name retrieved: Protein bassoon
#> ✔ Gene name retrieved: Bsn
#> ℹ Parsing completed.

# Print the parsed result
print(parsed_result)
#> $entry_name
#> [1] "BSN_MOUSE"
#> 
#> $protein_name
#> [1] "Protein bassoon"
#> 
#> $gene_name
#> [1] "Bsn"
#> 
# }