[E::hts_open_format] Failed to open file "/home/ksullivan/nob-genomes/metzyme/BIN41.bam-sorted.bam.bai" : Exec format error
Traceback (most recent call last):
File "/home/ksullivan/miniconda3/envs/anvio-6.2/bin/anvi-profile", line 93, in <module>
main(args)
File "/home/ksullivan/miniconda3/envs/anvio-6.2/lib/python3.6/site-packages/anvio/terminal.py", line 748, in wrapper
program_method(*args, **kwargs)
File "/home/ksullivan/miniconda3/envs/anvio-6.2/bin/anvi-profile", line 33, in main
profiler.BAMProfiler(args)._run()
File "/home/ksullivan/miniconda3/envs/anvio-6.2/lib/python3.6/site-packages/anvio/profiler.py", line 267, in _run
self.init_profile_from_BAM()
File "/home/ksullivan/miniconda3/envs/anvio-6.2/lib/python3.6/site-packages/anvio/profiler.py", line 443, in init_profile_from_BAM
self.bam = bamops.BAMFileObject(self.input_file_path)
File "pysam/libcalignmentfile.pyx", line 742, in pysam.libcalignmentfile.AlignmentFile.__cinit__
File "pysam/libcalignmentfile.pyx", line 941, in pysam.libcalignmentfile.AlignmentFile._open
OSError: [Errno 8] could not open alignment file `/home/ksullivan/nob-genomes/metzyme/BIN41.bam-sorted.bam.bai`: Exec format error
If anyone has any suggestions on how to fix this and profile my bam files, please let me know!
--
Anvi'o Paper: https://peerj.com/articles/1319/
Project Page: http://merenlab.org/projects/anvio/
Code Repository: https://github.com/meren/anvio
---
You received this message because you are subscribed to the Google Groups "Anvi'o" group.
To unsubscribe from this group and stop receiving emails from it, send an email to anvio+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/anvio/7b520749-770f-48a2-9125-596e0251c466n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/anvio/3f9d42c6-c4d6-43ab-b093-34f82bb7b27bn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/anvio/3f9d42c6-c4d6-43ab-b093-34f82bb7b27bn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/anvio/ec6e6ed0-1c17-4b3a-9f86-aa11e1258e61n%40googlegroups.com.
Config Error: At least one contig name in your BAM file does not match contig names stored in
the contigs database. For instance, this is one contig name found in your BAM
file: 'c_000000000220', and this is another one found in your contigs database:
'c_000000000151'. You may be using an contigs database for profiling that has
nothing to do with the BAM file you are trying to profile, or you may have
failed to fix your contig names in your FASTA file prior to mapping, which is
described here: http://goo.gl/Q9ChpS
I am a bit confused since the contigs appear to be named following the same format and I have double checked to make sure that I am using the right contigs database, so I really don't know why the contig names don't match up. Could this still have something to do with the format of the bam file? I am still very new to anvi'o (and coding in general), so I apologize if this is something that has a simple answer.
I am a bit confused since the contigs appear to be named following the same format and I have double checked to make sure that I am using the right contigs database, so I really don't know why the contig names don't match up. Could this still have something to do with the format of the bam file? I am still very new to anvi'o (and coding in general), so I apologize if this is something that has a simple answer.