Entering edit mode
                    ch8316f5eyu
        
    
        •
    
    0
        @ch8316f5eyu-13405
        Last seen 8.3 years ago
        
    I cannot solve this error by myself. This is my code:
library(methylKit)
processBismarkAln(location = as.list(paste0(SRP010119_PATH, "Bismark/", SRP010119$Run, "_bismark_bt2.bamsort.bam")), 
                                             sample.id = as.list(SRP010119$Name), assembly = "mm10", save.folder =paste0(SRP010119_PATH, "methylKit") , save.context = c("CpG","CHG","CHH"), 
                                             read.context = "CpG", mincov = 5, treatment = SRP010119$Class)
myobjDB=methRead(as.list(paste0("/disk3/Data/RRBS/SRP010119_embryonic_development/methylKit/", SRP010119$Name, "_CpG.txt"))[1:3],
                                 sample.id=as.list(SRP010119$Name)[1:3],
                                 assembly="mm10",
                                 treatment=SRP010119$Class[1:3],
                                 context="CpG",
                                 dbtype = "tabix"
)
myobjDB=filterByCoverage(myobjDB,lo.count=5,lo.perc=NULL,
                                                                hi.count=NULL,hi.perc=99.9)
meth=unite(myobjDB, destrand=T, chunk.size = 1e7, mc.cores = 10)
The error I got is :
compressing the file with bgzip... making tabix index... compressing the file with bgzip... making tabix index... compressing the file with bgzip... making tabix index... [ti_index_core] the file out of order at line 176099 Error in value[[3L]](cond) : internal: samtools invoked 'exit(1)'; see warnings() and restart R file: /home/zwy/methylDB 2017-07-06 O1P/oocytes_3_filtered_destrand.txt.bgz
Anyone know what is wrong?

Hi,
I was wondering if ever overcame this error. It would be a lot of help.
Thanks,