checkQC.handlers.cluster_pf_handler module

class checkQC.handlers.cluster_pf_handler.ClusterPFHandler(*args, **kwargs)[source]

Bases: checkQC.handlers.qc_handler.QCHandler

This handler will check that the number of clusters passing filter on a lane passes the set criteria.

check_qc()[source]

The check_qc method provides the core behaviour of the QCHandler. It should check the values provided to it and yield instances of QCHandlerReport (or continue, if there was nothing to report)

Returns:An instance of QCHandlerReport
collect(signal)[source]

The implementing subclass should provide this method. It is up to instance receiving the data to decide how to handle it. Below is an example of how to handle a tuple with a key-value pair.

class MySubscriber(Subscriber):

    def __init__(self):
        self.results = []

    def collect(self, signal):
        key, value = signal
        if key == "my_key":
            self.results.append(value)
Returns:None
parser()[source]

The ClusterPFHandler will gather its data from the Stats.json file

Returns:a StatsJsonParser callable