I tried to use ReadInBams.R command in Linux to generate the first file. However, I got an error as follows:
Error in GenomicRanges::seqnames(target) : object 'target' not found
Calls: getBamCounts ... countBamInGRanges.exomeDepth -> paste0 ->
In addition: Warning message:
In countBamInGRanges.exomeDepth(bam.file = bam, index = index, granges = target, :
Apparently the BAM file uses the convention chr1 instead of 1 for chromosome names, but your target sequence does not. Therefore, adding the chr prefix to the target intervals
Execution halted
I am unable to find a way to remove "chr" convention from BAM files. Can you help please?
Hello,
I tried to use ReadInBams.R command in Linux to generate the first file. However, I got an error as follows:
Error in GenomicRanges::seqnames(target) : object 'target' not found Calls: getBamCounts ... countBamInGRanges.exomeDepth -> paste0 ->
In addition: Warning message:
In countBamInGRanges.exomeDepth(bam.file = bam, index = index, granges = target, :
Apparently the BAM file uses the convention chr1 instead of 1 for chromosome names, but your target sequence does not. Therefore, adding the chr prefix to the target intervals
Execution halted
I am unable to find a way to remove "chr" convention from BAM files. Can you help please?
Thanks!