-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
IndexError: list index out of range #25
Comments
macs2 callpeak -t chip1.bam chip2.bam chip3.bam -c control1.bam control2.bam … -T |
No i haven't merged any files. I just created a new one using "samtools view -q 1 -b chip1.bam" that gives you a bam file with only the unique mapped reads |
Do you mind sending me a sample file? It should be small but can reproduce the error. I just tested 'samtools view -q 1 -b x.bam > y.bam' then run macs2 on y.bam and haven't seen any error. I haven't specified format actually, since macs2 can detect BAM automatically. See the attached message. The error you posted happened at this code:
It means that certain chromosome name is not found in the BAM header. Did you change the header of BAM manually? Tao $samtools view -q 1 -b UW_K562_H3K4me3.bam > test.bam Command line: callpeak -t test.bam -n testARGUMENTS LIST:name = testformat = AUTOChIP-seq file = ['test.bam']control file = Noneeffective genome size = 2.70e+09band width = 300model fold = [5, 50]qvalue cutoff = 5.00e-02Larger dataset will be scaled towards smaller dataset.Range for calculating regional lambda is: 10000 bpsBroad region calling is offINFO @ Thu, 17 Oct 2013 10:58:43: #1 read tag files... On Oct 17, 2013, at 10:38 AM, George notifications@github.com wrote:
|
Old issue. Closed for now. If the issue still exists, please reopen. |
INFO @ Wed, 16 Oct 2013 14:27:12: #1 read tag files...
INFO @ Wed, 16 Oct 2013 14:27:12: #1 read treatment tags...
INFO @ Wed, 16 Oct 2013 14:27:17: 1000000
INFO @ Wed, 16 Oct 2013 14:27:22: 2000000
INFO @ Wed, 16 Oct 2013 14:27:27: 3000000
INFO @ Wed, 16 Oct 2013 14:27:32: 4000000
INFO @ Wed, 16 Oct 2013 14:27:37: 5000000
INFO @ Wed, 16 Oct 2013 14:27:42: 6000000
INFO @ Wed, 16 Oct 2013 14:27:47: 7000000
INFO @ Wed, 16 Oct 2013 14:27:52: 8000000
INFO @ Wed, 16 Oct 2013 14:27:57: 9000000
INFO @ Wed, 16 Oct 2013 14:28:03: 10000000
INFO @ Wed, 16 Oct 2013 14:28:08: 11000000
INFO @ Wed, 16 Oct 2013 14:28:13: 12000000
INFO @ Wed, 16 Oct 2013 14:28:18: 13000000
INFO @ Wed, 16 Oct 2013 14:28:23: 14000000
INFO @ Wed, 16 Oct 2013 14:28:28: 15000000
INFO @ Wed, 16 Oct 2013 14:28:33: 16000000
INFO @ Wed, 16 Oct 2013 14:28:37: 17000000
INFO @ Wed, 16 Oct 2013 14:28:42: 18000000
INFO @ Wed, 16 Oct 2013 14:28:47: 19000000
INFO @ Wed, 16 Oct 2013 14:28:52: 20000000
INFO @ Wed, 16 Oct 2013 14:28:57: 21000000
Traceback (most recent call last):
File "/usr/bin/macs2", line 514, in
main()
File "/usr/bin/macs2", line 45, in main
run( args )
File "/usr/lib64/python2.7/site-packages/MACS2/callpeak.py", line 69, in run
else: (treat, control) = load_tag_files_options (options)
File "/usr/lib64/python2.7/site-packages/MACS2/callpeak.py", line 379, in load_tag_files_options
treat = tp.build_fwtrack()
File "cParser.pyx", line 824, in MACS2.IO.cParser.BAMParser.build_fwtrack (MACS2/IO/cParser.c:10311)
File "cParser.pyx", line 828, in MACS2.IO.cParser.BAMParser.build_fwtrack (MACS2/IO/cParser.c:10262)
File "cParser.pyx", line 898, in MACS2.IO.cParser.BAMParser.__build_fwtrack_wo_pysam (MACS2/IO/cParser.c:11404)
IndexError: list index out of range
The text was updated successfully, but these errors were encountered: