Skip to content

tileMethylCounts Execution halted #337

@yhj-j

Description

@yhj-j

Hi Dr. Akalin,

Here is the code I ran, and I submitted the command via sbatch on a cluster. The error is as follows, and my file leaf_WGBS_merge_loci is 30GB. How should I resolve this issue?

I really appreciate your time and help!

########################
library(methylKit)

file.list = list("/home/xueyan/my_data/workspace/WGBS/6.DMR/CHH/leaf_WGBS_merge_loci.CHH.txt",
"/home/xueyan/my_data/workspace/WGBS/6.DMR/CHH/Root_WGBS_merge_loci.CHH.txt")

myobj=methRead(file.list,
sample.id=list("leaf_WGBS_merge_loci","Root_WGBS_merge_loci"),
assembly="mygenome",
treatment=c(0,1),
context="CHH",
mincov = 10,
dbtype = "tabix",
dbdir = "methylDB"
)

tiles = tileMethylCounts(myobj,win.size=1000,step.size=1000,cov.bases = 10)
mb_region=methylKit::unite(tiles)

dm_region = calculateDiffMeth(mb_region, mc.cores = 10)

write.table(dm_region,
file = 'Root_vs_leaf.dmr',
sep = "\t", quote = F, row.names = F)

#################################
Received list of locations.
creating directory methylDB ...
Reading file.
compressing the file with bgzip...
making tabix index...
Reading file.
compressing the file with bgzip...
making tabix index...

checking wether tabix file already exists:
/data/xueyan/workspace/WGBS/6.DMR/methylDB/leaf_WGBS_merge_loci_tiled.txt.bgz
tabix file is new.
continuing now ...

Error in paste(tabixRes[[1]], collapse = "\n") :
result would exceed 2^31-1 bytes
Calls: tileMethylCounts ... getTabixByChr -> tabix2df -> fread -> paste0 -> paste
Execution halted

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