コード例 #1
0
    def apply_barcode_correction(self, ra, barcode_files):
        """
        Apply barcode correction and return error rate

        :param ra: Read array
        :param barcode_files: Valid barcodes files
        :returns: Error rate table
        """
        error_rate = barcode_correction.in_drop(ra, self, barcode_files, max_ed=2)
        return error_rate
コード例 #2
0
    def apply_barcode_correction(self, ra, barcode_files):
        """
        Apply barcode correction and return error rate

        :param ra: Read array
        :param barcode_files: Valid barcodes files
        :returns: Error rate table and pre-/post-corrected barcodes

        """
        error_rate, df_correction = barcode_correction.in_drop(ra,
                                                               self,
                                                               barcode_files,
                                                               max_ed=1)
        return error_rate, df_correction