Trying to use the latest version of methylSig package (0.3.2), and getting an error when using the methylSigCalc function.
I get a cryptic error message after it figures out the number of loci:
Total number of bases: 2.59m
Error in result[, 3] : subscript out of bounds”
I tried running the code of the methylSigCalc function line by line, and the first error I encounter is when it gets to the methylSig_dataProcess function (below is the error after specifying just one core to try to get a useful error message):
Error in do.call(rbind, lapply(which(validLoci),
methylSig_dataProcess, : error in evaluating the argument 'args' in
selecting a method for function 'do.call': Error in match.fun(FUN) :
object 'methylSig_dataProcess' not found
It does seem that methylSig_dataProcess is now missing from the package.
Any suggestions on where I might be going wrong?
Many thanks,
gogatea
Related
Using the syuzhet package in R, the following works but returns a warning message:
object <- get_text_as_string("path/name.txt")
When I put this in a function, it returns the same warning error but does NOT change the value of object:
gen <- function(file){
object <- get_text_as_string(file)
}
gen("path/name.txt")
This is the warning message, if it matters:
Warning message:
In readLines(path_to_file) :
incomplete final line found on 'path/name.txt'
...but again, I get that from get_text_as_string() when used outside of the function, but it DOES change the value of object.
Anyone have any advice? There must be something I don't understand about functions?
(I've looked for similar questions/answers, if I've missed the right one I'd be happy to just be directed there.)
I tried to run the following code:
read_csv("../../../../../../Downloads/archive (1)/fish.csv", name_repair = make.names)
The following error message appeared:
Error in read_csv("../../../../../../Downloads/archive (1)/fish.csv", :
unused argument (name_repair = make.names)
I know that the path is valid as the code ran fine without the second argument name_repair. Does anyone have an idea as to why it wouldn't be working? The argument itself is correct as it worked for my professor.
I am reading 2 vcf files in to R. They load fine (I have used 3 different methods to do this (read.vcf, readVCF, and fread) and all are fine) however when I go on to try and do anything with 1 of the vcf files, the msg reads:
Error in unlist_as_integer(x#subscript) : object 'fancy_mseq' not found
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'x' in selecting a method for function 'from': object 'fancy_mseq' not found
Usually I just google error msgs but I can not find anything online about this. Does anyone have any idea what could be causing this error message? Whilst it's hard to be 100% sure because of the vcf format, I can't see anything wrong with the file when I call str(), head() or any other ways of looking at the data.
Thank you!
In my code, I get the error message saying that there is an unexpected "=". I have tried running the line without certain "=", but that only causes other error messages, like "unused arguments". This is supposed to help, along with the rest of the code, with making a plot easier to read.
Here is the line of code:
Tricep.peaks <- data.frame (findpeaks(Tricep_falt, npeaks=8, minpeaksheight=.01, minpeaksdistance=freq=5))
Here is the error message:
Error: unexpected '=' in "Tricep.peaks <- data.frame (findpeaks(Tricep_falt, npeaks=8, minpeaksheight=.01, minpeaksdistance=freq="
Packages running are, signal, zoo, matlab, ggplot2, pracma, purrr, dplyr
As the error message shows, the error is caused by minpeaksdistance=freq=5 which looks like a typo to me.
According to https://www.rdocumentation.org/packages/pracma/versions/1.9.9/topics/findpeaks, the parameter is called minpeakdistance but not minpeaksdistance.
The OP probably meant minpeakdistance=5 or minpeakdistance=freq.
Currently I am trying to understand DEXSeq package. I have a design tsv file and 7 files which contains Counts. Now would like to run the following command
library("DEXSeq");
design=read.table("dexseq_design.tsv", header=TRUE, row.names=1);
ecs = DEXSeqDataSetFromHTSeq(countfiles=c("M0.txt", "M1.txt", "M2.txt", "M3.txt", "M4.txt", "M5.txt", "M6.txt", "M7.txt"), design=design, flattenedfile="genome.chr.gff");
The last command gives and error
Error in class(sampleData) %in% c("data.frame") :
error in evaluating the argument 'x' in selecting a method for function '%in%':
Error: argument "sampleData" is missing, with no default
What does this error means and how to fix it? While loading the package DEXSeq there was a warning
Warning message:
replacing previous import by ‘ggplot2::Position’ when loading ‘DESeq2’