methread location error

0 views
Skip to first unread message

Arpit Gaur

unread,
Jan 15, 2026, 9:32:41 AM (yesterday) Jan 15
to methylkit_discussion
Hi, 

when trying to load files read using file.path() I repeatedly get an error message- 

Received single location.
Error in if (!file.exists(location)) { : the condition has length > 1

I am using this function as mentioned in the user's manual.

My codes are- 

myCHG=list("BF1.CHG.txt.gz","BGH2.CHG.txt.gz")
paths = file.path(getwd(), myCHG)

myobj = methRead(location = paths,
             sample.id = c("BF1", "BGH2"),
             pipeline = "bismarkCytosineReport",
             context= "CHG",
             assembly = "IWGSC RefSeq 2.1",
             treatment = c(0,1), header = FALSE)


Can someone please help me to understand where I am making mistake(s)?

Thank you for your help in advance.

Regards
Arpit
Reply all
Reply to author
Forward
0 new messages