Hi,
I have been using cn.mops successfully using the following commands:
bamDataRanges <- getReadCountsFromBAM(BAMFiles, refSeqName=readLines("Chr_list.txt"), WL=1000)
results <- calcIntegerCopyNumbers(cn.mops(bamDataRanges))
segm <- as.data.frame(segmentation(results))
CNVs <- as.data.frame(cnvs(results))
CNVRegions <- as.data.frame(cnvr(results))
However, im now running it on additional bam files and i get the following error:
Error in value[[3L]](cond) :
failed to open BamFile: failed to load BAM index
file: A27.realigned.rmdup.bam
Calls: getReadCountsFromBAM ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous>
In addition: Warning message:
In doTryCatch(return(expr), name, parentenv, handler) :
[bam_index_load] fail to load BAM index.
Execution halted
i have checked the header of my bam file and looks fine, would you please help me in trying to fix the error?
Thanks for your time and support,
Laura
Hi again,
i did try various bam files and it seems that the error occurs when using recalibrated bam files (after the BQSR step)...do you reckon there might be a link with the issue? Did you ever experience the same issue?
Thanks a lot for your time,
Laura