[
    {
        "name": "RADseq_denovo",
        "docker_name": "RADseq_denovo",
        "description": "Stacks pipeline denovo mode",
        "version": "0.0.1",
        "author": "MBB",
        "options": [
            {
                "name": "results_dir",
                "type": "output_dir",
                "value": "\/Results",
                "label": "Results directory: ",
                "volumes": [
                    {
                        "Results": "\/Results"
                    }
                ]
            }
        ],
        "steps_in": [
            {
                "step_name": "stacks_7",
                "tool_name": "process_radtags",
                "rule_name": "process_radtags_SE",
                "params": [
                    {
                        "input_name": "reads_dir",
                        "origin_command": "raw_SE_read_dir",
                        "origin_name": "SE_read_dir",
                        "origin_step": "input"
                    },
                    {
                        "input_name": "tags",
                        "origin_command": "raw_tsv",
                        "origin_name": "tsv",
                        "origin_step": "input"
                    }
                ]
            },
            {
                "step_name": "stacks_6",
                "tool_name": "ustacks",
                "rule_name": "ustacks",
                "params": [
                    {
                        "input_name": "read_dir",
                        "origin_command": "process_radtags_SE",
                        "origin_name": "read_dir",
                        "origin_step": "stacks_7"
                    }
                ]
            },
            {
                "step_name": "stacks",
                "tool_name": "cstacks",
                "rule_name": "cstacks",
                "params": [
                    {
                        "input_name": "ustacks_done",
                        "origin_command": "ustacks",
                        "origin_name": "ustacks_done",
                        "origin_step": "stacks_6"
                    },
                    {
                        "input_name": "popmap",
                        "origin_command": "raw_popmap",
                        "origin_name": "popmap",
                        "origin_step": "input"
                    }
                ]
            },
            {
                "step_name": "stacks_2",
                "tool_name": "sstacks",
                "rule_name": "sstacks",
                "params": [
                    {
                        "input_name": "cstacks_done",
                        "origin_command": "cstacks",
                        "origin_name": "cstacks_done",
                        "origin_step": "stacks"
                    },
                    {
                        "input_name": "popmap",
                        "origin_command": "raw_popmap",
                        "origin_name": "popmap",
                        "origin_step": "input"
                    }
                ]
            },
            {
                "step_name": "stacks_3",
                "tool_name": "tsv2bam",
                "rule_name": "tsv2bam_SE",
                "params": [
                    {
                        "input_name": "sstacks_done",
                        "origin_command": "sstacks",
                        "origin_name": "sstacks_done",
                        "origin_step": "stacks_2"
                    },
                    {
                        "input_name": "popmap",
                        "origin_command": "raw_popmap",
                        "origin_name": "popmap",
                        "origin_step": "input"
                    }
                ]
            },
            {
                "step_name": "stacks_4",
                "tool_name": "gstacks_denovo",
                "rule_name": "gstacks_denovo",
                "params": [
                    {
                        "input_name": "tsv2bam_done",
                        "origin_command": "tsv2bam_SE",
                        "origin_name": "tsv2bam_done",
                        "origin_step": "stacks_3"
                    },
                    {
                        "input_name": "popmap",
                        "origin_command": "raw_popmap",
                        "origin_name": "popmap",
                        "origin_step": "input"
                    }
                ]
            },
            {
                "step_name": "stacks_5",
                "tool_name": "populations",
                "rule_name": "populations",
                "params": [
                    {
                        "input_name": "catalog_calls",
                        "origin_command": "gstacks_denovo",
                        "origin_name": "catalog_calls",
                        "origin_step": "stacks_4"
                    },
                    {
                        "input_name": "popmap",
                        "origin_command": "raw_popmap",
                        "origin_name": "popmap",
                        "origin_step": "input"
                    }
                ]
            }
        ],
        "steps": [
            {
                "title": "stacks_7",
                "name": "stacks_7",
                "tools": [
                    "process_radtags"
                ],
                "default": "process_radtags"
            },
            {
                "title": "stacks_6",
                "name": "stacks_6",
                "tools": [
                    "ustacks"
                ],
                "default": "ustacks"
            },
            {
                "title": "stacks",
                "name": "stacks",
                "tools": [
                    "cstacks"
                ],
                "default": "cstacks"
            },
            {
                "title": "stacks_2",
                "name": "stacks_2",
                "tools": [
                    "sstacks"
                ],
                "default": "sstacks"
            },
            {
                "title": "stacks_3",
                "name": "stacks_3",
                "tools": [
                    "tsv2bam"
                ],
                "default": "tsv2bam"
            },
            {
                "title": "stacks_4",
                "name": "stacks_4",
                "tools": [
                    "gstacks_denovo"
                ],
                "default": "gstacks_denovo"
            },
            {
                "title": "stacks_5",
                "name": "stacks_5",
                "tools": [
                    "populations"
                ],
                "default": "populations"
            }
        ],
        "input": [
            "raw_SE_read_dir",
            "raw_tsv",
            "raw_popmap"
        ],
        "params_equals": [
            {
                "param_A": "stacks_5__populations_popmap",
                "param_B": "stacks__cstacks_popmap"
            },
            {
                "param_A": "stacks_5__populations_popmap",
                "param_B": "stacks_2__sstacks_popmap"
            },
            {
                "param_A": "stacks_5__populations_popmap",
                "param_B": "stacks_3__tsv2bam_SE_popmap"
            },
            {
                "param_A": "stacks_5__populations_popmap",
                "param_B": "stacks_4__gstacks_denovo_popmap"
            }
        ],
        "git": "https:\/\/gitlab.mbb.univ-montp2.fr\/khalid\/RADseq_denovo",
        "json": {
            "class": "GraphLinksModel",
            "linkFromPortIdProperty": "fromPort",
            "linkToPortIdProperty": "toPort",
            "modelData": {
                "position": "-525.4823254279415 -1243.500532901485"
            },
            "nodeDataArray": [
                {
                    "name": "tsv",
                    "text": "tsv",
                    "size2": "",
                    "category": "Data",
                    "strokeWidth": 2,
                    "fill": "#2ecc71",
                    "inservices": [],
                    "outservices": [
                        {
                            "name": "o1",
                            "type": "tsv",
                            "value": "raw_tsv",
                            "description": "",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices2": [
                        {
                            "name": "o2",
                            "type": "link",
                            "value": "linkOut"
                        }
                    ],
                    "description": "unknown",
                    "version": "unknown",
                    "key": -5,
                    "loc": "-450 -420"
                },
                {
                    "name": "popmap",
                    "text": "popmap",
                    "size2": "",
                    "category": "Data",
                    "strokeWidth": 2,
                    "fill": "#2ecc71",
                    "inservices": [],
                    "outservices": [
                        {
                            "name": "o1",
                            "type": "popmap",
                            "value": "raw_popmap",
                            "description": "",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices2": [
                        {
                            "name": "o2",
                            "type": "link",
                            "value": "linkOut"
                        }
                    ],
                    "description": "unknown",
                    "version": "unknown",
                    "key": -9,
                    "loc": "-450 -200"
                },
                {
                    "name": "cstacks",
                    "text": "Cstacks",
                    "size2": "125 85",
                    "category": "Tool",
                    "strokeWidth": 2,
                    "fill": "#3498db",
                    "inservices": [
                        {
                            "name": "i1",
                            "type": "ustacks_done",
                            "value": "ustacks_done",
                            "description": "",
                            "ptype": "IN",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "i2",
                            "type": "popmap",
                            "value": "popmap",
                            "description": "",
                            "ptype": "IN",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices": [
                        {
                            "name": "o1",
                            "type": "cstacks_done",
                            "value": "cstacks_done",
                            "description": "in dir containing cstacks and ustacks results",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices2": [
                        {
                            "name": "o2",
                            "type": "link",
                            "value": "linkOut"
                        }
                    ],
                    "description": "cstacks creates a set of consensus loci, merging alleles together.",
                    "version": "2.61",
                    "key": "1532351246",
                    "loc": "350 -370"
                },
                {
                    "name": "sstacks",
                    "text": "Sstacks",
                    "size2": "125 85",
                    "category": "Tool",
                    "strokeWidth": 2,
                    "fill": "#3498db",
                    "inservices": [
                        {
                            "name": "i1",
                            "type": "cstacks_done",
                            "value": "cstacks_done",
                            "description": "",
                            "ptype": "IN",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "i2",
                            "type": "popmap",
                            "value": "popmap",
                            "description": "",
                            "ptype": "IN",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices": [
                        {
                            "name": "o1",
                            "type": "sstacks_done",
                            "value": "sstacks_done",
                            "description": "in ustacks, cstacks and sstacks dir",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices2": [
                        {
                            "name": "o2",
                            "type": "link",
                            "value": "linkOut"
                        }
                    ],
                    "description": "Sets of stacks, i.e. putative loci, constructed by the ustacks program can be searched against a catalog produced by cstacks. In the case of a genetic map, stacks from the progeny would be matched against the catalog to determine which progeny contain which parental alleles. In the case of a general population, all samples in the population would be matched against the catalog with sstacks.",
                    "version": "2.61",
                    "key": "3844802252",
                    "loc": "550 -370"
                },
                {
                    "name": "tsv2bam_SE",
                    "text": "Tsv2bam SE",
                    "size2": "130 85",
                    "category": "Tool",
                    "strokeWidth": 2,
                    "fill": "#3498db",
                    "inservices": [
                        {
                            "name": "i1",
                            "type": "sstacks_done",
                            "value": "sstacks_done",
                            "description": "",
                            "ptype": "IN",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "i2",
                            "type": "popmap",
                            "value": "popmap",
                            "description": "",
                            "ptype": "IN",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices": [
                        {
                            "name": "o1",
                            "type": "tsv2bam_done",
                            "value": "tsv2bam_done",
                            "description": "in Tsv2Bam output dir",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices2": [
                        {
                            "name": "o2",
                            "type": "link",
                            "value": "linkOut"
                        }
                    ],
                    "description": "This program will transpose data so that it is oriented by locus, instead of by sample. In additon, if paired-ends are available, the program will pull in the set of paired reads that are associate with each single-end locus that was assembled de novo.",
                    "version": "2.61",
                    "key": "4128732696",
                    "loc": "760 -300"
                },
                {
                    "name": "gstacks_denovo",
                    "text": "gstacks_denovo",
                    "size2": "150 110",
                    "category": "Tool",
                    "strokeWidth": 2,
                    "fill": "#3498db",
                    "inservices": [
                        {
                            "name": "i1",
                            "type": "tsv2bam_done",
                            "value": "tsv2bam_done",
                            "description": "",
                            "ptype": "IN",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "i2",
                            "type": "popmap",
                            "value": "popmap",
                            "description": "",
                            "ptype": "IN",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices": [
                        {
                            "name": "o1",
                            "type": "stacks_calls",
                            "value": "catalog_calls",
                            "description": "Consensus sequence for each assembled locus in the data",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "o2",
                            "type": "fa.gz",
                            "value": "catalog_fa",
                            "description": "Custom file that contains genotyping data",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "o3",
                            "type": "distribs",
                            "value": "stats",
                            "description": "Distributions statistics (bam stats, coverage and phasing_rates per sample)",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices2": [
                        {
                            "name": "o4",
                            "type": "link",
                            "value": "linkOut"
                        }
                    ],
                    "description": "gstacks build loci from the single and\/or paired-end reads before calling SNPs",
                    "version": "2.64",
                    "key": "1043770597",
                    "loc": "900 -30"
                },
                {
                    "name": "populations",
                    "text": "Populations",
                    "size2": "150 310",
                    "category": "Tool",
                    "strokeWidth": 2,
                    "fill": "#3498db",
                    "inservices": [
                        {
                            "name": "i1",
                            "type": "stacks_calls",
                            "value": "catalog_calls",
                            "description": "Binary calls file from stacks output",
                            "ptype": "IN",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "i2",
                            "type": "popmap",
                            "value": "popmap",
                            "description": "",
                            "ptype": "IN",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices": [
                        {
                            "name": "o1",
                            "type": "tsv",
                            "value": "sumstats",
                            "description": "summary statistics describing every SNP found in every population. frequecy of alleles, expected\/observed heterozygosity, \u03c0, FIS, and so on.",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "o2",
                            "type": "tsv",
                            "value": "fstats_pop",
                            "description": "SNP and haplotype-based F statistics between each populations",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "o3",
                            "type": "tsv",
                            "value": "haplotypes_tab",
                            "description": "Haplotypes for each sample",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "o4",
                            "type": "tsv",
                            "value": "phistats_pop",
                            "description": "Phi statistics between each populations",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "o5",
                            "type": "vcf_file",
                            "value": "vcf",
                            "description": "SNP vcf file",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "o6",
                            "type": "structure",
                            "value": "structure",
                            "description": "Output in Structure format",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "o7",
                            "type": "genepop",
                            "value": "genepop_haplotypes",
                            "description": "Haplotypes in GenePop format",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "o8",
                            "type": "genepop",
                            "value": "genepop_snps",
                            "description": "SNP in GenePop format",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "o9",
                            "type": "phylip",
                            "value": "phylip",
                            "description": "output nucleotides that are fixed-within, and variant among populations in Phylip format (1 seq per pop)",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "o10",
                            "type": "phylip",
                            "value": "phylip_var",
                            "description": "include variable sites in the phylip output encoded using IUPAC notation (1 seq per pop)",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "o11",
                            "type": "phylip",
                            "value": "sample_phylip",
                            "description": "output nucleotides that are variant among samples in Phylip format (1 seq per sample)",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices2": [
                        {
                            "name": "o12",
                            "type": "link",
                            "value": "linkOut"
                        }
                    ],
                    "description": "The populations program will analyze a population of individual samples computing a number of population genetics statistics as well as exporting a variety of standard output formats.",
                    "version": "2.64",
                    "key": "7276381813",
                    "loc": "1110 70"
                },
                {
                    "name": "ustacks",
                    "text": "Ustacks",
                    "size2": "125 60",
                    "category": "Tool",
                    "strokeWidth": 2,
                    "fill": "#3498db",
                    "inservices": [
                        {
                            "name": "i1",
                            "type": "SE_read_dir",
                            "value": "read_dir",
                            "description": "A dir containing fastq.gz or fq.gz files",
                            "ptype": "IN",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices": [
                        {
                            "name": "o1",
                            "type": "ustacks_done",
                            "value": "ustacks_done",
                            "description": "in dir containing ustacks results",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices2": [
                        {
                            "name": "o2",
                            "type": "link",
                            "value": "linkOut"
                        }
                    ],
                    "description": "The unique stacks program will take as input a set of short-read sequences and align them into exactly-matching stacks (or putative alleles). Comparing the stacks it will form a set of putative loci and detect SNPs at each locus using a maximum likelihood framework.",
                    "version": "2.64",
                    "key": "9650903219",
                    "loc": "80 -520"
                },
                {
                    "name": "SE_read_dir",
                    "text": "SE_read_dir",
                    "size2": "",
                    "category": "Data",
                    "strokeWidth": 2,
                    "fill": "#2ecc71",
                    "inservices": [],
                    "outservices": [
                        {
                            "name": "o1",
                            "type": "SE_read_dir",
                            "value": "raw_SE_read_dir",
                            "description": "",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices2": [
                        {
                            "name": "o2",
                            "type": "link",
                            "value": "linkOut"
                        }
                    ],
                    "description": "unknown",
                    "version": "unknown",
                    "key": -11,
                    "loc": "-440 -550"
                },
                {
                    "name": "process_radtags_SE",
                    "text": "Process radtags SE",
                    "size2": "195 85",
                    "category": "Tool",
                    "strokeWidth": 2,
                    "fill": "#3498db",
                    "inservices": [
                        {
                            "name": "i1",
                            "type": "SE_read_dir",
                            "value": "reads_dir",
                            "description": "Directory containing one or more multiplexed SE read files to process",
                            "ptype": "IN",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "i2",
                            "type": "tsv",
                            "value": "tags",
                            "description": "Barcode file",
                            "ptype": "IN",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices": [
                        {
                            "name": "o1",
                            "type": "fq.gz",
                            "value": "reads_demultiplexed",
                            "description": "Files of reads for each individual",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "o2",
                            "type": "SE_read_dir",
                            "value": "read_dir",
                            "description": "dir containing demultiplexed files",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices2": [
                        {
                            "name": "o3",
                            "type": "link",
                            "value": "linkOut"
                        }
                    ],
                    "description": "process_radtags examines raw reads from an Illumina sequencing run and first, checks that the barcode and the RAD cutsite are intact, and demultiplexes the data. If there are errors in the barcode or the RAD site within a certain allowance process_radtags can correct them. Second, it slides a window down the length of the read and checks the average quality score within the window. If the score drops below 90% probability of being correct (a raw phred score of 10), the read is discarded.",
                    "version": "2.64",
                    "key": "4419883907",
                    "loc": "-210 -470"
                }
            ],
            "linkDataArray": [
                {
                    "from": -9,
                    "to": "7276381813",
                    "fromPort": "raw_popmap",
                    "toPort": "popmap",
                    "points": [
                        -391.94545459747314,
                        -192.83878796895343,
                        -381.94545459747314,
                        -192.83878796895343,
                        313.47954535484314,
                        -192.83878796895343,
                        313.47954535484314,
                        73.19181804656984,
                        1008.9045453071594,
                        73.19181804656984,
                        1018.9045453071594,
                        73.19181804656984
                    ]
                },
                {
                    "from": -9,
                    "to": "1532351246",
                    "fromPort": "raw_popmap",
                    "toPort": "popmap",
                    "points": [
                        -391.94545459747314,
                        -204.56121203104655,
                        -381.94545459747314,
                        -204.56121203104655,
                        -59.236363649368286,
                        -204.56121203104655,
                        -59.236363649368286,
                        -355.5581819534301,
                        263.4727272987366,
                        -355.5581819534301,
                        273.4727272987366,
                        -355.5581819534301
                    ]
                },
                {
                    "from": "1532351246",
                    "to": "3844802252",
                    "fromPort": "cstacks_done",
                    "toPort": "cstacks_done",
                    "points": [
                        426.5272727012634,
                        -367.35,
                        436.5272727012634,
                        -367.35,
                        450,
                        -367.35,
                        450,
                        -379.1418180465698,
                        463.4727272987366,
                        -379.1418180465698,
                        473.4727272987366,
                        -379.1418180465698
                    ]
                },
                {
                    "from": -9,
                    "to": "3844802252",
                    "fromPort": "raw_popmap",
                    "toPort": "popmap",
                    "points": [
                        -391.94545459747314,
                        -201.63060601552326,
                        -373.94545459747314,
                        -201.63060601552326,
                        -372,
                        -201.63060601552326,
                        -372,
                        -201.63060601552326,
                        436,
                        -201.63060601552326,
                        436,
                        -355.5581819534301,
                        463.4727272987366,
                        -355.5581819534301,
                        473.4727272987366,
                        -355.5581819534301
                    ]
                },
                {
                    "from": "3844802252",
                    "to": "4128732696",
                    "fromPort": "sstacks_done",
                    "toPort": "sstacks_done",
                    "points": [
                        626.5272727012634,
                        -367.35,
                        636.5272727012634,
                        -367.35,
                        653.75,
                        -367.35,
                        653.75,
                        -309.1418180465698,
                        670.9727272987366,
                        -309.1418180465698,
                        680.9727272987366,
                        -309.1418180465698
                    ]
                },
                {
                    "from": -9,
                    "to": "4128732696",
                    "fromPort": "raw_popmap",
                    "toPort": "popmap",
                    "points": [
                        -391.94545459747314,
                        -198.7,
                        -365.94545459747314,
                        -198.7,
                        152.5136363506317,
                        -198.7,
                        152.5136363506317,
                        -285.5581819534301,
                        670.9727272987366,
                        -285.5581819534301,
                        680.9727272987366,
                        -285.5581819534301
                    ]
                },
                {
                    "from": "4128732696",
                    "to": "1043770597",
                    "fromPort": "tsv2bam_done",
                    "toPort": "tsv2bam_done",
                    "points": [
                        839.0272727012634,
                        -297.35,
                        849.0272727012634,
                        -297.35,
                        849.0272727012634,
                        -171.25,
                        800.9727272987366,
                        -171.25,
                        800.9727272987366,
                        -40.39181804656983,
                        810.9727272987366,
                        -40.39181804656983
                    ]
                },
                {
                    "from": -9,
                    "to": "1043770597",
                    "fromPort": "raw_popmap",
                    "toPort": "popmap",
                    "points": [
                        -391.94545459747314,
                        -195.76939398447672,
                        -373.94545459747314,
                        -195.76939398447672,
                        213.5136363506317,
                        -195.76939398447672,
                        213.5136363506317,
                        -16.80818195343018,
                        800.9727272987366,
                        -16.80818195343018,
                        810.9727272987366,
                        -16.80818195343018
                    ]
                },
                {
                    "from": "1043770597",
                    "to": "7276381813",
                    "fromPort": "catalog_calls",
                    "toPort": "catalog_calls",
                    "points": [
                        989.0272727012634,
                        -52.183636093139654,
                        999.0272727012634,
                        -52.183636093139654,
                        1003.9659090042114,
                        -52.183636093139654,
                        1003.9659090042114,
                        49.60818195343018,
                        1008.9045453071594,
                        49.60818195343018,
                        1018.9045453071594,
                        49.60818195343018
                    ]
                },
                {
                    "from": -5,
                    "to": "4419883907",
                    "fromPort": "raw_tsv",
                    "toPort": "tags",
                    "points": [
                        -391.94545459747314,
                        -418.70000000000005,
                        -381.94545459747314,
                        -418.70000000000005,
                        -356.7363636493683,
                        -418.70000000000005,
                        -356.7363636493683,
                        -455.5581819534301,
                        -331.5272727012634,
                        -455.5581819534301,
                        -321.5272727012634,
                        -455.5581819534301
                    ]
                },
                {
                    "from": -11,
                    "to": "4419883907",
                    "fromPort": "raw_SE_read_dir",
                    "toPort": "reads_dir",
                    "points": [
                        -381.94545459747314,
                        -548.7,
                        -371.94545459747314,
                        -548.7,
                        -351.7363636493683,
                        -548.7,
                        -351.7363636493683,
                        -479.1418180465698,
                        -331.5272727012634,
                        -479.1418180465698,
                        -321.5272727012634,
                        -479.1418180465698
                    ]
                },
                {
                    "from": "4419883907",
                    "to": "9650903219",
                    "fromPort": "read_dir",
                    "toPort": "read_dir",
                    "points": [
                        -98.47272729873657,
                        -455.5581819534301,
                        -88.47272729873657,
                        -455.5581819534301,
                        -47.5,
                        -455.5581819534301,
                        -47.5,
                        -516.1,
                        -6.527272701263428,
                        -516.1,
                        3.4727272987365723,
                        -516.1
                    ]
                },
                {
                    "from": "9650903219",
                    "to": "1532351246",
                    "fromPort": "ustacks_done",
                    "toPort": "ustacks_done",
                    "points": [
                        156.52727270126343,
                        -516.1,
                        166.52727270126343,
                        -516.1,
                        215,
                        -516.1,
                        215,
                        -379.1418180465698,
                        263.4727272987366,
                        -379.1418180465698,
                        273.4727272987366,
                        -379.1418180465698
                    ]
                }
            ],
            "version": 2
        },
        "yaml": "{\nname: \"RADseq_denovo\",\ndocker_name: \"RADseq_denovo\",\ndescription: \"Stacks pipeline denovo mode\",\nversion: \"0.0.1\",\nauthor: \"MBB\",\noptions: [\n    {\n    name: \"results_dir\",\n    type: \"output_dir\",\n    value: \"\/Results\",\n    label: \"Results directory: \",\n    volumes:  [Results: \"\/Results\"]\n    },\n],\nsteps_in: [\n{ step_name: \"stacks_7\", tool_name: \"process_radtags\", rule_name: \"process_radtags_SE\",\n    params: [\n        { input_name: reads_dir, origin_command: raw_SE_read_dir, origin_name: SE_read_dir, origin_step: input},\n        { input_name: tags, origin_command: raw_tsv, origin_name: tsv, origin_step: input},\n    ]\n},\n{ step_name: \"stacks_6\", tool_name: \"ustacks\", rule_name: \"ustacks\",\n    params: [\n        { input_name: read_dir, origin_command: process_radtags_SE, origin_name: read_dir, origin_step: stacks_7},\n    ]\n},\n{ step_name: \"stacks\", tool_name: \"cstacks\", rule_name: \"cstacks\",\n    params: [\n        { input_name: ustacks_done, origin_command: ustacks, origin_name: ustacks_done, origin_step: stacks_6},\n        { input_name: popmap, origin_command: raw_popmap, origin_name: popmap, origin_step: input},\n    ]\n},\n{ step_name: \"stacks_2\", tool_name: \"sstacks\", rule_name: \"sstacks\",\n    params: [\n        { input_name: cstacks_done, origin_command: cstacks, origin_name: cstacks_done, origin_step: stacks},\n        { input_name: popmap, origin_command: raw_popmap, origin_name: popmap, origin_step: input},\n    ]\n},\n{ step_name: \"stacks_3\", tool_name: \"tsv2bam\", rule_name: \"tsv2bam_SE\",\n    params: [\n        { input_name: sstacks_done, origin_command: sstacks, origin_name: sstacks_done, origin_step: stacks_2},\n        { input_name: popmap, origin_command: raw_popmap, origin_name: popmap, origin_step: input},\n    ]\n},\n{ step_name: \"stacks_4\", tool_name: \"gstacks_denovo\", rule_name: \"gstacks_denovo\",\n    params: [\n        { input_name: tsv2bam_done, origin_command: tsv2bam_SE, origin_name: tsv2bam_done, origin_step: stacks_3},\n        { input_name: popmap, origin_command: raw_popmap, origin_name: popmap, origin_step: input},\n    ]\n},\n{ step_name: \"stacks_5\", tool_name: \"populations\", rule_name: \"populations\",\n    params: [\n        { input_name: catalog_calls, origin_command: gstacks_denovo, origin_name: catalog_calls, origin_step: stacks_4},\n        { input_name: popmap, origin_command: raw_popmap, origin_name: popmap, origin_step: input},\n    ]\n},\n],\nsteps: [\n    { title: \"stacks_7\", name: \"stacks_7\", tools: [process_radtags], default: \"process_radtags\" },\n    { title: \"stacks_6\", name: \"stacks_6\", tools: [ustacks], default: \"ustacks\" },\n    { title: \"stacks\", name: \"stacks\", tools: [cstacks], default: \"cstacks\" },\n    { title: \"stacks_2\", name: \"stacks_2\", tools: [sstacks], default: \"sstacks\" },\n    { title: \"stacks_3\", name: \"stacks_3\", tools: [tsv2bam], default: \"tsv2bam\" },\n    { title: \"stacks_4\", name: \"stacks_4\", tools: [gstacks_denovo], default: \"gstacks_denovo\" },\n    { title: \"stacks_5\", name: \"stacks_5\", tools: [populations], default: \"populations\" },\n],\ninput: [\"raw_SE_read_dir\",\"raw_tsv\",\"raw_popmap\",],\nparams_equals: [\n        { param_A: \"stacks_5__populations_popmap\", param_B:   \"stacks__cstacks_popmap\"},\n        { param_A: \"stacks_5__populations_popmap\", param_B:   \"stacks_2__sstacks_popmap\"},\n        { param_A: \"stacks_5__populations_popmap\", param_B:   \"stacks_3__tsv2bam_SE_popmap\"},\n        { param_A: \"stacks_5__populations_popmap\", param_B:   \"stacks_4__gstacks_denovo_popmap\"},\n\n]\n}\n"
    }
]