Closed jpfeuffer closed 2 years ago
there should be better and shorter ways to bin data than doing n if cases: https://github.com/bigbio/pmultiqc/blob/main/pmultiqc/modules/quantms/quantms.py#L1088-L1104
n
In this case even very simple: Why not use integer keys?
charge_state = charge_state if charge_state < len(self.charge_state_distribution['Whole Experiment']) else len(self.charge_state_distribution['Whole Experiment']) self.charge_state_distribution['Whole Experiment'][charge_state] += 1
But even for the ranges (e.g. 100-200) you can do a Histogram class or something like that.
@daichengxin I was talking with @WangHong007, and he will be happy to help with small issues of pmultiqc.
there should be better and shorter ways to bin data than doing
n
if cases: https://github.com/bigbio/pmultiqc/blob/main/pmultiqc/modules/quantms/quantms.py#L1088-L1104In this case even very simple: Why not use integer keys?
But even for the ranges (e.g. 100-200) you can do a Histogram class or something like that.