hello
I have a code too long to be pasted here. please assign some time to my problem kindly. long time i am trying to run this code but i am too new in R and never i could run this code. i have to get a result from this code but i could not find anyone around me to solve my problem...
i pasted my google derived address of my data and R script
https://drive.google.com/file/d/0BwOX04QQkaXTM1VMdHJCM3JjRHM/view?usp=sharing
https://drive.google.com/file/d/0BwOX04QQkaXTVDB1R0pHdFh4bHc/view?usp=sharing
https://drive.google.com/file/d/0BwOX04QQkaXTVDB1R0pHdFh4bHc/view?usp=sharing
https://drive.google.com/file/d/0BwOX04QQkaXTWDljSEFBVTAyRm8/view?usp=sharing
https://drive.google.com/file/d/0BwOX04QQkaXTdC1iOHlVY3JwMXM/view?usp=sharing
thank you so much for any help
Your link goes to my-drive
my data are in my derive
Sure, but when I click on the link I get into my own google drive...
sorry, you all right...I edited the links now all of my needed input files can be founds in mentioned links.
There's 200 lines of code there, and you give no indication of what's failing for you. I think you should step through the code and then come back with a more specific explanation of what is causing you problems. If you can chop your data down into a small reproducible example then you're far more likely to get some help.
thank you. i have a bed file from ribosome profiling and two txt files contain gene ids extreacted from sam files of ribosome profiling and mRNA profiling and and a file contains protein coding genes and their length in yeast. these mentioned files are my input for code. actually i can't get the reason of different errors by running some lines of my code. all i need that running this code on my data that i never reached since long time ago but my adviser tells i should do that as soon as possible.
for example by running the line 48 i got this error
>
It's highly unlikely that you will find somebody on this list who has the time to go through all your code and debug it for you. With an Open Source scripting language like R, most of the responsibility for making sure you are doing things correctly is on you. Because of that, it's critical that you read and interpret warning and error messages. So let's take a look. You got this message:
In that line of code you are trying to replace the yth column of MATRS_new_1 with an object called COUNTS_COL_new_1, and R says that the 'number of items to replace is not a multiple of replacement length'. I find this message to be pretty clear, but I suppose a naive user might not, especially because this has to do with something unexpected that R will do. So let's have an example
That's pretty weird, right? I said to replace the first column of z with just two values, and R silently recycled those numbers to fill all 10 rows. This is something that often trips up new R users, as it isn't something you might expect. But let's say we try a different vector.
So now R is getting all grumpy and refusing to play. But if you know that R will silently recycle values if the length of the values is a multiple of the thing you are replacing, then the error makes sense.
That's your one free primer on R's weirdness, because like I said, nobody has the time to help you debug all your code - that's on you. I should mention that googling 'R number of items to replace is not a multiple of replacement length' will bring up lots of posts that would have explained this to you, so going forward, that's a good way to figure things out.
thank you so much