The question is on linking the dataset on R to the STRING database in order to find protein to protein interactions. I would greatly appreciate the help very much or ideas on linking the dataset i.e. what codes I should use for such a case. Below I show the codes I used and the error that resulted afterwards when I wanted to load my dataset. Basically the proteins I want to establish a network for are in this sharable link: https://drive.google.com/file/d/1aJisbhWyqUFcx_wIBMxcDtw5fMIE-z5d/view?usp=sharing
install.packages("STRINGdb")
library(BiocManager)
library("STRINGdb")
string_db <- STRINGdb$new( version="11", species=469008, score_threshold=00, input_directory="")
library(readxl)
p <- read_excel("1.xlsx")
View(p)
p_mapped <- string_db$map( p, "gene", removeUnmappedRows = TRUE )
**Error in tempMatr[i, ] : incorrect number of dimensions**
Thank you for the response. I am still a newbie on R, but I`m trying to learn. I converted p to a data frame. I got an error still, and I suspect its the tibbles issue you mentioned. If there's suggestions or modifications I would greatly appreciate it very much :)
Now the code is working. However, it's telling you that it can't find your identifiers. This is because you're not using identifiers that STRING knows about. Check what types of identifiers/names STRING knows about for your organism and use one of these types.