Hi,
This reply is better suited as a reply to my comment. Could you make the appropriate change please? That would involve the following steps:
- Copy the contents of your reply from this answer (you can edit this answer (Ctrl/Cmd + click the link to open it in a new tab) and do a
Select All->Copythere). - Click on
Add Replyon my comment here: C: How to run protein-protein interaction on R using STRING database - Paste the copied text
- Click on the green
Add Commentbutton - Click on
moderateback in your answer here: A: How to run protein-protein interaction on R using STRING database - Choose
Delete Post - Click on the blue
Submitbutton.
Thank you!
P.S: Please do not add answers unless you're answering the top level question. Use Add Comment or Add Reply as appropriate. Also, pay attention to my previous comment on formatting your post.
Please use the formatting bar (especially the
codeoption) to present your post better. You can use backticks for inline code (`text` becomestext), or select a chunk of text and use the highlighted button to format it as a code block. I've done it for you this time.How did you install
STRINGdb, a Biooconductor package, usinginstall.packages()instead ofBiocManager::install()?May I kindly RamRS,
From then on, what codes can I use to avoid getting the error below:
Error in tempMatr[i, ] : incorrect number of dimensionsThe question is on linking the dataset on R to the STRING database.
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
I would greatly appreciate the help very much.
I am not sure why, but when you read your data from Excel into R some times you will face difficulty around your data type. Conveting your data to data frame by
data.framefunction resovled the issue. look at :converting p to pp as a dataframe
Now it works,
It seems your identifires are not in correct format.
Also, make sure you pasted correct codes for package installation. Is it possible to install a Biocondoctor package by
install.packages()function?Its better to check on the website on installations: anyhow if you run this code it will work,
Hi, first of all I'm not an expert at all but I've been working with STRINGdb in R this week and I wanted to contribute to the community.
Firstly, in case you don't know it, you can use the gene symbols you have in your Excel without mapping them to a STRING id, so you can save yourself the mapping part.
You don't say how (in which format) do you want the network, it can be as a PNG image or as a TSV file, for example. If you want an image you can just use the get_png method from STRINGdb package. An easy way to use it in your example would be something like this:
However, I don't know why you put 00 as score_threshold, the medium (and by default) value is 400 and if you to set it lower than that, I suggest a value of 200.
Hope it serves. Regards