-
Notifications
You must be signed in to change notification settings - Fork 16
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
Null pointer exception for some rare gene-keyword combinations #401
Comments
API call for those 2 genes works but rendering MapView xml throws error; details at: |
oddly, searching UI with keyword: |
Searching for GCK under the terms "type 2 diabetes mellitus" OR "type 2 diabetes" OR "T2DM" will return GCK and GCKR. GCKR is the superset gene in this case (regulatory protein - matching name in string) but it returns results. GCKR contains evidence related to T2DM terms whereas FMR1NB (superset of FMR1) doesn't when searching for "premature ovarian failure". Furthermore, FMR1 contains the Disease concept "Fragile X syndrome", which its counterpart FMR1B does not. Searching for this term with FMR1 produces the same error. The same pattern appears when you test it for other diseases too. Search for something that appears in both though, i.e. "Antineutrophile cytoplasmic antibody-associated vasculitis" and everything works fine. |
exactly, looks |
I've created a temporary work-around for this, but it involved removing the genes lacking evidence from the Gene Table & Map View. I am unable to resolve this while keeping the synchronisation blocks. My modified block is as follows (Edited as per Marcos reply & further testing):
Once obtaining the matching Genes, we'll iterate through the genes in matchedGenes when iterating through Gene ONDEXconcepts (i.e. within block It'd be good if we didn't need to modify this particular behaviour; we need the synchronisation block RE: #352 |
I know little about this, but looking at the code fragment above, I wonder if |
See my above commit in my branch. Instead am now sorting
Issue is caused with Performs the expected behaviour and sorts correctly. |
Thank you @josephhearnshaw for the fix! |
Using test
human
OXL onbabvs73
test VM, searches work fine except when having 2 specific genes in gene list (FOXL2 and FMR1):null pointer exception
.API calls work, e.g.,
http://babvs73.rothamsted.ac.uk:8080/ws/humanknet/genome?keyword=ovarian&list=ESH4 .
The text was updated successfully, but these errors were encountered: