Closed benbfly closed 4 years ago
I've ran into this once before and ungracefully used another reference genome with only the chromosome containing reads when I was running a pilot experiment. I then forgot about it, but I'll set this is a high priority and look to implement a proper work-around. I'm a little bit swamped at the moment but should get back to development fairly soon.
Edit: Possible fix for this error from Richard
It looks like RegionsCoverageFromWigCalculator.jar is looking for exonTrees that don't exist, could you try changing line 88 of scripts/ChimericReadTool/chimericReadSearch.py from
if (chr not in str(valid)):
to:
if (chr not in str(valid)) or (chr not in str(exonTrees.keys()):
and let me know how that works for you.
Hi Ben,
Can you confirm whether the suggested fix helped this issue? ..or does it need further work?
Thanks Richard
This line seems to fail ungracefully in certain conditions:
LIONS/scripts/ChimericReadTool/chimericReadSearch.py line 109
exon_results1 = exonTrees[str(chr)].findRange([start1,end1])
I am running with a small number of reads, and this line errors because the read is from a chromosome with no exonTree entry. (because the chromosome doesn't exist in "assembly_exons" file)
Error below:
Processing all reads Traceback (most recent call last): File "/LIONS-docker/scripts/ChimericReadTool/chimericReadSearch.py", line 728, in <module> results = processReads(samfile_path, exonTrees, repeatTrees, chimericBedFile) File "/LIONS-docker/scripts/ChimericReadTool/chimericReadSearch.py", line 109, in processReads exon_results1 = exonTrees[str(chr)].findRange([start1,end1]) KeyError: '10' read search complete.