@include "rna/_cr_lib_stages.mro"

call BARCODE_CORRECTION(
    gem_well               = 1,
    invalid_uncorrected    = ["/oak/stanford/groups/akundaje/marinovg/various/2025-02-27-Tingting-scRNA-seq/cellranger-Aiptasia-sym_reprep1/SC_RNA_COUNTER_CS/SC_MULTI_CORE/MULTI_GEM_WELL_PROCESSOR/COUNT_GEM_WELL_PROCESSOR/_BASIC_SC_RNA_COUNTER/_MATRIX_COMPUTER/MAKE_SHARD/fork0/chnk0-u29f8cf6748/files/invalid.shard"],
    chemistry_defs         = {
        "Gene Expression": {
            barcode: [
                {
                    kind:      "gel_bead",
                    length:    16,
                    offset:    0,
                    read_type: "R1",
                    whitelist: {
                        name:                       "3M-february-2018_TRU",
                        part:                       null,
                        slide:                      null,
                        translation:                false,
                        translation_whitelist_path: null,
                    },
                },
            ],
            barcode_extraction: null,
            description:        "Single Cell 3' v3 (polyA)",
            endedness:          "three_prime",
            name:               "SC3Pv3-polyA",
            rna: {
                length:     null,
                min_length: null,
                offset:     0,
                read_type:  "R2",
            },
            rna2:               null,
            strandedness:       "+",
            umi: [
                {
                    length:     12,
                    min_length: 10,
                    offset:     16,
                    read_type:  "R1",
                    whitelist:  null,
                },
            ],
        },
    },
    barcode_segment_counts = "/oak/stanford/groups/akundaje/marinovg/various/2025-02-27-Tingting-scRNA-seq/cellranger-Aiptasia-sym_reprep1/SC_RNA_COUNTER_CS/SC_MULTI_CORE/MULTI_GEM_WELL_PROCESSOR/COUNT_GEM_WELL_PROCESSOR/_BASIC_SC_RNA_COUNTER/_MATRIX_COMPUTER/MAKE_SHARD/fork0/join-u29f8cf6748/files/barcode_segment_counts.bsc.bincode",
    barcode_counts         = "/oak/stanford/groups/akundaje/marinovg/various/2025-02-27-Tingting-scRNA-seq/cellranger-Aiptasia-sym_reprep1/SC_RNA_COUNTER_CS/SC_MULTI_CORE/MULTI_GEM_WELL_PROCESSOR/COUNT_GEM_WELL_PROCESSOR/_BASIC_SC_RNA_COUNTER/_MATRIX_COMPUTER/MAKE_SHARD/fork0/join-u29f8cf6748/files/barcode_counts.bcc.bincode",
    valid_read_metrics     = "/oak/stanford/groups/akundaje/marinovg/various/2025-02-27-Tingting-scRNA-seq/cellranger-Aiptasia-sym_reprep1/SC_RNA_COUNTER_CS/SC_MULTI_CORE/MULTI_GEM_WELL_PROCESSOR/COUNT_GEM_WELL_PROCESSOR/_BASIC_SC_RNA_COUNTER/_MATRIX_COMPUTER/MAKE_SHARD/fork0/join-u29f8cf6748/files/bc_correct_summary.bcm.bincode",
    correction_map         = null,
    min_reads_to_report_bc = 1000,
    barcodes_under_tissue  = null,
)
