@include "_basic_sc_rna_counter_stages.mro"

call ATTACH_BCS_AND_UMIS(
    genome_inputs = [
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk00-ud74eb2736e/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk01-ud74eb2736f/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk02-ud74eb2736f/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk03-ud74eb2736f/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk04-ud74eb2736f/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk05-ud74eb2736f/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk06-ud74eb2736f/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk07-ud74eb2736f/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk08-ud74eb2736f/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk09-ud74eb2736f/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk10-ud74eb2736f/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk11-ud74eb2736f/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk12-ud74eb2736f/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk13-ud74eb2736f/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk14-ud74eb27370/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk15-ud74eb27370/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk16-ud74eb27370/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk17-ud74eb27370/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk18-ud74eb27370/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk19-ud74eb27370/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk20-ud74eb27370/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk21-ud74eb27370/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk22-ud74eb27370/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk23-ud74eb27370/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk24-ud74eb27370/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk25-ud74eb27370/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk26-ud74eb27370/files/genome_output.bam",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/ALIGN_READS/fork0/chnk27-ud74eb27370/files/genome_output.bam"
    ],
    tags = [
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk00-ud74eb27312/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk01-ud74eb27312/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk02-ud74eb27313/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk03-ud74eb27313/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk04-ud74eb27313/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk05-ud74eb27313/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk06-ud74eb27313/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk07-ud74eb27313/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk08-ud74eb27313/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk09-ud74eb27313/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk10-ud74eb27313/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk11-ud74eb27313/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk12-ud74eb27313/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk13-ud74eb27313/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk14-ud74eb27313/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk15-ud74eb27313/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk16-ud74eb27313/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk17-ud74eb27313/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk18-ud74eb27314/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk19-ud74eb27314/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk20-ud74eb27314/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk21-ud74eb27314/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk22-ud74eb27314/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk23-ud74eb27314/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk24-ud74eb27314/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk25-ud74eb27314/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk26-ud74eb27314/files/tags.fastq.lz4",
        "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/chnk27-ud74eb27314/files/tags.fastq.lz4"
    ],
    reference_path = "/restricted/projectnb/waxmanlab/kkarri/tabula_muris/drop-seq/mm10_ref/updated-usethis-mm10plus-pcg-ercc-lnc-nodups",
    feature_reference = null,
    gem_groups = [
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1
    ],
    library_types = [
        "Gene Expression",
        "Gene Expression",
        "Gene Expression",
        "Gene Expression",
        "Gene Expression",
        "Gene Expression",
        "Gene Expression",
        "Gene Expression",
        "Gene Expression",
        "Gene Expression",
        "Gene Expression",
        "Gene Expression",
        "Gene Expression",
        "Gene Expression",
        "Gene Expression",
        "Gene Expression",
        "Gene Expression",
        "Gene Expression",
        "Gene Expression",
        "Gene Expression",
        "Gene Expression",
        "Gene Expression",
        "Gene Expression",
        "Gene Expression",
        "Gene Expression",
        "Gene Expression",
        "Gene Expression",
        "Gene Expression"
    ],
    library_ids = [
        "0",
        "0",
        "0",
        "0",
        "0",
        "0",
        "0",
        "0",
        "0",
        "0",
        "0",
        "0",
        "0",
        "0",
        "0",
        "0",
        "0",
        "0",
        "0",
        "0",
        "0",
        "0",
        "0",
        "0",
        "0",
        "0",
        "0",
        "0"
    ],
    chemistry_def = {
        "si_read_offset": 0,
        "strandedness": "+",
        "umi_read_offset": 16,
        "barcode_read_type": "R1",
        "umi_read_type": "R1",
        "barcode_read_length": 16,
        "rna_read_type": "R2",
        "barcode_whitelist": "737K-august-2016",
        "si_read_type": "I1",
        "rna_read_length": null,
        "description": "Single Cell 3' v2",
        "rna_read_offset": 0,
        "barcode_read_offset": 0,
        "rna_read2_type": null,
        "endedness": "three_prime",
        "name": "SC3Pv2",
        "umi_read_length": 10,
        "si_read_length": null,
        "read_type_to_bcl2fastq_filename": {
            "I1": "I1",
            "I2": null,
            "R1": "R1",
            "R2": "R2"
        },
        "rna_read2_length": null,
        "rna_read2_offset": 0,
        "read_type_to_bcl_processor_filename": {
            "I1": "I1",
            "I2": null,
            "R1": "RA",
            "R2": null
        }
    },
    annotation_params = null,
    barcode_whitelist = "737K-august-2016",
    barcode_counts = "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/join-ud74eb2730e/files/barcode_counts.json",
    feature_counts = "/net/waxman-server/mnt/data/waxmanlabvm_home/kkarri/NASH/data/NASH1/Nash1/SC_RNA_COUNTER_CS/SC_RNA_COUNTER/_BASIC_SC_RNA_COUNTER/SUMMARIZE_READ_REPORTS/fork0/join-ud74eb2730e/files/feature_counts.json",
    barcode_confidence_threshold = 0.975,
    umi_min_qual_threshold = 10,
    bam_comments = [
        "10x_bam_to_fastq:I1(BC:QT)",
        "10x_bam_to_fastq:R1(CR:CY,UR:UY)",
        "10x_bam_to_fastq:R2(SEQ:QUAL)"
    ],
    rescue_multimappers = true,
    correct_barcodes = true,
    skip_metrics = false,
    skip_translate = {},
    is_antibody_only = false,
    library_info = [
        {
            "gem_group": 1,
            "library_id": "0",
            "library_type": "Gene Expression"
        }
    ],
)