Entering edit mode
4.6 years ago
tpm
▴
30
Hi,
I would like to know the codes precisely on how I load data with my list of protein targets that I want analysed on the String database. So far I know that I have to run these codes below.
From then on, I do not know how I should:
- Load the dataset
Link the dataset on R in order to run it on R
install.packages("BiocManager") install.packages("STRINGdb") library("STRINGdb")
PS. I am a beginner level in programming.
Thank you in advance, I hope for a favourable response.
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
Please use the formatting bar (especially the
code
option) 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 dimensions
The 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.frame
function 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,