[
    {
        "name": "RnaSeqDemo",
        "docker_name": "RnaSeqDemo",
        "description": "RnaSeq DE Demo",
        "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": "quality",
                "tool_name": "trimmomatic",
                "rule_name": "trimmomatic_SE",
                "params": [
                    {
                        "input_name": "read",
                        "origin_command": "raw_reads",
                        "origin_name": "read",
                        "origin_step": "input"
                    }
                ]
            },
            {
                "step_name": "quality_2",
                "tool_name": "fastqc",
                "rule_name": "fastqc_SE",
                "params": [
                    {
                        "input_name": "read",
                        "origin_command": "trimmomatic_SE",
                        "origin_name": "read",
                        "origin_step": "quality"
                    }
                ]
            },
            {
                "step_name": "mapping",
                "tool_name": "hisat2",
                "rule_name": "hisat2_SE",
                "params": [
                    {
                        "input_name": "read",
                        "origin_command": "trimmomatic_SE",
                        "origin_name": "read",
                        "origin_step": "quality"
                    },
                    {
                        "input_name": "index",
                        "origin_command": "raw_hisat2_index",
                        "origin_name": "hisat2_index",
                        "origin_step": "input"
                    }
                ]
            },
            {
                "step_name": "quantification",
                "tool_name": "htseq_count",
                "rule_name": "htseq_count",
                "params": [
                    {
                        "input_name": "bam",
                        "origin_command": "hisat2_SE",
                        "origin_name": "bam",
                        "origin_step": "mapping"
                    },
                    {
                        "input_name": "gff_file",
                        "origin_command": "raw_gff3",
                        "origin_name": "gff3",
                        "origin_step": "input"
                    }
                ]
            },
            {
                "step_name": "differential_expression",
                "tool_name": "deseq2",
                "rule_name": "deseq2",
                "params": [
                    {
                        "input_name": "counts",
                        "origin_command": "htseq_count",
                        "origin_name": "stats",
                        "origin_step": "quantification"
                    },
                    {
                        "input_name": "popmap_file",
                        "origin_command": "raw_popmap",
                        "origin_name": "popmap",
                        "origin_step": "input"
                    }
                ]
            }
        ],
        "steps": [
            {
                "title": "quality",
                "name": "quality",
                "tools": [
                    "trimmomatic"
                ],
                "default": "trimmomatic"
            },
            {
                "title": "quality_2",
                "name": "quality_2",
                "tools": [
                    "fastqc"
                ],
                "default": "fastqc"
            },
            {
                "title": "mapping",
                "name": "mapping",
                "tools": [
                    "hisat2"
                ],
                "default": "hisat2"
            },
            {
                "title": "quantification",
                "name": "quantification",
                "tools": [
                    "htseq_count"
                ],
                "default": "htseq_count"
            },
            {
                "title": "differential_expression",
                "name": "differential_expression",
                "tools": [
                    "deseq2"
                ],
                "default": "deseq2"
            }
        ],
        "input": [
            "raw_reads",
            "raw_hisat2_index",
            "raw_gff3",
            "raw_popmap"
        ],
        "params_equals": [],
        "git": "https:\/\/gitlab.mbb.univ-montp2.fr\/khalid\/RnaSeqDemo",
        "json": {
            "class": "GraphLinksModel",
            "linkFromPortIdProperty": "fromPort",
            "linkToPortIdProperty": "toPort",
            "modelData": {
                "position": "-703.0541667938232 -613"
            },
            "nodeDataArray": [
                {
                    "name": "reads",
                    "text": "read",
                    "size2": "",
                    "category": "Data",
                    "strokeWidth": 2,
                    "fill": "#2ecc71",
                    "inservices": [],
                    "outservices": [
                        {
                            "name": "o1",
                            "type": "reads",
                            "value": "raw_reads",
                            "description": "",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices2": [
                        {
                            "name": "o2",
                            "type": "link",
                            "value": "linkOut"
                        }
                    ],
                    "description": "unknown",
                    "version": "unknown",
                    "key": -3,
                    "loc": "-640 -280"
                },
                {
                    "name": "trimmomatic_SE",
                    "text": "Trimmomatic SE",
                    "size2": "155 60",
                    "category": "Tool",
                    "strokeWidth": 2,
                    "fill": "#3498db",
                    "inservices": [
                        {
                            "name": "i1",
                            "type": "reads",
                            "value": "read",
                            "description": "",
                            "ptype": "IN",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices": [
                        {
                            "name": "o1",
                            "type": "reads",
                            "value": "read",
                            "description": "Reads trimmed",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices2": [
                        {
                            "name": "o2",
                            "type": "link",
                            "value": "linkOut"
                        }
                    ],
                    "description": "A flexible read trimming tool for Illumina NGS data",
                    "version": "0.38",
                    "key": "1017569447",
                    "loc": "-470 -340"
                },
                {
                    "name": "fastqc_SE",
                    "text": "Fastqc SE",
                    "size2": "130 60",
                    "category": "Tool",
                    "strokeWidth": 2,
                    "fill": "#3498db",
                    "inservices": [
                        {
                            "name": "i1",
                            "type": "reads",
                            "value": "read",
                            "description": "",
                            "ptype": "IN",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices": [
                        {
                            "name": "o1",
                            "type": "txt",
                            "value": "logFile",
                            "description": "log fastqc",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices2": [
                        {
                            "name": "o2",
                            "type": "link",
                            "value": "linkOut"
                        }
                    ],
                    "description": "A quality control tool for high throughput raw sequence data.",
                    "version": "0.11.5",
                    "key": "0368201448",
                    "loc": "-280 -420"
                },
                {
                    "name": "hisat2_index",
                    "text": "hisat2_index",
                    "size2": "",
                    "category": "Data",
                    "strokeWidth": 2,
                    "fill": "#2ecc71",
                    "inservices": [],
                    "outservices": [
                        {
                            "name": "o1",
                            "type": "hisat2_index",
                            "value": "raw_hisat2_index",
                            "description": "",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices2": [
                        {
                            "name": "o2",
                            "type": "link",
                            "value": "linkOut"
                        }
                    ],
                    "description": "unknown",
                    "version": "unknown",
                    "key": -6,
                    "loc": "-640 -190"
                },
                {
                    "name": "hisat2_SE",
                    "text": "hisat2 SE",
                    "size2": "130 85",
                    "category": "Tool",
                    "strokeWidth": 2,
                    "fill": "#3498db",
                    "inservices": [
                        {
                            "name": "i1",
                            "type": "reads",
                            "value": "read",
                            "description": "",
                            "ptype": "IN",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "i2",
                            "type": "hisat2_index",
                            "value": "index",
                            "description": "Index files for hisat2 alignment",
                            "ptype": "IN",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices": [
                        {
                            "name": "o1",
                            "type": "bams",
                            "value": "bam",
                            "description": "Alignment files",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices2": [
                        {
                            "name": "o2",
                            "type": "link",
                            "value": "linkOut"
                        }
                    ],
                    "description": "a fast and sensitive alignment program for mapping next-generation sequencing reads (both DNA and RNA)",
                    "version": "2.2.1",
                    "key": "4537494230",
                    "loc": "-280 -200"
                },
                {
                    "name": "htseq_count",
                    "text": "Htseq_count",
                    "size2": "150 85",
                    "category": "Tool",
                    "strokeWidth": 2,
                    "fill": "#3498db",
                    "inservices": [
                        {
                            "name": "i1",
                            "type": "bams",
                            "value": "bam",
                            "description": "",
                            "ptype": "IN",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "i2",
                            "type": "gff3",
                            "value": "gff_file",
                            "description": "",
                            "ptype": "IN",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices": [
                        {
                            "name": "o1",
                            "type": "tsv",
                            "value": "stats",
                            "description": "a table with counts for each feature",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices2": [
                        {
                            "name": "o2",
                            "type": "link",
                            "value": "linkOut"
                        }
                    ],
                    "description": "A tool to quantify gene expression in RNA-Seq and similar experiments.",
                    "version": "release_0.13.5",
                    "key": "9806347203",
                    "loc": "-80 -120"
                },
                {
                    "name": "gff3",
                    "text": "gff3",
                    "size2": "",
                    "category": "Data",
                    "strokeWidth": 2,
                    "fill": "#2ecc71",
                    "inservices": [],
                    "outservices": [
                        {
                            "name": "o1",
                            "type": "gff3",
                            "value": "raw_gff3",
                            "description": "",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices2": [
                        {
                            "name": "o2",
                            "type": "link",
                            "value": "linkOut"
                        }
                    ],
                    "description": "unknown",
                    "version": "unknown",
                    "key": -7,
                    "loc": "-640 -90"
                },
                {
                    "name": "deseq2",
                    "text": "Deseq2",
                    "size2": "125 185",
                    "category": "Tool",
                    "strokeWidth": 2,
                    "fill": "#3498db",
                    "inservices": [
                        {
                            "name": "i1",
                            "type": "tsv",
                            "value": "counts",
                            "description": "",
                            "ptype": "IN",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "i2",
                            "type": "popmap",
                            "value": "popmap_file",
                            "description": "Path to tsv file with samples conditions",
                            "ptype": "IN",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices": [
                        {
                            "name": "o1",
                            "type": "tsv",
                            "value": "de_table",
                            "description": "Tableau d'expression diff\u00e9rentielle",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "o2",
                            "type": "RData",
                            "value": "RData",
                            "description": "Sauvegarde de la session R",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "o3",
                            "type": "png",
                            "value": "PCA",
                            "description": "PCA plot",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "o4",
                            "type": "tsv",
                            "value": "DE_Table",
                            "description": "Tableau d'expression diff\u00e9rentielle avec p-value ajust\u00e9e < 0.1",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "o5",
                            "type": "png",
                            "value": "MA_plot",
                            "description": "MA-plot log2 fold changes (on the y-axis) versus the mean of normalized counts (on the x-axis)",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        },
                        {
                            "name": "o6",
                            "type": "png",
                            "value": "Heatmap",
                            "description": "Heatmap",
                            "ptype": "OUT",
                            "from": "",
                            "list": false,
                            "stroke": "#000000"
                        }
                    ],
                    "outservices2": [
                        {
                            "name": "o7",
                            "type": "link",
                            "value": "linkOut"
                        }
                    ],
                    "description": "Differential gene expression analysis based on the negative binomial distribution. Using normalized count data.",
                    "version": "3.13",
                    "key": "5677868898",
                    "loc": "160 -60"
                },
                {
                    "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": "-100 20"
                }
            ],
            "linkDataArray": [
                {
                    "from": -3,
                    "to": "1017569447",
                    "fromPort": "raw_reads",
                    "toPort": "read",
                    "points": [
                        -581.9458332061768,
                        -278.7,
                        -571.9458332061768,
                        -278.7,
                        -571.9458332061768,
                        -278.7,
                        -571.9458332061768,
                        -336.09999999999997,
                        -416.69166707992554,
                        -336.09999999999997,
                        -406.69166707992554,
                        -336.09999999999997
                    ]
                },
                {
                    "from": "1017569447",
                    "to": "0368201448",
                    "fromPort": "read",
                    "toPort": "read",
                    "points": [
                        -378.47499990463257,
                        -336.09999999999997,
                        -368.47499990463257,
                        -336.09999999999997,
                        -368.47499990463257,
                        -380,
                        -369.02500009536743,
                        -380,
                        -369.02500009536743,
                        -416.09999999999997,
                        -359.02500009536743,
                        -416.09999999999997
                    ]
                },
                {
                    "from": "1017569447",
                    "to": "4537494230",
                    "fromPort": "read",
                    "toPort": "read",
                    "points": [
                        -378.47499990463257,
                        -333.16972231864924,
                        -368.47499990463257,
                        -333.16972231864924,
                        -368.47499990463257,
                        -276.25,
                        -369.02500009536743,
                        -276.25,
                        -369.02500009536743,
                        -209.1408330440521,
                        -359.02500009536743,
                        -209.1408330440521
                    ]
                },
                {
                    "from": -6,
                    "to": "4537494230",
                    "fromPort": "raw_hisat2_index",
                    "toPort": "index",
                    "points": [
                        -581.9458332061768,
                        -188.7,
                        -571.9458332061768,
                        -188.7,
                        -470.4854166507721,
                        -188.7,
                        -470.4854166507721,
                        -185.5591669559479,
                        -369.02500009536743,
                        -185.5591669559479,
                        -359.02500009536743,
                        -185.5591669559479
                    ]
                },
                {
                    "from": "4537494230",
                    "to": "9806347203",
                    "fromPort": "bam",
                    "toPort": "bam",
                    "points": [
                        -200.97499990463257,
                        -197.35000000000002,
                        -190.97499990463257,
                        -197.35000000000002,
                        -185,
                        -197.35000000000002,
                        -185,
                        -129.1408330440521,
                        -179.02500009536743,
                        -129.1408330440521,
                        -169.02500009536743,
                        -129.1408330440521
                    ]
                },
                {
                    "from": -7,
                    "to": "9806347203",
                    "fromPort": "raw_gff3",
                    "toPort": "gff_file",
                    "points": [
                        -581.9458332061768,
                        -88.7,
                        -571.9458332061768,
                        -88.7,
                        -375.4854166507721,
                        -88.7,
                        -375.4854166507721,
                        -105.55916695594787,
                        -179.02500009536743,
                        -105.55916695594787,
                        -169.02500009536743,
                        -105.55916695594787
                    ]
                },
                {
                    "from": -9,
                    "to": "5677868898",
                    "fromPort": "raw_popmap",
                    "toPort": "popmap_file",
                    "points": [
                        -41.94583320617676,
                        21.3,
                        -31.945833206176758,
                        21.3,
                        20.764583349227905,
                        21.3,
                        20.764583349227905,
                        -50.55916695594786,
                        73.47499990463257,
                        -50.55916695594786,
                        83.47499990463257,
                        -50.55916695594786
                    ]
                },
                {
                    "from": "9806347203",
                    "to": "5677868898",
                    "fromPort": "stats",
                    "toPort": "counts",
                    "points": [
                        9.025000095367432,
                        -117.35000000000001,
                        19.02500009536743,
                        -117.35000000000001,
                        46.25,
                        -117.35000000000001,
                        46.25,
                        -74.14083304405212,
                        73.47499990463257,
                        -74.14083304405212,
                        83.47499990463257,
                        -74.14083304405212
                    ]
                }
            ],
            "version": 2
        },
        "yaml": "{\nname: \"RnaSeqDemo\",\ndocker_name: \"RnaSeqDemo\",\ndescription: \"RnaSeq DE Demo\",\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: \"quality\", tool_name: \"trimmomatic\", rule_name: \"trimmomatic_SE\",\n    params: [\n        { input_name: read, origin_command: raw_reads, origin_name: read, origin_step: input},\n    ]\n},\n{ step_name: \"quality_2\", tool_name: \"fastqc\", rule_name: \"fastqc_SE\",\n    params: [\n        { input_name: read, origin_command: trimmomatic_SE, origin_name: read, origin_step: quality},\n    ]\n},\n{ step_name: \"mapping\", tool_name: \"hisat2\", rule_name: \"hisat2_SE\",\n    params: [\n        { input_name: read, origin_command: trimmomatic_SE, origin_name: read, origin_step: quality},\n        { input_name: index, origin_command: raw_hisat2_index, origin_name: hisat2_index, origin_step: input},\n    ]\n},\n{ step_name: \"quantification\", tool_name: \"htseq_count\", rule_name: \"htseq_count\",\n    params: [\n        { input_name: bam, origin_command: hisat2_SE, origin_name: bam, origin_step: mapping},\n        { input_name: gff_file, origin_command: raw_gff3, origin_name: gff3, origin_step: input},\n    ]\n},\n{ step_name: \"differential_expression\", tool_name: \"deseq2\", rule_name: \"deseq2\",\n    params: [\n        { input_name: counts, origin_command: htseq_count, origin_name: stats, origin_step: quantification},\n        { input_name: popmap_file, origin_command: raw_popmap, origin_name: popmap, origin_step: input},\n    ]\n},\n],\nsteps: [\n    { title: \"quality\", name: \"quality\", tools: [trimmomatic], default: \"trimmomatic\" },\n    { title: \"quality_2\", name: \"quality_2\", tools: [fastqc], default: \"fastqc\" },\n    { title: \"mapping\", name: \"mapping\", tools: [hisat2], default: \"hisat2\" },\n    { title: \"quantification\", name: \"quantification\", tools: [htseq_count], default: \"htseq_count\" },\n    { title: \"differential_expression\", name: \"differential_expression\", tools: [deseq2], default: \"deseq2\" },\n],\ninput: [\"raw_reads\",\"raw_hisat2_index\",\"raw_gff3\",\"raw_popmap\",],\nparams_equals: [\n\n]\n}\n"
    }
]