Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException problem #813

Closed
L1feone opened this issue Jun 1, 2020 · 18 comments
Closed

NullPointerException problem #813

L1feone opened this issue Jun 1, 2020 · 18 comments

Comments

@L1feone
Copy link

L1feone commented Jun 1, 2020

Hi!

I mapped paired end library to a genome. Now I am trying to visualise it via IGV, but I am always getting this message when trying to jump to a certain chromosome: "Error encountered querying alignments: java.lang.NullPointerException". Reference genome has 19 chromosomes and a lot of unplaced genomic scaffolds. Jumping to these scaffolds does not cause an error. Only when I am picking a chromosome. Bam file is sorted and indexed, Reference file headers and bam headers are same and in the same order.

Tablet and IGB don't have these problems, but I want to use IGV.

I found a few old topics in the internet with the same problem, but didn't find any solution.

Help please.

Thank you.

@jrobinso
Copy link
Contributor

jrobinso commented Jun 1, 2020

Hi, you posted in igv.js, is this about the javascript component or the desktop application?

@L1feone
Copy link
Author

L1feone commented Jun 1, 2020

Hi, it is about desktop application

@jrobinso
Copy link
Contributor

jrobinso commented Jun 1, 2020

This is not the correct repository, I will move it.

I will need to know the version of IGV you are using, and also the contents of the "igv.log" file, it is in the "igv" folder in your home directory. If you are able to share the BAM file that would be helpful.

@jrobinso jrobinso transferred this issue from igvteam/igv.js Jun 1, 2020
@L1feone
Copy link
Author

L1feone commented Jun 1, 2020

IGV version is 2.8.2
BAM file is 32mb so I uploaded it do google disc:

https://drive.google.com/file/d/1ff2mEB1oPrnSGelQEvSbWCcw9KsPBisc/view?usp=sharing

@jrobinso
Copy link
Contributor

jrobinso commented Jun 1, 2020

What locus (genome location) do you encounter this error? Is the bam file indexed?

@L1feone
Copy link
Author

L1feone commented Jun 1, 2020

BAM file indexed. Error occures with every chromosome wich name starts with NC_######

@jrobinso
Copy link
Contributor

jrobinso commented Jun 1, 2020

I need a fasta file to load this. Is the fasta reference available online?

@jrobinso
Copy link
Contributor

jrobinso commented Jun 1, 2020

OK I downloaded the fasta for one of the sequences, NC_029651.1, and was able to load the file with no problem. I went to locus NC_029651.1:12,142,889-12,146,819 (see screenshot). To look into this further I need exact steps from you to reproduce, including a locus that reproduces the problem. Also, as I requested earlier, the contents of igv.log would be helpful. Its in an "igv" folder in your home directory. When you've supplied these things I will look further. Thanks for your report.
Screen Shot 2020-06-01 at 1 32 22 PM

@L1feone
Copy link
Author

L1feone commented Jun 1, 2020

igv.log

@L1feone
Copy link
Author

L1feone commented Jun 1, 2020

I just tried IGV 2.8.0 and everything worked out well.

@jrobinso
Copy link
Contributor

jrobinso commented Jun 1, 2020

@L1feone could you answer my question re an exact locus to reproduce the problem?

@jrobinso
Copy link
Contributor

jrobinso commented Jun 1, 2020

And another question, what is you "visibility window" for alignments set to?

@jrobinso
Copy link
Contributor

jrobinso commented Jun 1, 2020

OK I think I see the issue from your igv.log file. This bug will occur in bam files without base qualities if a large visibility window is set. A fix was pushed for it on April 7 but it is not released. If 2.8.0 is working you can continue using that, or you can use the snapshot build from here: https://software.broadinstitute.org/software/igv/download_snapshot until the next release, sometime in June.

@L1feone
Copy link
Author

L1feone commented Jun 1, 2020

Ok, thank you!
I will try the snapshot build.

By the way, an error occured with standart visibility window too. Should i still describe the specific steps which led to an error?

@jrobinso
Copy link
Contributor

jrobinso commented Jun 1, 2020

@L1feone Yes if you don't mind, and I will test your steps to reproduce. Its possible there is a separate bug.

Warning about the snapshot build, it is by its nature not stable, if you don't need features added since 2.8.0 I would stick with that version.

@L1feone
Copy link
Author

L1feone commented Jun 2, 2020

Ok, 2.8.0 suits me well)

My steps are:
After opening IGV and choosing the genome I am loading my BAM file. Error occures when I choos a NC_###### chromosome. Choosing NW_####### doesn't couse any errors and I can see my aligned sequences. Error occures both on linux and windows.

@jrobinso
Copy link
Contributor

jrobinso commented Jun 4, 2020

This should be fixed with release 2.8.3

@jrobinso jrobinso closed this as completed Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants