Get the annotation of a STRINGdb object, i.e. the aliases of the protein information

getAnnotation(stringdb)

Arguments

stringdb

the STRINGdb object

Value

A data.frame mapping STRINGdb ids to gene names

Examples

string_db <- getStringDB(9606)
string_db
#> ***********  STRING - https://string-db.org   ***********
#> (Search Tool for the Retrieval of Interacting Genes/Proteins)  
#> version: 11.5
#> species: 9606
#> ............please wait............
#> Warning: URL 'https://stringdb-downloads.org/download/protein.info.v11.5/9606.protein.info.v11.5.txt.gz': status was 'SSL peer certificate or SSH remote key was not OK'
#> Error in download.file(urlStr, temp): cannot open URL 'https://stringdb-downloads.org/download/protein.info.v11.5/9606.protein.info.v11.5.txt.gz'
anno_df <- getAnnotation(string_db)
#> Warning: URL 'https://stringdb-downloads.org/download/protein.aliases.v11.5/9606.protein.aliases.v11.5.txt.gz': status was 'SSL peer certificate or SSH remote key was not OK'
#> Error in download.file(urlStr, temp): cannot open URL 'https://stringdb-downloads.org/download/protein.aliases.v11.5/9606.protein.aliases.v11.5.txt.gz'