Source code for flotilla.data_model.quality_control

from .base import BaseData


MIN_READS = 5e5


[docs]class MappingStatsData(BaseData): """Constructor for mapping statistics data from STAR Attributes ---------- Methods ------- """ def __init__(self, data, number_mapped_col, min_reads=MIN_READS, predictor_config_manager=None): """Constructor for MappingStatsData Parameters ---------- data, sample_descriptors Returns ------- Raises ------ """ super(MappingStatsData, self).__init__( data, predictor_config_manager=predictor_config_manager) self.number_mapped_col = number_mapped_col self.min_reads = min_reads @property
[docs] def too_few_mapped(self): return self.number_mapped.index[self.number_mapped < self.min_reads]
@property
[docs] def number_mapped(self): return self.data[self.number_mapped_col]
Olga B. Botvinnik is funded by the NDSEG fellowship and is a NumFOCUS John Hunter Technology Fellow.
Michael T. Lovci was partially funded by a fellowship from Genentech.
Partially funded by NIH grants NS075449 and HG004659 and CIRM grants RB4-06045 and TR3-05676 to Gene Yeo.