[
    {
        "id": "bwa_mem2",
        "name": "BWA MEM2 (Burrows-Wheeler Alignment Tool)",
        "article": "10.1109\/IPDPS.2019.00041",
        "website": "https:\/\/github.com\/bwa-mem2\/bwa-mem2",
        "git": "https:\/\/github.com\/bwa-mem2\/bwa-mem2",
        "description": "Bwa mem2 is the next version of the bwa-mem algorithm in bwa. It produces alignment identical to bwa and is ~80% faster (WIP; not recommended for production uses at the moment)",
        "version": "2.2.1",
        "documentation": "http:\/\/bio-bwa-mem2.sourceforge.net\/bwa-mem2.shtml",
        "multiqc": "custom",
        "commands": [
            {
                "name": "bwa_mem2_PE",
                "cname": "Bwa mem2 PE",
                "command": "bwa-mem2 mem",
                "category": "mapping",
                "output_dir": "bwa_mem2\/mem\/PE",
                "inputs": [
                    {
                        "name": "read",
                        "type": "reads"
                    },
                    {
                        "name": "read2",
                        "type": "reads"
                    },
                    {
                        "name": "index",
                        "type": "bwa_mem_2_index",
                        "file": "index",
                        "description": "Index files for bwa_mem2 alignment"
                    }
                ],
                "outputs": [
                    {
                        "name": "bam",
                        "type": "bams",
                        "file": "{sample}.bam",
                        "description": "Alignment files"
                    }
                ],
                "options": [
                    {
                        "name": "bwa_mem2_threads",
                        "prefix": "-t",
                        "type": "numeric",
                        "value": 4,
                        "min": 1,
                        "max": "NA",
                        "step": 1,
                        "label": "Number of threads to use"
                    },
                    {
                        "name": "bwa_mem2_quality0_multimapping",
                        "prefix": null,
                        "type": "checkbox",
                        "value": true,
                        "label": "Put 0 as mapping quality for multimapping reads"
                    }
                ]
            },
            {
                "name": "bwa_mem2_SE",
                "cname": "Bwa mem2 SE",
                "command": "bwa-mem2 mem",
                "category": "mapping",
                "output_dir": "bwa_mem2\/mem\/SE",
                "inputs": [
                    {
                        "name": "read",
                        "type": "reads"
                    },
                    {
                        "name": "index",
                        "type": "bwa_mem_2_index",
                        "file": "index",
                        "description": "Index files for bwa_mem2 alignment"
                    }
                ],
                "outputs": [
                    {
                        "name": "bam",
                        "type": "bams",
                        "file": "{sample}.bam",
                        "description": "Alignment files"
                    }
                ],
                "options": [
                    {
                        "name": "bwa_mem2_threads",
                        "prefix": "-t",
                        "type": "numeric",
                        "value": 4,
                        "min": 1,
                        "max": "NA",
                        "step": 1,
                        "label": "Number of threads to use"
                    },
                    {
                        "name": "bwa_mem2_quality0_multimapping",
                        "prefix": null,
                        "type": "checkbox",
                        "value": true,
                        "label": "Put 0 as mapping quality for multimapping reads"
                    }
                ]
            }
        ],
        "install": [],
        "citations": {
            "bwa_mem2": [
                "Vasimuddin Md, Sanchit Misra, Heng Li, Srinivas Aluru. Efficient Architecture-Aware Acceleration of BWA-MEM for Multicore Systems. IEEE Parallel and Distributed Processing Symposium (IPDPS), 2019"
            ],
            "samtools": [
                "Heng Li, Bob Handsaker, Alec Wysoker, Tim Fennell, Jue Ruan, Nils Homer, Gabor Marth, Goncalo Abecasis, Richard Durbin, 1000 Genome Project Data Processing Subgroup, The Sequence Alignment\/Map format and SAMtools, Bioinformatics, Volume 25, Issue 16, 15 August 2009, Pages 2078-2079, https:\/\/doi.org\/10.1093\/bioinformatics\/btp352"
            ]
        },
        "yaml": "{\n  id: bwa_mem2,\n  name: BWA MEM2 (Burrows-Wheeler Alignment Tool),\n  article: 10.1109\/IPDPS.2019.00041,\n  website: \"https:\/\/github.com\/bwa-mem2\/bwa-mem2\",\n  git: \"https:\/\/github.com\/bwa-mem2\/bwa-mem2\",\n  description: \"Bwa mem2 is the next version of the bwa-mem algorithm in bwa. It produces alignment identical to bwa and is ~80% faster (WIP; not recommended for production uses at the moment)\",\n  version: \"2.2.1\",\n  documentation: \"http:\/\/bio-bwa-mem2.sourceforge.net\/bwa-mem2.shtml\",\n  multiqc: \"custom\",\n  commands:\n    [\n      {\n        name: bwa_mem2_PE,\n        cname: \"Bwa mem2 PE\",\n        command: bwa-mem2 mem,\n        category: \"mapping\",\n        output_dir: bwa_mem2\/mem\/PE,\n        inputs: [{ name: read, type: \"reads\" }, { name: read2, type: \"reads\" }, { name: index, type: \"bwa_mem_2_index\", file: index, description: \"Index files for bwa_mem2 alignment\" }],\n        outputs: [{ name: bam, type: \"bams\", file: \"{sample}.bam\", description: \"Alignment files\" }],\n        options:\n          [\n            {\n              name: bwa_mem2_threads,\n              prefix: -t,\n              type: numeric,\n              value: 4,\n              min: 1,\n              max: NA,\n              step: 1,\n              label: \"Number of threads to use\",\n            },\n            {\n              name: bwa_mem2_quality0_multimapping,\n              prefix: ,\n              type: checkbox,\n              value: TRUE,\n              label: \"Put 0 as mapping quality for multimapping reads\",\n            }\n          ]\n      },\n      {\n        name: bwa_mem2_SE,\n        cname: \"Bwa mem2 SE\",\n        command: bwa-mem2 mem,\n        category: \"mapping\",\n        output_dir: bwa_mem2\/mem\/SE,\n        inputs: [{ name: read, type: \"reads\" }, { name: index, type: \"bwa_mem_2_index\", file: index, description: \"Index files for bwa_mem2 alignment\" }],\n        outputs: [{ name: bam, type: \"bams\", file: \"{sample}.bam\", description: \"Alignment files\" }],\n        options:\n          [\n            {\n              name: bwa_mem2_threads,\n              prefix: -t,\n              type: numeric,\n              value: 4,\n              min: 1,\n              max: NA,\n              step: 1,\n              label: \"Number of threads to use\",\n            },\n            {\n              name: bwa_mem2_quality0_multimapping,\n              prefix: ,\n              type: checkbox,\n              value: TRUE,\n              label: \"Put 0 as mapping quality for multimapping reads\",\n            }\n          ]\n      }\n    ],\n  install:  {\n    # bwa_mem2: [      \n    #   \"cd \/opt\/biotools\",\n    #   \"wget https:\/\/github.com\/bwa-mem2\/bwa-mem2\/releases\/download\/v2.2.1\/bwa-mem2-2.2.1_x64-linux.tar.bz2\",\n    #   \"tar -xvjf bwa-mem2-2.2.1_x64-linux.tar.bz2\",\n    #   \"mv bwa-mem2-2.2.1_x64-linux\/bwa-mem2* \/opt\/biotools\/bin\/\",\n    #   \"rm -r bwa-mem2-2.2.1_x64-linux bwa-mem2-2.2.1_x64-linux.tar.bz2\"\n    # ],\n    # samtools: [\n    #   \"cd \/opt\/biotools\",\n    #   \"wget https:\/\/github.com\/samtools\/samtools\/releases\/download\/1.9\/samtools-1.9.tar.bz2\",\n    #   \"tar -xvjf samtools-1.9.tar.bz2\",\n    #   \"cd samtools-1.9\",\n    #   \".\/configure && make\",\n    #   \"cd ..\",\n    #   \"mv samtools-1.9\/samtools bin\/samtools\",\n    #   \"rm -r samtools-1.9 samtools-1.9.tar.bz2\"\n    # ]\n  },\n  citations:  {\n    bwa_mem2: [\n      \"Vasimuddin Md, Sanchit Misra, Heng Li, Srinivas Aluru. Efficient Architecture-Aware Acceleration of BWA-MEM for Multicore Systems. IEEE Parallel and Distributed Processing Symposium (IPDPS), 2019\"\n    ],\n    samtools: [\n      \"Heng Li, Bob Handsaker, Alec Wysoker, Tim Fennell, Jue Ruan, Nils Homer, Gabor Marth, Goncalo Abecasis, Richard Durbin, 1000 Genome Project Data Processing Subgroup, The Sequence Alignment\/Map format and SAMtools, Bioinformatics, Volume 25, Issue 16, 15 August 2009, Pages 2078-2079, https:\/\/doi.org\/10.1093\/bioinformatics\/btp352\"\n    ]\n  }\n}"
    }
]