BAI Index file issue

750 views
Skip to first unread message

Salavati, Mazdak

unread,
Jan 12, 2016, 10:45:18 AM1/12/16
to deep...@googlegroups.com

Dear Developer,

I’m trying to use your bamCorrelate package (deepTools) to compare bamfiles and although I have indexed all my files using Samtools (index) I’m still facing this error :

 

mazdax@mazdax-biolinux8[Cow] bamCorrelate bins --bamfiles ./68_RO_RGID_undp.bam 134_RO_RGID_undp.bam 838_RO_RGID_undp.bam --outFileName ./polyA_vs_ribominus.png

 

/usr/local/lib/python2.7/dist-packages/deeptools/config/__init__.py:60: UserWarning: Module pysam was already imported from /usr/local/lib/python2.7/dist-packages/pysam-0.8.4pre-py2.7-linux-x86_64.egg/pysam/__init__.pyc, but /usr/local/lib/python2.7/dist-packages/RSeQC-2.6.3-py2.7-linux-x86_64.egg is being added to sys.path

  import pkg_resources

 

./68_RO_RGID_undp.bam does not appear to have an index. You MUST index the file first!

 

I place the .bam and .bam.bai files in the same folder. I would appreciate your help on this issue.

 

Kind regards,

Mazdak

------------------------------------------

Dr. Mazdak Salavati   D.V.M , Ph.D

Postdoctoral Researcher

Production and Population Health

 

105 TARC

Royal Veterinary College

Hawkshead Lane

North Mymms, Hatfield

Herts. AL9 7TA

T: +44 (0)1707 66 6811

Email : msal...@rvc.ac.uk

signature-1

 

RVC Logo - link to RVC Website    Twitter icon - link to RVC (Official) Twitter    Facebook icon - link to RVC (Official) Facebook    YouTube icon - link to RVC YouTube    Pinterest icon - link to RVC Pinterest    Instagram icon - link to RVC Instagram

This message, together with any attachments, is intended for the stated addressee(s) only and may contain privileged or confidential information. Any views or opinions presented are solely those of the author and do not necessarily represent those of the Royal Veterinary College (RVC). If you are not the intended recipient, please notify the sender and be advised that you have received this message in error and that any use, dissemination, forwarding, printing, or copying is strictly prohibited. Unless stated expressly in this email, this email does not create, form part of, or vary any contractual or unilateral obligation. Email communication cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, amended, lost, destroyed, incomplete or contain viruses. Therefore, we do not accept liability for any such matters or their consequences. Communication with us by email will be taken as acceptance of the risks inherent in doing so.

Fidel Ramirez

unread,
Jan 12, 2016, 11:30:08 AM1/12/16
to Salavati, Mazdak, deep...@googlegroups.com
Hi,

There must be a problem with your files. Did you check that the .bai files are not empty or not readable? What is the output of ls -l | grep bam ?

-fidel

--
You received this message because you are subscribed to the Google Groups "deepTools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to deeptools+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Fidel Ramirez

ktyss...@gmail.com

unread,
Jul 9, 2016, 3:19:56 PM7/9/16
to deepTools, msal...@rvc.ac.uk
> This message, together with any attachments, is intended for the stated addressee(s) only and may contain privileged or confidential information. Any views or opinions presented are solely those of the author and do not necessarily represent those of the Royal
> Veterinary College (RVC). If you are not the intended recipient, please notify the sender and be advised that you have received this message in error and that any use, dissemination, forwarding, printing, or copying is strictly prohibited. Unless stated expressly
> in this email, this email does not create, form part of, or vary any contractual or unilateral obligation. Email communication cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, amended, lost, destroyed, incomplete
> or contain viruses. Therefore, we do not accept liability for any such matters or their consequences. Communication with us by email will be taken as acceptance of the risks inherent in doing so.
>
>
>
>
>
>
> --
>
> You received this message because you are subscribed to the Google Groups "deepTools" group.
>
> To unsubscribe from this group and stop receiving emails from it, send an email to deeptools+...@googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
>
>
>
>
>
> --
>
>
> Fidel Ramirez

Hello! I am having this same issue. My .bam and .bam.bai files are in the same folder, and I think that the files are okay because I have loaded them into the genome browser and they work there. I have tried re-making and re-indexing the files, but nothing has worked. Do you have any ideas what could be wrong?

Thanks!

Fidel Ramirez

unread,
Jul 11, 2016, 9:49:16 AM7/11/16
to ktyss...@gmail.com, deepTools, Salavati, Mazdak
Honestly, I don't know what could be wrong. Maybe you can simply try to open a python shell and type:

>>> import pysam
>>> pysam.Samfile("(name of bam file")

And see what sort of error message you get.

Best,

Fidel
Reply all
Reply to author
Forward
0 new messages