Skip to content

runObservation error #20

@seynard

Description

@seynard

Hi,
The PhD candidate I'm working with, @stacyrousse is trying to use MethylInheritance on RRBS data from 3 consecutive generations but she is facing an error message that we do not seem to be able to correct.
She is loading here 3 methylation files, in methylkit format, putting them into a list but when trying to run runObservation she gets the following error message uniting... Error in unite(filtered.sites, destrand = destrand) : no base were united. try adjusting 'min.per.group'.
We tested the unite function from MethylKit and it works correctly, without error on 1 generation. We also tested to add the option min.per.group to runObservation but it doesn't work.
How can we fix this issue?

Thanks in advance for you help.

Here is the code she wrote

`library(methylKit)
library(data.table)
library(dplyr)
library(methylInheritance)

famfile<-fread("samples_for_methylInheritance_test.tsv", data.table=F)
famfile$line<-factor(famfile$line, levels = c("M", "P"))
levels(famfile$line)<-c(0, 1)
famfile$line<-as.numeric(famfile$line)

list_G0<-famfile%>%filter(pop=='Gen0')%>%select(lib_id, line)%>%mutate(loc=paste0( lib_id, "_intersection.bed"))
list_G1<-famfile%>%filter(pop=='Gen1')%>%select(lib_id, line)%>%mutate(loc=paste0(lib_id, "_intersection.bed"))
list_G2<-famfile%>%filter(pop=='Gen2')%>%select(lib_id, line)%>%mutate(loc=paste0( lib_id, "_intersection.bed"))

gen_0<-methRead(location=as.list(list_G0$loc),
sample.id=as.list(list_G0$lib_id),
assembly="Cjap2.1",
treatment=c(list_G0$line),
context="CpG",
mincov=0)

gen_1<-methRead(location = as.list(list_G1$loc),
sample.id=as.list(list_G1$lib_id),
assembly="Cjap2.1",
treatment=c(list_G1$line),
context="CpG",
mincov=0)

gen_2<-methRead(location = as.list(list_G2$loc),
sample.id=as.list(list_G2$lib_id),
assembly="Cjap2.1",
treatment=c(list_G2$line),
context="CpG",
mincov=0)

final_list <- list(gen_0, gen_1, gen_2)

runObservation(methylKitData = final_list,
type = "sites",
outputDir = runObs1",
nbrCores = 1,
minReads = 10,
minMethDiff = 10,
qvalue = 0.01,
vSeed = 2101)`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions