Hi there!
I am having a problem executing the qualimap bamqc -bam ... command which seems to fail during a histogram computation and I could not find anything similar online.
```
Fri Dec 09 10:51:33 CET 2022 WARNING Output folder already exists, the results will be saved there
Starting bam qc....
Loading sam header...
Loading locator...
Loading reference...
Number of windows: 400, effective number of windows: 3765
Chunk of reads size: 1000
Number of threads: 1
Initializing regions from /cluster/work/nexus/nilsson/nilsson_dx-pipeline_2020/reference_data/bedfiles/IAA20691_182_liftoverToHG38.qualimap.bed.....
Found 322 regions
Filling region references...
^[[A^[[A^[[AProcessed 376 out of 3765 windows...
Processed 752 out of 3765 windows...
Processed 1128 out of 3765 windows...
Processed 1504 out of 3765 windows...
Processed 1880 out of 3765 windows...
Processed 2256 out of 3765 windows...
Processed 2632 out of 3765 windows...
Processed 3008 out of 3765 windows...
Processed 3384 out of 3765 windows...
Processed 3760 out of 3765 windows...
Total processed windows:3765
Number of reads: 12413035
Number of valid reads: 12419993
Number of correct strand reads:0
Inside of regions...
Num mapped reads: 12412523
Num mapped first of pair: 6209389
Num mapped second of pair: 6203134
Num singletons: 617
Ouside of regions...
Num mapped reads: 0
Num mapped first of pair: 0
Num mapped second of pair: 0
Num singletons: 0
Time taken to analyze reads: 205
Computing descriptors...
numberOfMappedBases: 1808699994
referenceSize:
3217346917numberOfSequencedBases: 1808569302
numberOfAs: 527539626
Computing per chromosome statistics...
Computing histograms...
WARNING: number of mapped reads outside of regions equals zero
Overall analysis time: 207
end of bam qc
Computing report...
Failed to run bamqc
java.lang.NullPointerException: Cannot invoke "org.bioinfo.ngs.qc.qualimap.beans.XYVector.getXVector()" because "this.data" is null
at org.bioinfo.ngs.qc.qualimap.beans.BamQCHistogramChart.render(BamQCHistogramChart.java:143)
at org.bioinfo.ngs.qc.qualimap.beans.BamQCRegionReporter.computeChartsBuffers(BamQCRegionReporter.java:712)
at org.bioinfo.ngs.qc.qualimap.main.BamQcTool.execute(BamQcTool.java:277)
at org.bioinfo.ngs.qc.qualimap.main.NgsSmartTool.run(NgsSmartTool.java:190)
at org.bioinfo.ngs.qc.qualimap.main.NgsSmartMain.main(NgsSmartMain.java:113)
```
I am not sure what this problem is or how to "bypass" it.
The version I am running via the command line is QualiMap v.2.2.2-dev
Built on 2019-11-11 14:05
Any suggestion as to what's happening and how to fix it is very appreciated!