Closed tamerbio closed 4 years ago
Dear TA, The doPeakC function is present in the functions.R file. I just checked the latest version present on Github together with our step-by-step tutorial and it should work. Could you indicate the exact error. Are you using the example data?
> setwd("/test/RDS")
> rdsFiles <- c("s1.rds", "s2.rds")
> resPeakC <- doPeakC(rdsFiles = rdsFiles)
Error in doPeakC(rdsFiles = rdsFiles) : could not find function "doPeakC"
> library(peakC)
> pipe4CFunctionsFile <- "functions.R"
> source(pipe4CFunctionsFile)
Error in file(filename, "r", encoding = encoding) :
cannot open the connection
In addition: Warning message:
In file(filename, "r", encoding = encoding) :
cannot open file 'functions.R': No such file or directory
Dear TA, you need to specify the full path to the pipe4CFunctionsFile. If you navigate for instance to the folder /test/RDS first, with setwd("/test/RDS"), and then type pipe4CFunctionsFile <- "functions.R", this will not work, because functions.R file is not located in /test/RDS/, so you need to write pipe4CFunctionsFile <- "<path to pipe4C>/functions.R", e.g. pipe4CFunctionsFile <- "/home/TA/github/pipe4C/functions.R" if you cloned the pipe4C repository in /home/TA/github/pipe4C/. Hope this helps !
On Thu, Jan 9, 2020 at 1:37 PM tamerbio notifications@github.com wrote:
library(peakC) pipe4CFunctionsFile <- "functions.R" source(pipe4CFunctionsFile) Error in file(filename, "r", encoding = encoding) : cannot open the connection In addition: Warning message: In file(filename, "r", encoding = encoding) : cannot open file 'functions.R': No such file or directory
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/deLaatLab/pipe4C/issues/6?email_source=notifications&email_token=ADRGHUMASJTAA6QFMEOPPR3Q44K7VA5CNFSM4KD37GUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEIQFBOA#issuecomment-572543160, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADRGHUPLOGGEIP35CIZ32LDQ44K7VANCNFSM4KD37GUA .
Hi everyone, I am using the following command to call peaks:
resPeakC <- doPeakC(rdsFiles = rdsFiles)
but it seems that there no such function
doPeakC
at all!! any idea? best TA