Open GoogleCodeExporter opened 9 years ago
I fixed and solved adding mm10 to my ngsplot database.
the problem was selecting environment variables to my ~/.profile.
However, the problem still exists when I try to perfrom ngsplot using ChIP-seq
data
from ENCODE (using fastq-dump and bowtie2, I changed to bam file. and this was
valid, beacuse I used this bam file to make UCSC file and successfully uploaded
to
Genome Browser). I still get the below comments:
sungwook@MALCOM:~/ngs/ngsplot$ ngs.plot.r -G mm10 -R tss -C ~/Downloads/H3K27ac/SRR566893.bam -O test.tss
Configuring variables...
Using database:
/home/sungwook/ngs/ngsplot/database/mm10/mm10.ensembl.genebody.protein_coding.RD
ata
Done
Loading R libraries.....Done
Analyze bam files and calculate coverageError in
FUN("/home/sungwook/Downloads/H3K27ac/SRR566893.bam"[[1L]], ...) :
failed to build index
file: /home/sungwook/Downloads/H3K27ac/SRR566893.bam
Calls: headerIndexBam ... indexBam -> sapply -> sapply -> lapply -> FUN -> .Call
In addition: Warning messages:
1: In FUN("/home/sungwook/Downloads/H3K27ac/SRR566893.bam"[[1L]], ...) :
[bam_index_core] the alignment is not sorted (SRR566893.2): 20-th chr > 13-th chr
2: In FUN("/home/sungwook/Downloads/H3K27ac/SRR566893.bam"[[1L]], ...) :
[bam_index_build2] fail to index the BAM file.
Execution halted
Is the bam file needs to be sorted?
Original comment by risky...@gmail.com
on 18 Sep 2014 at 1:53
Problem solved!
using samtools sort, I sorted the bam file and successfully run NGSPLOT!
Original comment by risky...@gmail.com
on 18 Sep 2014 at 2:16
Original issue reported on code.google.com by
risky...@gmail.com
on 17 Sep 2014 at 3:50