changeset 7:3f7b0788a1c4 draft

Uploaded
author mcharles
date Tue, 07 Oct 2014 10:34:34 -0400
parents 1776b8ddd87e
children d857538d9fea
files rapsodyn/Galaxy-Workflow-rapsosnp_v1.17-2x.ga rapsodyn/Galaxy-Workflow-rapsosnp_v1.17-4x.ga rapsodyn/Galaxy-Workflow-rapsosnp_v1.17.ga rapsodyn/Galaxy-Workflow-rapsosnp_v1.20_-_10x_-_sam.ga rapsodyn/Galaxy-Workflow-rapsosnp_v1.20_-_1x_-_sam.ga rapsodyn/MergeFile2x.pl rapsodyn/MergeFile2x.xml rapsodyn/MergeFile4x.pl rapsodyn/MergeFile4x.xml rapsodyn/MergeMultiFile.pl rapsodyn/MergeMultiFile.xml rapsodyn/MergeSamFiles.pl rapsodyn/MergeSamFiles.xml rapsodyn/ParseBlastForUniqueMatch.pl rapsodyn/ParseBlastForUniqueMatch.xml rapsodyn/PileupVariant.pl rapsodyn/PileupVariant.xml rapsodyn/PrepareFastqLight.pl rapsodyn/PrepareFastqLight.pl~ rapsodyn/PrepareFastqLight.xml rapsodyn/PrepareFastqLight.xml~ rapsodyn/SplitFile10x.pl rapsodyn/SplitFile10x.xml rapsodyn/SplitFile2x.pl rapsodyn/SplitFile2x.xml rapsodyn/extractseq.pl rapsodyn/extractseq.xml rapsodyn/fastaGroomerForMakeBlastdb.pl rapsodyn/fastaGroomerForMakeBlastdb.xml rapsodyn/filtersam_mapped_and_unique.pl rapsodyn/filtersam_mapped_and_unique.xml rapsodyn/listfiltering.pl rapsodyn/listfiltering.xml rapsodyn/mpileupfilterandstat.pl rapsodyn/mpileupfilterandstat.xml rapsodyn/rapsosnp_stats.pl rapsodyn/rapsosnp_stats.xml rapsodyn/rapsosnp_stats2x.pl rapsodyn/rapsosnp_stats2x.xml rapsodyn/rapsosnp_stats4x.pl rapsodyn/rapsosnp_stats4x.xml
diffstat 41 files changed, 4641 insertions(+), 4641 deletions(-) [+]
line wrap: on
line diff
--- a/rapsodyn/Galaxy-Workflow-rapsosnp_v1.17-2x.ga	Mon Sep 29 03:02:16 2014 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1014 +0,0 @@
-{
-    "a_galaxy_workflow": "true", 
-    "annotation": "", 
-    "format-version": "0.1", 
-    "name": "rapsosnp v1.17-2x", 
-    "steps": {
-        "0": {
-            "annotation": "", 
-            "id": 0, 
-            "input_connections": {}, 
-            "inputs": [
-                {
-                    "description": "", 
-                    "name": "READ1"
-                }
-            ], 
-            "name": "Input dataset", 
-            "outputs": [], 
-            "position": {
-                "left": 200, 
-                "top": 814
-            }, 
-            "tool_errors": null, 
-            "tool_id": null, 
-            "tool_state": "{\"name\": \"READ1\"}", 
-            "tool_version": null, 
-            "type": "data_input", 
-            "user_outputs": []
-        }, 
-        "1": {
-            "annotation": "", 
-            "id": 1, 
-            "input_connections": {}, 
-            "inputs": [
-                {
-                    "description": "", 
-                    "name": "READ2"
-                }
-            ], 
-            "name": "Input dataset", 
-            "outputs": [], 
-            "position": {
-                "left": 200, 
-                "top": 899
-            }, 
-            "tool_errors": null, 
-            "tool_id": null, 
-            "tool_state": "{\"name\": \"READ2\"}", 
-            "tool_version": null, 
-            "type": "data_input", 
-            "user_outputs": []
-        }, 
-        "2": {
-            "annotation": "", 
-            "id": 2, 
-            "input_connections": {}, 
-            "inputs": [
-                {
-                    "description": "", 
-                    "name": "ASSEMBLY"
-                }
-            ], 
-            "name": "Input dataset", 
-            "outputs": [], 
-            "position": {
-                "left": 2916, 
-                "top": 906
-            }, 
-            "tool_errors": null, 
-            "tool_id": null, 
-            "tool_state": "{\"name\": \"ASSEMBLY\"}", 
-            "tool_version": null, 
-            "type": "data_input", 
-            "user_outputs": []
-        }, 
-        "3": {
-            "annotation": "", 
-            "id": 3, 
-            "input_connections": {}, 
-            "inputs": [
-                {
-                    "description": "", 
-                    "name": "DUBIOUS"
-                }
-            ], 
-            "name": "Input dataset", 
-            "outputs": [], 
-            "position": {
-                "left": 2679, 
-                "top": 1493
-            }, 
-            "tool_errors": null, 
-            "tool_id": null, 
-            "tool_state": "{\"name\": \"DUBIOUS\"}", 
-            "tool_version": null, 
-            "type": "data_input", 
-            "user_outputs": []
-        }, 
-        "4": {
-            "annotation": "", 
-            "id": 4, 
-            "input_connections": {
-                "input_file": {
-                    "id": 0, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "SplitFile2x", 
-            "outputs": [
-                {
-                    "name": "output_file1", 
-                    "type": "txt"
-                }, 
-                {
-                    "name": "output_file2", 
-                    "type": "txt"
-                }
-            ], 
-            "position": {
-                "left": 475, 
-                "top": 1049.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "SplitFile2x", 
-            "tool_state": "{\"out_format\": \"\\\"fastq\\\"\", \"line_number\": \"\\\"4\\\"\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_file\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "5": {
-            "annotation": "", 
-            "id": 5, 
-            "input_connections": {
-                "input_file": {
-                    "id": 1, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "SplitFile2x", 
-            "outputs": [
-                {
-                    "name": "output_file1", 
-                    "type": "txt"
-                }, 
-                {
-                    "name": "output_file2", 
-                    "type": "txt"
-                }
-            ], 
-            "position": {
-                "left": 476, 
-                "top": 1240.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "SplitFile2x", 
-            "tool_state": "{\"out_format\": \"\\\"fastq\\\"\", \"line_number\": \"\\\"4\\\"\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_file\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "6": {
-            "annotation": "", 
-            "id": 6, 
-            "input_connections": {
-                "input_fasta": {
-                    "id": 2, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "fastaGroomerForMakeBlastdb", 
-            "outputs": [
-                {
-                    "name": "output_fasta", 
-                    "type": "fasta"
-                }
-            ], 
-            "position": {
-                "left": 3163, 
-                "top": 638
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "fastaGroomerForMakeBlastdb", 
-            "tool_state": "{\"input_fasta\": \"null\", \"__rerun_remap_job_id__\": null, \"__page__\": 0}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "7": {
-            "annotation": "", 
-            "id": 7, 
-            "input_connections": {
-                "input_read1_file": {
-                    "id": 4, 
-                    "output_name": "output_file1"
-                }, 
-                "input_read2_file": {
-                    "id": 5, 
-                    "output_name": "output_file1"
-                }
-            }, 
-            "inputs": [], 
-            "name": "PrepareFastqLight", 
-            "outputs": [
-                {
-                    "name": "output_read1_file", 
-                    "type": "fastqsanger"
-                }, 
-                {
-                    "name": "output_read2_file", 
-                    "type": "fastqsanger"
-                }
-            ], 
-            "position": {
-                "left": 791, 
-                "top": 1053
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "PrepareFastqLight", 
-            "tool_state": "{\"__page__\": 0, \"quality_type\": \"\\\"illumina\\\"\", \"min_length\": \"\\\"30\\\"\", \"__rerun_remap_job_id__\": null, \"min_quality\": \"\\\"30\\\"\", \"input_read1_file\": \"null\", \"input_read2_file\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "8": {
-            "annotation": "", 
-            "id": 8, 
-            "input_connections": {
-                "input_read1_file": {
-                    "id": 4, 
-                    "output_name": "output_file2"
-                }, 
-                "input_read2_file": {
-                    "id": 5, 
-                    "output_name": "output_file2"
-                }
-            }, 
-            "inputs": [], 
-            "name": "PrepareFastqLight", 
-            "outputs": [
-                {
-                    "name": "output_read1_file", 
-                    "type": "fastqsanger"
-                }, 
-                {
-                    "name": "output_read2_file", 
-                    "type": "fastqsanger"
-                }
-            ], 
-            "position": {
-                "left": 792, 
-                "top": 1244.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "PrepareFastqLight", 
-            "tool_state": "{\"__page__\": 0, \"quality_type\": \"\\\"illumina\\\"\", \"min_length\": \"\\\"30\\\"\", \"__rerun_remap_job_id__\": null, \"min_quality\": \"\\\"30\\\"\", \"input_read1_file\": \"null\", \"input_read2_file\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "9": {
-            "annotation": "", 
-            "id": 9, 
-            "input_connections": {
-                "input_file": {
-                    "id": 6, 
-                    "output_name": "output_fasta"
-                }
-            }, 
-            "inputs": [], 
-            "name": "NCBI BLAST+ makeblastdb", 
-            "outputs": [
-                {
-                    "name": "outfile", 
-                    "type": "data"
-                }
-            ], 
-            "position": {
-                "left": 3561, 
-                "top": 595
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/ncbi_blast_plus/ncbi_makeblastdb/0.1.00", 
-            "tool_state": "{\"__page__\": 0, \"mask_data_file\": \"null\", \"input_file\": \"null\", \"dbtype\": \"\\\"nucl\\\"\", \"__rerun_remap_job_id__\": null, \"hash_index\": \"\\\"True\\\"\", \"tax\": \"{\\\"taxselect\\\": \\\"\\\", \\\"__current_case__\\\": 0}\", \"title\": \"\\\"\\\"\", \"parse_seqids\": \"\\\"False\\\"\"}", 
-            "tool_version": "0.1.00", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "10": {
-            "annotation": "", 
-            "id": 10, 
-            "input_connections": {
-                "genomeSource|ownFile": {
-                    "id": 2, 
-                    "output_name": "output"
-                }, 
-                "paired|input1": {
-                    "id": 7, 
-                    "output_name": "output_read1_file"
-                }, 
-                "paired|input2": {
-                    "id": 7, 
-                    "output_name": "output_read2_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "Map with BWA for Illumina", 
-            "outputs": [
-                {
-                    "name": "output", 
-                    "type": "sam"
-                }
-            ], 
-            "position": {
-                "left": 1197, 
-                "top": 998
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/bwa_wrappers/bwa_wrapper/1.2.3", 
-            "tool_state": "{\"genomeSource\": \"{\\\"refGenomeSource\\\": \\\"history\\\", \\\"ownFile\\\": null, \\\"__current_case__\\\": 1}\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"paired\": \"{\\\"input2\\\": null, \\\"sPaired\\\": \\\"paired\\\", \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"params\": \"{\\\"__current_case__\\\": 0, \\\"source_select\\\": \\\"pre_set\\\"}\", \"suppressHeader\": \"\\\"False\\\"\"}", 
-            "tool_version": "1.2.3", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "11": {
-            "annotation": "", 
-            "id": 11, 
-            "input_connections": {
-                "genomeSource|ownFile": {
-                    "id": 2, 
-                    "output_name": "output"
-                }, 
-                "paired|input1": {
-                    "id": 8, 
-                    "output_name": "output_read1_file"
-                }, 
-                "paired|input2": {
-                    "id": 8, 
-                    "output_name": "output_read2_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "Map with BWA for Illumina", 
-            "outputs": [
-                {
-                    "name": "output", 
-                    "type": "sam"
-                }
-            ], 
-            "position": {
-                "left": 1197.5, 
-                "top": 1226.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/bwa_wrappers/bwa_wrapper/1.2.3", 
-            "tool_state": "{\"genomeSource\": \"{\\\"refGenomeSource\\\": \\\"history\\\", \\\"ownFile\\\": null, \\\"__current_case__\\\": 1}\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"paired\": \"{\\\"input2\\\": null, \\\"sPaired\\\": \\\"paired\\\", \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"params\": \"{\\\"__current_case__\\\": 0, \\\"source_select\\\": \\\"pre_set\\\"}\", \"suppressHeader\": \"\\\"False\\\"\"}", 
-            "tool_version": "1.2.3", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "12": {
-            "annotation": "", 
-            "id": 12, 
-            "input_connections": {
-                "input_sam_file": {
-                    "id": 10, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "filtersam_mapped_and_unique", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "sam"
-                }
-            ], 
-            "position": {
-                "left": 1571, 
-                "top": 1033
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "filtersam_mapped_and_unique", 
-            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_sam_file\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "13": {
-            "annotation": "", 
-            "id": 13, 
-            "input_connections": {
-                "input_sam_file": {
-                    "id": 11, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "filtersam_mapped_and_unique", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "sam"
-                }
-            ], 
-            "position": {
-                "left": 1549, 
-                "top": 1215.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "filtersam_mapped_and_unique", 
-            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_sam_file\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "14": {
-            "annotation": "", 
-            "id": 14, 
-            "input_connections": {
-                "source|input1": {
-                    "id": 12, 
-                    "output_name": "output_file"
-                }, 
-                "source|ref_file": {
-                    "id": 2, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "SAM-to-BAM", 
-            "outputs": [
-                {
-                    "name": "output1", 
-                    "type": "bam"
-                }
-            ], 
-            "position": {
-                "left": 1920, 
-                "top": 1033
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/sam_to_bam/sam_to_bam/1.1.4", 
-            "tool_state": "{\"source\": \"{\\\"index_source\\\": \\\"history\\\", \\\"ref_file\\\": null, \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"__rerun_remap_job_id__\": null, \"__page__\": 0}", 
-            "tool_version": "1.1.4", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "15": {
-            "annotation": "", 
-            "id": 15, 
-            "input_connections": {
-                "source|input1": {
-                    "id": 13, 
-                    "output_name": "output_file"
-                }, 
-                "source|ref_file": {
-                    "id": 2, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "SAM-to-BAM", 
-            "outputs": [
-                {
-                    "name": "output1", 
-                    "type": "bam"
-                }
-            ], 
-            "position": {
-                "left": 1919, 
-                "top": 1214.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/sam_to_bam/sam_to_bam/1.1.4", 
-            "tool_state": "{\"source\": \"{\\\"index_source\\\": \\\"history\\\", \\\"ref_file\\\": null, \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"__rerun_remap_job_id__\": null, \"__page__\": 0}", 
-            "tool_version": "1.1.4", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "16": {
-            "annotation": "", 
-            "id": 16, 
-            "input_connections": {
-                "input1": {
-                    "id": 14, 
-                    "output_name": "output1"
-                }, 
-                "input2": {
-                    "id": 15, 
-                    "output_name": "output1"
-                }
-            }, 
-            "inputs": [], 
-            "name": "Merge BAM Files", 
-            "outputs": [
-                {
-                    "name": "output1", 
-                    "type": "bam"
-                }, 
-                {
-                    "name": "outlog", 
-                    "type": "txt"
-                }
-            ], 
-            "position": {
-                "left": 2163, 
-                "top": 1158.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/sam_merge/sam_merge2/1.1.2", 
-            "tool_state": "{\"input2\": \"null\", \"inputs\": \"[]\", \"input1\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"title\": \"\\\"None\\\"\", \"mergeSD\": \"\\\"True\\\"\"}", 
-            "tool_version": "1.1.2", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "17": {
-            "annotation": "", 
-            "id": 17, 
-            "input_connections": {
-                "reference_source|input_bams_0|input_bam": {
-                    "id": 16, 
-                    "output_name": "output1"
-                }, 
-                "reference_source|ref_file": {
-                    "id": 2, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "MPileup", 
-            "outputs": [
-                {
-                    "name": "output_mpileup", 
-                    "type": "pileup"
-                }, 
-                {
-                    "name": "output_log", 
-                    "type": "txt"
-                }
-            ], 
-            "position": {
-                "left": 2374, 
-                "top": 1170
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/samtools_mpileup/samtools_mpileup/0.0.3", 
-            "tool_state": "{\"__page__\": 0, \"advanced_options\": \"{\\\"max_reads_per_bam\\\": \\\"250\\\", \\\"advanced_options_selector\\\": \\\"advanced\\\", \\\"extended_BAQ_computation\\\": \\\"False\\\", \\\"region_string\\\": \\\"\\\", \\\"output_per_sample_strand_bias_p_value\\\": \\\"False\\\", \\\"minimum_base_quality\\\": \\\"30\\\", \\\"disable_probabilistic_realignment\\\": \\\"False\\\", \\\"skip_anomalous_read_pairs\\\": \\\"False\\\", \\\"minimum_mapping_quality\\\": \\\"0\\\", \\\"output_per_sample_read_depth\\\": \\\"False\\\", \\\"__current_case__\\\": 0, \\\"position_list\\\": null, \\\"coefficient_for_downgrading\\\": \\\"0\\\"}\", \"__rerun_remap_job_id__\": null, \"genotype_likelihood_computation_type\": \"{\\\"genotype_likelihood_computation_type_selector\\\": \\\"do_not_perform_genotype_likelihood_computation\\\", \\\"__current_case__\\\": 1}\", \"reference_source\": \"{\\\"ref_file\\\": null, \\\"reference_source_selector\\\": \\\"history\\\", \\\"input_bams\\\": [{\\\"__index__\\\": 0, \\\"input_bam\\\": null}], \\\"__current_case__\\\": 1}\"}", 
-            "tool_version": "0.0.3", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "18": {
-            "annotation": "", 
-            "id": 18, 
-            "input_connections": {
-                "input_file": {
-                    "id": 17, 
-                    "output_name": "output_mpileup"
-                }
-            }, 
-            "inputs": [], 
-            "name": "PileupVariant", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "pileup"
-                }
-            ], 
-            "position": {
-                "left": 2545, 
-                "top": 998
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "PileupVariant", 
-            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_file\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "19": {
-            "annotation": "", 
-            "id": 19, 
-            "input_connections": {
-                "input_listA": {
-                    "id": 18, 
-                    "output_name": "output_file"
-                }, 
-                "input_listB": {
-                    "id": 3, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "listfiltering", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "pileup"
-                }
-            ], 
-            "position": {
-                "left": 2939, 
-                "top": 1078
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "listfiltering", 
-            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_listB\": \"null\", \"nb_col\": \"\\\"2\\\"\", \"input_listA\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "20": {
-            "annotation": "", 
-            "id": 20, 
-            "input_connections": {
-                "input_file": {
-                    "id": 19, 
-                    "output_name": "output_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "SplitFile2x", 
-            "outputs": [
-                {
-                    "name": "output_file1", 
-                    "type": "txt"
-                }, 
-                {
-                    "name": "output_file2", 
-                    "type": "txt"
-                }
-            ], 
-            "position": {
-                "left": 3292, 
-                "top": 1066.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "SplitFile2x", 
-            "tool_state": "{\"out_format\": \"\\\"pileup\\\"\", \"line_number\": \"\\\"4\\\"\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_file\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "21": {
-            "annotation": "", 
-            "id": 21, 
-            "input_connections": {
-                "input_assembly_file": {
-                    "id": 2, 
-                    "output_name": "output"
-                }, 
-                "input_variant_file": {
-                    "id": 20, 
-                    "output_name": "output_file1"
-                }
-            }, 
-            "inputs": [], 
-            "name": "extractseq", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "fasta"
-                }
-            ], 
-            "position": {
-                "left": 3662, 
-                "top": 979
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "extractseq", 
-            "tool_state": "{\"__page__\": 0, \"input_variant_file\": \"null\", \"__rerun_remap_job_id__\": null, \"window_length\": \"\\\"50\\\"\", \"input_assembly_file\": \"null\"}", 
-            "tool_version": "0.03", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "22": {
-            "annotation": "", 
-            "id": 22, 
-            "input_connections": {
-                "input_assembly_file": {
-                    "id": 2, 
-                    "output_name": "output"
-                }, 
-                "input_variant_file": {
-                    "id": 20, 
-                    "output_name": "output_file2"
-                }
-            }, 
-            "inputs": [], 
-            "name": "extractseq", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "fasta"
-                }
-            ], 
-            "position": {
-                "left": 3656, 
-                "top": 1161.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "extractseq", 
-            "tool_state": "{\"__page__\": 0, \"input_variant_file\": \"null\", \"__rerun_remap_job_id__\": null, \"window_length\": \"\\\"50\\\"\", \"input_assembly_file\": \"null\"}", 
-            "tool_version": "0.03", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "23": {
-            "annotation": "", 
-            "id": 23, 
-            "input_connections": {
-                "db_opts|histdb": {
-                    "id": 9, 
-                    "output_name": "outfile"
-                }, 
-                "query": {
-                    "id": 21, 
-                    "output_name": "output_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "NCBI BLAST+ blastn", 
-            "outputs": [
-                {
-                    "name": "output1", 
-                    "type": "tabular"
-                }
-            ], 
-            "position": {
-                "left": 4008, 
-                "top": 956
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/ncbi_blast_plus/ncbi_blastn_wrapper/0.1.00", 
-            "tool_state": "{\"evalue_cutoff\": \"\\\"0.001\\\"\", \"__page__\": 0, \"adv_opts\": \"{\\\"identity_cutoff\\\": \\\"0.0\\\", \\\"adv_opts_selector\\\": \\\"advanced\\\", \\\"ungapped\\\": \\\"False\\\", \\\"filter_query\\\": \\\"False\\\", \\\"word_size\\\": \\\"0\\\", \\\"__current_case__\\\": 1, \\\"parse_deflines\\\": \\\"False\\\", \\\"strand\\\": \\\"-strand both\\\", \\\"max_hits\\\": \\\"8\\\"}\", \"__rerun_remap_job_id__\": null, \"blast_type\": \"\\\"megablast\\\"\", \"db_opts\": \"{\\\"db_opts_selector\\\": \\\"histdb\\\", \\\"subject\\\": \\\"\\\", \\\"histdb\\\": null, \\\"__current_case__\\\": 1, \\\"database\\\": \\\"\\\"}\", \"output\": \"{\\\"out_format\\\": \\\"cols\\\", \\\"std_cols\\\": [\\\"qseqid\\\", \\\"qstart\\\", \\\"qend\\\"], \\\"ids_cols\\\": null, \\\"tax_cols\\\": null, \\\"__current_case__\\\": 2, \\\"misc_cols\\\": null, \\\"ext_cols\\\": [\\\"qseq\\\", \\\"sseq\\\"]}\", \"query\": \"null\"}", 
-            "tool_version": "0.1.00", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "24": {
-            "annotation": "", 
-            "id": 24, 
-            "input_connections": {
-                "db_opts|histdb": {
-                    "id": 9, 
-                    "output_name": "outfile"
-                }, 
-                "query": {
-                    "id": 22, 
-                    "output_name": "output_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "NCBI BLAST+ blastn", 
-            "outputs": [
-                {
-                    "name": "output1", 
-                    "type": "tabular"
-                }
-            ], 
-            "position": {
-                "left": 4011, 
-                "top": 1117.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/ncbi_blast_plus/ncbi_blastn_wrapper/0.1.00", 
-            "tool_state": "{\"evalue_cutoff\": \"\\\"0.001\\\"\", \"__page__\": 0, \"adv_opts\": \"{\\\"identity_cutoff\\\": \\\"0.0\\\", \\\"adv_opts_selector\\\": \\\"advanced\\\", \\\"ungapped\\\": \\\"False\\\", \\\"filter_query\\\": \\\"False\\\", \\\"word_size\\\": \\\"0\\\", \\\"__current_case__\\\": 1, \\\"parse_deflines\\\": \\\"False\\\", \\\"strand\\\": \\\"-strand both\\\", \\\"max_hits\\\": \\\"8\\\"}\", \"__rerun_remap_job_id__\": null, \"blast_type\": \"\\\"megablast\\\"\", \"db_opts\": \"{\\\"db_opts_selector\\\": \\\"histdb\\\", \\\"subject\\\": \\\"\\\", \\\"histdb\\\": null, \\\"__current_case__\\\": 1, \\\"database\\\": \\\"\\\"}\", \"output\": \"{\\\"out_format\\\": \\\"cols\\\", \\\"std_cols\\\": [\\\"qseqid\\\", \\\"qstart\\\", \\\"qend\\\"], \\\"ids_cols\\\": null, \\\"tax_cols\\\": null, \\\"__current_case__\\\": 2, \\\"misc_cols\\\": null, \\\"ext_cols\\\": [\\\"qseq\\\", \\\"sseq\\\"]}\", \"query\": \"null\"}", 
-            "tool_version": "0.1.00", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "25": {
-            "annotation": "", 
-            "id": 25, 
-            "input_connections": {
-                "input_blast_file": {
-                    "id": 23, 
-                    "output_name": "output1"
-                }, 
-                "input_variant_file": {
-                    "id": 20, 
-                    "output_name": "output_file1"
-                }
-            }, 
-            "inputs": [], 
-            "name": "ParseBlastForUniqueMatch", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "pileup"
-                }
-            ], 
-            "position": {
-                "left": 4304, 
-                "top": 824
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "ParseBlastForUniqueMatch", 
-            "tool_state": "{\"input_variant_file\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_blast_file\": \"null\", \"window_length\": \"\\\"50\\\"\", \"nb_mismatch_max\": \"\\\"3\\\"\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "26": {
-            "annotation": "", 
-            "id": 26, 
-            "input_connections": {
-                "input_blast_file": {
-                    "id": 24, 
-                    "output_name": "output1"
-                }, 
-                "input_variant_file": {
-                    "id": 20, 
-                    "output_name": "output_file2"
-                }
-            }, 
-            "inputs": [], 
-            "name": "ParseBlastForUniqueMatch", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "pileup"
-                }
-            ], 
-            "position": {
-                "left": 4303.5, 
-                "top": 1037.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "ParseBlastForUniqueMatch", 
-            "tool_state": "{\"input_variant_file\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_blast_file\": \"null\", \"window_length\": \"\\\"50\\\"\", \"nb_mismatch_max\": \"\\\"3\\\"\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "27": {
-            "annotation": "", 
-            "id": 27, 
-            "input_connections": {
-                "input_file1": {
-                    "id": 25, 
-                    "output_name": "output_file"
-                }, 
-                "input_file2": {
-                    "id": 26, 
-                    "output_name": "output_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "MergeFile2x", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "txt"
-                }
-            ], 
-            "position": {
-                "left": 4707, 
-                "top": 957.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "MergeFile2x", 
-            "tool_state": "{\"out_format\": \"\\\"pileup\\\"\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_file1\": \"null\", \"input_file2\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "28": {
-            "annotation": "", 
-            "id": 28, 
-            "input_connections": {
-                "input_file": {
-                    "id": 27, 
-                    "output_name": "output_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "mpileupfilterandstat", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "pileup"
-                }, 
-                {
-                    "name": "log_file", 
-                    "type": "txt"
-                }
-            ], 
-            "position": {
-                "left": 5067, 
-                "top": 1011.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "mpileupfilterandstat", 
-            "tool_state": "{\"__page__\": 0, \"stat\": \"{\\\"stat_dist_step\\\": \\\"50\\\", \\\"stat_min_depth_step\\\": \\\"2\\\", \\\"stat_max_depth_max\\\": \\\"200\\\", \\\"stat_min_depth_max\\\": \\\"10\\\", \\\"stat_freq_max\\\": \\\"1.0\\\", \\\"stat_min_depth_min\\\": \\\"2\\\", \\\"stat_max_depth_min\\\": \\\"100\\\", \\\"do_stat\\\": \\\"YES\\\", \\\"stat_dist_min\\\": \\\"0\\\", \\\"__current_case__\\\": 0, \\\"stat_max_depth_step\\\": \\\"100\\\", \\\"stat_dist_max\\\": \\\"50\\\", \\\"stat_freq_step\\\": \\\"0.1\\\", \\\"stat_freq_min\\\": \\\"0.8\\\"}\", \"input_file\": \"null\", \"min_frequency\": \"\\\"0.8\\\"\", \"min_depth\": \"\\\"2\\\"\", \"__rerun_remap_job_id__\": null, \"min_forward_and_reverse\": \"\\\"0\\\"\", \"max_depth\": \"\\\"100\\\"\", \"min_distance\": \"\\\"0\\\"\"}", 
-            "tool_version": "0.08", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "29": {
-            "annotation": "", 
-            "id": 29, 
-            "input_connections": {
-                "input_blast_filtered_part1_file": {
-                    "id": 25, 
-                    "output_name": "output_file"
-                }, 
-                "input_blast_filtered_part2_file": {
-                    "id": 26, 
-                    "output_name": "output_file"
-                }, 
-                "input_list_filtered_file": {
-                    "id": 19, 
-                    "output_name": "output_file"
-                }, 
-                "input_mpileup_variant_file": {
-                    "id": 18, 
-                    "output_name": "output_file"
-                }, 
-                "input_read1_part1_trimmed_file": {
-                    "id": 7, 
-                    "output_name": "output_read1_file"
-                }, 
-                "input_read1_part2_trimmed_file": {
-                    "id": 8, 
-                    "output_name": "output_read1_file"
-                }, 
-                "input_read1_row_file": {
-                    "id": 0, 
-                    "output_name": "output"
-                }, 
-                "input_read2_part1_trimmed_file": {
-                    "id": 7, 
-                    "output_name": "output_read2_file"
-                }, 
-                "input_read2_part2_trimmed_file": {
-                    "id": 8, 
-                    "output_name": "output_read2_file"
-                }, 
-                "input_read2_row_file": {
-                    "id": 1, 
-                    "output_name": "output"
-                }, 
-                "input_sam_filtered_part1_file": {
-                    "id": 12, 
-                    "output_name": "output_file"
-                }, 
-                "input_sam_filtered_part2_file": {
-                    "id": 13, 
-                    "output_name": "output_file"
-                }, 
-                "input_sam_row_part1_file": {
-                    "id": 10, 
-                    "output_name": "output"
-                }, 
-                "input_sam_row_part2_file": {
-                    "id": 11, 
-                    "output_name": "output"
-                }, 
-                "input_snp_selected_file": {
-                    "id": 28, 
-                    "output_name": "output_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "rapsosnp_stats2x", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "txt"
-                }
-            ], 
-            "position": {
-                "left": 2133.5, 
-                "top": 165.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "rapsosnp_stats2x", 
-            "tool_state": "{\"input_blast_filtered_part1_file\": \"null\", \"input_blast_filtered_part2_file\": \"null\", \"input_sam_row_part2_file\": \"null\", \"input_read1_part1_trimmed_file\": \"null\", \"__page__\": 0, \"input_list_filtered_file\": \"null\", \"__rerun_remap_job_id__\": null, \"input_read2_row_file\": \"null\", \"input_mpileup_variant_file\": \"null\", \"input_read2_part1_trimmed_file\": \"null\", \"input_read1_row_file\": \"null\", \"input_sam_row_part1_file\": \"null\", \"input_sam_filtered_part2_file\": \"null\", \"input_read2_part2_trimmed_file\": \"null\", \"input_snp_selected_file\": \"null\", \"input_read1_part2_trimmed_file\": \"null\", \"input_sam_filtered_part1_file\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }
-    }
-}
\ No newline at end of file
--- a/rapsodyn/Galaxy-Workflow-rapsosnp_v1.17-4x.ga	Mon Sep 29 03:02:16 2014 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1564 +0,0 @@
-{
-    "a_galaxy_workflow": "true", 
-    "annotation": "", 
-    "format-version": "0.1", 
-    "name": "rapsosnp v1.17-4x", 
-    "steps": {
-        "0": {
-            "annotation": "", 
-            "id": 0, 
-            "input_connections": {}, 
-            "inputs": [
-                {
-                    "description": "", 
-                    "name": "READ1"
-                }
-            ], 
-            "name": "Input dataset", 
-            "outputs": [], 
-            "position": {
-                "left": 200, 
-                "top": 1335.5
-            }, 
-            "tool_errors": null, 
-            "tool_id": null, 
-            "tool_state": "{\"name\": \"READ1\"}", 
-            "tool_version": null, 
-            "type": "data_input", 
-            "user_outputs": []
-        }, 
-        "1": {
-            "annotation": "", 
-            "id": 1, 
-            "input_connections": {}, 
-            "inputs": [
-                {
-                    "description": "", 
-                    "name": "READ2"
-                }
-            ], 
-            "name": "Input dataset", 
-            "outputs": [], 
-            "position": {
-                "left": 200, 
-                "top": 1420.5
-            }, 
-            "tool_errors": null, 
-            "tool_id": null, 
-            "tool_state": "{\"name\": \"READ2\"}", 
-            "tool_version": null, 
-            "type": "data_input", 
-            "user_outputs": []
-        }, 
-        "2": {
-            "annotation": "", 
-            "id": 2, 
-            "input_connections": {}, 
-            "inputs": [
-                {
-                    "description": "", 
-                    "name": "ASSEMBLY"
-                }
-            ], 
-            "name": "Input dataset", 
-            "outputs": [], 
-            "position": {
-                "left": 3115, 
-                "top": 1361.5
-            }, 
-            "tool_errors": null, 
-            "tool_id": null, 
-            "tool_state": "{\"name\": \"ASSEMBLY\"}", 
-            "tool_version": null, 
-            "type": "data_input", 
-            "user_outputs": []
-        }, 
-        "3": {
-            "annotation": "", 
-            "id": 3, 
-            "input_connections": {}, 
-            "inputs": [
-                {
-                    "description": "", 
-                    "name": "DUBIOUS"
-                }
-            ], 
-            "name": "Input dataset", 
-            "outputs": [], 
-            "position": {
-                "left": 2679, 
-                "top": 2014.5
-            }, 
-            "tool_errors": null, 
-            "tool_id": null, 
-            "tool_state": "{\"name\": \"DUBIOUS\"}", 
-            "tool_version": null, 
-            "type": "data_input", 
-            "user_outputs": []
-        }, 
-        "4": {
-            "annotation": "", 
-            "id": 4, 
-            "input_connections": {
-                "input_file": {
-                    "id": 0, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "SplitFile4x", 
-            "outputs": [
-                {
-                    "name": "output_file1", 
-                    "type": "txt"
-                }, 
-                {
-                    "name": "output_file2", 
-                    "type": "txt"
-                }, 
-                {
-                    "name": "output_file3", 
-                    "type": "txt"
-                }, 
-                {
-                    "name": "output_file4", 
-                    "type": "txt"
-                }
-            ], 
-            "position": {
-                "left": 487, 
-                "top": 1483
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "SplitFile4x", 
-            "tool_state": "{\"out_format\": \"\\\"fastq\\\"\", \"line_number\": \"\\\"4\\\"\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_file\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "5": {
-            "annotation": "", 
-            "id": 5, 
-            "input_connections": {
-                "input_file": {
-                    "id": 1, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "SplitFile4x", 
-            "outputs": [
-                {
-                    "name": "output_file1", 
-                    "type": "txt"
-                }, 
-                {
-                    "name": "output_file2", 
-                    "type": "txt"
-                }, 
-                {
-                    "name": "output_file3", 
-                    "type": "txt"
-                }, 
-                {
-                    "name": "output_file4", 
-                    "type": "txt"
-                }
-            ], 
-            "position": {
-                "left": 486, 
-                "top": 1767
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "SplitFile4x", 
-            "tool_state": "{\"out_format\": \"\\\"fastq\\\"\", \"line_number\": \"\\\"4\\\"\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_file\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "6": {
-            "annotation": "", 
-            "id": 6, 
-            "input_connections": {
-                "input_fasta": {
-                    "id": 2, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "fastaGroomerForMakeBlastdb", 
-            "outputs": [
-                {
-                    "name": "output_fasta", 
-                    "type": "fasta"
-                }
-            ], 
-            "position": {
-                "left": 3163, 
-                "top": 1159.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "fastaGroomerForMakeBlastdb", 
-            "tool_state": "{\"input_fasta\": \"null\", \"__rerun_remap_job_id__\": null, \"__page__\": 0}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "7": {
-            "annotation": "", 
-            "id": 7, 
-            "input_connections": {
-                "input_read1_file": {
-                    "id": 4, 
-                    "output_name": "output_file1"
-                }, 
-                "input_read2_file": {
-                    "id": 5, 
-                    "output_name": "output_file1"
-                }
-            }, 
-            "inputs": [], 
-            "name": "PrepareFastqLight", 
-            "outputs": [
-                {
-                    "name": "output_read1_file", 
-                    "type": "fastqsanger"
-                }, 
-                {
-                    "name": "output_read2_file", 
-                    "type": "fastqsanger"
-                }
-            ], 
-            "position": {
-                "left": 791, 
-                "top": 1329.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "PrepareFastqLight", 
-            "tool_state": "{\"__page__\": 0, \"quality_type\": \"\\\"illumina\\\"\", \"min_length\": \"\\\"30\\\"\", \"__rerun_remap_job_id__\": null, \"min_quality\": \"\\\"30\\\"\", \"input_read1_file\": \"null\", \"input_read2_file\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "8": {
-            "annotation": "", 
-            "id": 8, 
-            "input_connections": {
-                "input_read1_file": {
-                    "id": 4, 
-                    "output_name": "output_file2"
-                }, 
-                "input_read2_file": {
-                    "id": 5, 
-                    "output_name": "output_file2"
-                }
-            }, 
-            "inputs": [], 
-            "name": "PrepareFastqLight", 
-            "outputs": [
-                {
-                    "name": "output_read1_file", 
-                    "type": "fastqsanger"
-                }, 
-                {
-                    "name": "output_read2_file", 
-                    "type": "fastqsanger"
-                }
-            ], 
-            "position": {
-                "left": 791, 
-                "top": 1531
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "PrepareFastqLight", 
-            "tool_state": "{\"__page__\": 0, \"quality_type\": \"\\\"illumina\\\"\", \"min_length\": \"\\\"30\\\"\", \"__rerun_remap_job_id__\": null, \"min_quality\": \"\\\"30\\\"\", \"input_read1_file\": \"null\", \"input_read2_file\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "9": {
-            "annotation": "", 
-            "id": 9, 
-            "input_connections": {
-                "input_read1_file": {
-                    "id": 4, 
-                    "output_name": "output_file3"
-                }, 
-                "input_read2_file": {
-                    "id": 5, 
-                    "output_name": "output_file3"
-                }
-            }, 
-            "inputs": [], 
-            "name": "PrepareFastqLight", 
-            "outputs": [
-                {
-                    "name": "output_read1_file", 
-                    "type": "fastqsanger"
-                }, 
-                {
-                    "name": "output_read2_file", 
-                    "type": "fastqsanger"
-                }
-            ], 
-            "position": {
-                "left": 793, 
-                "top": 1729
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "PrepareFastqLight", 
-            "tool_state": "{\"__page__\": 0, \"quality_type\": \"\\\"illumina\\\"\", \"min_length\": \"\\\"30\\\"\", \"__rerun_remap_job_id__\": null, \"min_quality\": \"\\\"30\\\"\", \"input_read1_file\": \"null\", \"input_read2_file\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "10": {
-            "annotation": "", 
-            "id": 10, 
-            "input_connections": {
-                "input_read1_file": {
-                    "id": 4, 
-                    "output_name": "output_file4"
-                }, 
-                "input_read2_file": {
-                    "id": 5, 
-                    "output_name": "output_file4"
-                }
-            }, 
-            "inputs": [], 
-            "name": "PrepareFastqLight", 
-            "outputs": [
-                {
-                    "name": "output_read1_file", 
-                    "type": "fastqsanger"
-                }, 
-                {
-                    "name": "output_read2_file", 
-                    "type": "fastqsanger"
-                }
-            ], 
-            "position": {
-                "left": 795, 
-                "top": 1950
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "PrepareFastqLight", 
-            "tool_state": "{\"__page__\": 0, \"quality_type\": \"\\\"illumina\\\"\", \"min_length\": \"\\\"30\\\"\", \"__rerun_remap_job_id__\": null, \"min_quality\": \"\\\"30\\\"\", \"input_read1_file\": \"null\", \"input_read2_file\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "11": {
-            "annotation": "", 
-            "id": 11, 
-            "input_connections": {
-                "input_file": {
-                    "id": 6, 
-                    "output_name": "output_fasta"
-                }
-            }, 
-            "inputs": [], 
-            "name": "NCBI BLAST+ makeblastdb", 
-            "outputs": [
-                {
-                    "name": "outfile", 
-                    "type": "data"
-                }
-            ], 
-            "position": {
-                "left": 3631, 
-                "top": 1292.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/ncbi_blast_plus/ncbi_makeblastdb/0.1.00", 
-            "tool_state": "{\"__page__\": 0, \"mask_data_file\": \"null\", \"input_file\": \"null\", \"dbtype\": \"\\\"nucl\\\"\", \"__rerun_remap_job_id__\": null, \"hash_index\": \"\\\"True\\\"\", \"tax\": \"{\\\"taxselect\\\": \\\"\\\", \\\"__current_case__\\\": 0}\", \"title\": \"\\\"\\\"\", \"parse_seqids\": \"\\\"False\\\"\"}", 
-            "tool_version": "0.1.00", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "12": {
-            "annotation": "", 
-            "id": 12, 
-            "input_connections": {
-                "genomeSource|ownFile": {
-                    "id": 2, 
-                    "output_name": "output"
-                }, 
-                "paired|input1": {
-                    "id": 7, 
-                    "output_name": "output_read1_file"
-                }, 
-                "paired|input2": {
-                    "id": 7, 
-                    "output_name": "output_read2_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "Map with BWA for Illumina", 
-            "outputs": [
-                {
-                    "name": "output", 
-                    "type": "sam"
-                }
-            ], 
-            "position": {
-                "left": 1210, 
-                "top": 1333.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/bwa_wrappers/bwa_wrapper/1.2.3", 
-            "tool_state": "{\"genomeSource\": \"{\\\"refGenomeSource\\\": \\\"history\\\", \\\"ownFile\\\": null, \\\"__current_case__\\\": 1}\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"paired\": \"{\\\"input2\\\": null, \\\"sPaired\\\": \\\"paired\\\", \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"params\": \"{\\\"__current_case__\\\": 0, \\\"source_select\\\": \\\"pre_set\\\"}\", \"suppressHeader\": \"\\\"False\\\"\"}", 
-            "tool_version": "1.2.3", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "13": {
-            "annotation": "", 
-            "id": 13, 
-            "input_connections": {
-                "genomeSource|ownFile": {
-                    "id": 2, 
-                    "output_name": "output"
-                }, 
-                "paired|input1": {
-                    "id": 8, 
-                    "output_name": "output_read1_file"
-                }, 
-                "paired|input2": {
-                    "id": 8, 
-                    "output_name": "output_read2_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "Map with BWA for Illumina", 
-            "outputs": [
-                {
-                    "name": "output", 
-                    "type": "sam"
-                }
-            ], 
-            "position": {
-                "left": 1212.5, 
-                "top": 1541
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/bwa_wrappers/bwa_wrapper/1.2.3", 
-            "tool_state": "{\"genomeSource\": \"{\\\"refGenomeSource\\\": \\\"history\\\", \\\"ownFile\\\": null, \\\"__current_case__\\\": 1}\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"paired\": \"{\\\"input2\\\": null, \\\"sPaired\\\": \\\"paired\\\", \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"params\": \"{\\\"__current_case__\\\": 0, \\\"source_select\\\": \\\"pre_set\\\"}\", \"suppressHeader\": \"\\\"False\\\"\"}", 
-            "tool_version": "1.2.3", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "14": {
-            "annotation": "", 
-            "id": 14, 
-            "input_connections": {
-                "genomeSource|ownFile": {
-                    "id": 2, 
-                    "output_name": "output"
-                }, 
-                "paired|input1": {
-                    "id": 9, 
-                    "output_name": "output_read1_file"
-                }, 
-                "paired|input2": {
-                    "id": 9, 
-                    "output_name": "output_read2_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "Map with BWA for Illumina", 
-            "outputs": [
-                {
-                    "name": "output", 
-                    "type": "sam"
-                }
-            ], 
-            "position": {
-                "left": 1217.5, 
-                "top": 1732
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/bwa_wrappers/bwa_wrapper/1.2.3", 
-            "tool_state": "{\"genomeSource\": \"{\\\"refGenomeSource\\\": \\\"history\\\", \\\"ownFile\\\": null, \\\"__current_case__\\\": 1}\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"paired\": \"{\\\"input2\\\": null, \\\"sPaired\\\": \\\"paired\\\", \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"params\": \"{\\\"__current_case__\\\": 0, \\\"source_select\\\": \\\"pre_set\\\"}\", \"suppressHeader\": \"\\\"False\\\"\"}", 
-            "tool_version": "1.2.3", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "15": {
-            "annotation": "", 
-            "id": 15, 
-            "input_connections": {
-                "genomeSource|ownFile": {
-                    "id": 2, 
-                    "output_name": "output"
-                }, 
-                "paired|input1": {
-                    "id": 10, 
-                    "output_name": "output_read1_file"
-                }, 
-                "paired|input2": {
-                    "id": 10, 
-                    "output_name": "output_read2_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "Map with BWA for Illumina", 
-            "outputs": [
-                {
-                    "name": "output", 
-                    "type": "sam"
-                }
-            ], 
-            "position": {
-                "left": 1205.5, 
-                "top": 1966
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/bwa_wrappers/bwa_wrapper/1.2.3", 
-            "tool_state": "{\"genomeSource\": \"{\\\"refGenomeSource\\\": \\\"history\\\", \\\"ownFile\\\": null, \\\"__current_case__\\\": 1}\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"paired\": \"{\\\"input2\\\": null, \\\"sPaired\\\": \\\"paired\\\", \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"params\": \"{\\\"__current_case__\\\": 0, \\\"source_select\\\": \\\"pre_set\\\"}\", \"suppressHeader\": \"\\\"False\\\"\"}", 
-            "tool_version": "1.2.3", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "16": {
-            "annotation": "", 
-            "id": 16, 
-            "input_connections": {
-                "input_sam_file": {
-                    "id": 12, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "filtersam_mapped_and_unique", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "sam"
-                }
-            ], 
-            "position": {
-                "left": 1533, 
-                "top": 1423.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "filtersam_mapped_and_unique", 
-            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_sam_file\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "17": {
-            "annotation": "", 
-            "id": 17, 
-            "input_connections": {
-                "input_sam_file": {
-                    "id": 13, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "filtersam_mapped_and_unique", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "sam"
-                }
-            ], 
-            "position": {
-                "left": 1528, 
-                "top": 1632
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "filtersam_mapped_and_unique", 
-            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_sam_file\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "18": {
-            "annotation": "", 
-            "id": 18, 
-            "input_connections": {
-                "input_sam_file": {
-                    "id": 14, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "filtersam_mapped_and_unique", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "sam"
-                }
-            ], 
-            "position": {
-                "left": 1527, 
-                "top": 1805
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "filtersam_mapped_and_unique", 
-            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_sam_file\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "19": {
-            "annotation": "", 
-            "id": 19, 
-            "input_connections": {
-                "input_sam_file": {
-                    "id": 15, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "filtersam_mapped_and_unique", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "sam"
-                }
-            ], 
-            "position": {
-                "left": 1533, 
-                "top": 2001
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "filtersam_mapped_and_unique", 
-            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_sam_file\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "20": {
-            "annotation": "", 
-            "id": 20, 
-            "input_connections": {
-                "source|input1": {
-                    "id": 16, 
-                    "output_name": "output_file"
-                }, 
-                "source|ref_file": {
-                    "id": 2, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "SAM-to-BAM", 
-            "outputs": [
-                {
-                    "name": "output1", 
-                    "type": "bam"
-                }
-            ], 
-            "position": {
-                "left": 1920, 
-                "top": 1554.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/sam_to_bam/sam_to_bam/1.1.4", 
-            "tool_state": "{\"source\": \"{\\\"index_source\\\": \\\"history\\\", \\\"ref_file\\\": null, \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"__rerun_remap_job_id__\": null, \"__page__\": 0}", 
-            "tool_version": "1.1.4", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "21": {
-            "annotation": "", 
-            "id": 21, 
-            "input_connections": {
-                "source|input1": {
-                    "id": 17, 
-                    "output_name": "output_file"
-                }, 
-                "source|ref_file": {
-                    "id": 2, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "SAM-to-BAM", 
-            "outputs": [
-                {
-                    "name": "output1", 
-                    "type": "bam"
-                }
-            ], 
-            "position": {
-                "left": 1919, 
-                "top": 1736
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/sam_to_bam/sam_to_bam/1.1.4", 
-            "tool_state": "{\"source\": \"{\\\"index_source\\\": \\\"history\\\", \\\"ref_file\\\": null, \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"__rerun_remap_job_id__\": null, \"__page__\": 0}", 
-            "tool_version": "1.1.4", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "22": {
-            "annotation": "", 
-            "id": 22, 
-            "input_connections": {
-                "source|input1": {
-                    "id": 18, 
-                    "output_name": "output_file"
-                }, 
-                "source|ref_file": {
-                    "id": 2, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "SAM-to-BAM", 
-            "outputs": [
-                {
-                    "name": "output1", 
-                    "type": "bam"
-                }
-            ], 
-            "position": {
-                "left": 1921, 
-                "top": 1873
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/sam_to_bam/sam_to_bam/1.1.4", 
-            "tool_state": "{\"source\": \"{\\\"index_source\\\": \\\"history\\\", \\\"ref_file\\\": null, \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"__rerun_remap_job_id__\": null, \"__page__\": 0}", 
-            "tool_version": "1.1.4", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "23": {
-            "annotation": "", 
-            "id": 23, 
-            "input_connections": {
-                "source|input1": {
-                    "id": 19, 
-                    "output_name": "output_file"
-                }, 
-                "source|ref_file": {
-                    "id": 2, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "SAM-to-BAM", 
-            "outputs": [
-                {
-                    "name": "output1", 
-                    "type": "bam"
-                }
-            ], 
-            "position": {
-                "left": 1923, 
-                "top": 2007
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/sam_to_bam/sam_to_bam/1.1.4", 
-            "tool_state": "{\"source\": \"{\\\"index_source\\\": \\\"history\\\", \\\"ref_file\\\": null, \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"__rerun_remap_job_id__\": null, \"__page__\": 0}", 
-            "tool_version": "1.1.4", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "24": {
-            "annotation": "", 
-            "id": 24, 
-            "input_connections": {
-                "input1": {
-                    "id": 20, 
-                    "output_name": "output1"
-                }, 
-                "input2": {
-                    "id": 21, 
-                    "output_name": "output1"
-                }, 
-                "inputs_0|input": {
-                    "id": 22, 
-                    "output_name": "output1"
-                }, 
-                "inputs_1|input": {
-                    "id": 23, 
-                    "output_name": "output1"
-                }
-            }, 
-            "inputs": [], 
-            "name": "Merge BAM Files", 
-            "outputs": [
-                {
-                    "name": "output1", 
-                    "type": "bam"
-                }, 
-                {
-                    "name": "outlog", 
-                    "type": "txt"
-                }
-            ], 
-            "position": {
-                "left": 2163, 
-                "top": 1680
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/sam_merge/sam_merge2/1.1.2", 
-            "tool_state": "{\"input2\": \"null\", \"inputs\": \"[{\\\"__index__\\\": 0, \\\"input\\\": null}, {\\\"__index__\\\": 1, \\\"input\\\": null}]\", \"input1\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"title\": \"\\\"None\\\"\", \"mergeSD\": \"\\\"True\\\"\"}", 
-            "tool_version": "1.1.2", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "25": {
-            "annotation": "", 
-            "id": 25, 
-            "input_connections": {
-                "reference_source|input_bams_0|input_bam": {
-                    "id": 24, 
-                    "output_name": "output1"
-                }, 
-                "reference_source|ref_file": {
-                    "id": 2, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "MPileup", 
-            "outputs": [
-                {
-                    "name": "output_mpileup", 
-                    "type": "pileup"
-                }, 
-                {
-                    "name": "output_log", 
-                    "type": "txt"
-                }
-            ], 
-            "position": {
-                "left": 2374, 
-                "top": 1691.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/samtools_mpileup/samtools_mpileup/0.0.3", 
-            "tool_state": "{\"__page__\": 0, \"advanced_options\": \"{\\\"max_reads_per_bam\\\": \\\"250\\\", \\\"advanced_options_selector\\\": \\\"advanced\\\", \\\"extended_BAQ_computation\\\": \\\"False\\\", \\\"region_string\\\": \\\"\\\", \\\"output_per_sample_strand_bias_p_value\\\": \\\"False\\\", \\\"minimum_base_quality\\\": \\\"30\\\", \\\"disable_probabilistic_realignment\\\": \\\"False\\\", \\\"skip_anomalous_read_pairs\\\": \\\"False\\\", \\\"minimum_mapping_quality\\\": \\\"0\\\", \\\"output_per_sample_read_depth\\\": \\\"False\\\", \\\"__current_case__\\\": 0, \\\"position_list\\\": null, \\\"coefficient_for_downgrading\\\": \\\"0\\\"}\", \"__rerun_remap_job_id__\": null, \"genotype_likelihood_computation_type\": \"{\\\"genotype_likelihood_computation_type_selector\\\": \\\"do_not_perform_genotype_likelihood_computation\\\", \\\"__current_case__\\\": 1}\", \"reference_source\": \"{\\\"ref_file\\\": null, \\\"reference_source_selector\\\": \\\"history\\\", \\\"input_bams\\\": [{\\\"__index__\\\": 0, \\\"input_bam\\\": null}], \\\"__current_case__\\\": 1}\"}", 
-            "tool_version": "0.0.3", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "26": {
-            "annotation": "", 
-            "id": 26, 
-            "input_connections": {
-                "input_file": {
-                    "id": 25, 
-                    "output_name": "output_mpileup"
-                }
-            }, 
-            "inputs": [], 
-            "name": "PileupVariant", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "pileup"
-                }
-            ], 
-            "position": {
-                "left": 2545, 
-                "top": 1519.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "PileupVariant", 
-            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_file\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "27": {
-            "annotation": "", 
-            "id": 27, 
-            "input_connections": {
-                "input_listA": {
-                    "id": 26, 
-                    "output_name": "output_file"
-                }, 
-                "input_listB": {
-                    "id": 3, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "listfiltering", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "pileup"
-                }
-            ], 
-            "position": {
-                "left": 2939, 
-                "top": 1599.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "listfiltering", 
-            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_listB\": \"null\", \"nb_col\": \"\\\"2\\\"\", \"input_listA\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "28": {
-            "annotation": "", 
-            "id": 28, 
-            "input_connections": {
-                "input_file": {
-                    "id": 27, 
-                    "output_name": "output_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "SplitFile4x", 
-            "outputs": [
-                {
-                    "name": "output_file1", 
-                    "type": "txt"
-                }, 
-                {
-                    "name": "output_file2", 
-                    "type": "txt"
-                }, 
-                {
-                    "name": "output_file3", 
-                    "type": "txt"
-                }, 
-                {
-                    "name": "output_file4", 
-                    "type": "txt"
-                }
-            ], 
-            "position": {
-                "left": 3267, 
-                "top": 1599
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "SplitFile4x", 
-            "tool_state": "{\"out_format\": \"\\\"pileup\\\"\", \"line_number\": \"\\\"4\\\"\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_file\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "29": {
-            "annotation": "", 
-            "id": 29, 
-            "input_connections": {
-                "input_assembly_file": {
-                    "id": 2, 
-                    "output_name": "output"
-                }, 
-                "input_variant_file": {
-                    "id": 28, 
-                    "output_name": "output_file1"
-                }
-            }, 
-            "inputs": [], 
-            "name": "extractseq", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "fasta"
-                }
-            ], 
-            "position": {
-                "left": 3662, 
-                "top": 1500.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "extractseq", 
-            "tool_state": "{\"__page__\": 0, \"input_variant_file\": \"null\", \"__rerun_remap_job_id__\": null, \"window_length\": \"\\\"50\\\"\", \"input_assembly_file\": \"null\"}", 
-            "tool_version": "0.03", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "30": {
-            "annotation": "", 
-            "id": 30, 
-            "input_connections": {
-                "input_assembly_file": {
-                    "id": 2, 
-                    "output_name": "output"
-                }, 
-                "input_variant_file": {
-                    "id": 28, 
-                    "output_name": "output_file2"
-                }
-            }, 
-            "inputs": [], 
-            "name": "extractseq", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "fasta"
-                }
-            ], 
-            "position": {
-                "left": 3656, 
-                "top": 1683
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "extractseq", 
-            "tool_state": "{\"__page__\": 0, \"input_variant_file\": \"null\", \"__rerun_remap_job_id__\": null, \"window_length\": \"\\\"50\\\"\", \"input_assembly_file\": \"null\"}", 
-            "tool_version": "0.03", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "31": {
-            "annotation": "", 
-            "id": 31, 
-            "input_connections": {
-                "input_assembly_file": {
-                    "id": 2, 
-                    "output_name": "output"
-                }, 
-                "input_variant_file": {
-                    "id": 28, 
-                    "output_name": "output_file3"
-                }
-            }, 
-            "inputs": [], 
-            "name": "extractseq", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "fasta"
-                }
-            ], 
-            "position": {
-                "left": 3662, 
-                "top": 1850
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "extractseq", 
-            "tool_state": "{\"__page__\": 0, \"input_variant_file\": \"null\", \"__rerun_remap_job_id__\": null, \"window_length\": \"\\\"50\\\"\", \"input_assembly_file\": \"null\"}", 
-            "tool_version": "0.03", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "32": {
-            "annotation": "", 
-            "id": 32, 
-            "input_connections": {
-                "input_assembly_file": {
-                    "id": 2, 
-                    "output_name": "output"
-                }, 
-                "input_variant_file": {
-                    "id": 28, 
-                    "output_name": "output_file4"
-                }
-            }, 
-            "inputs": [], 
-            "name": "extractseq", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "fasta"
-                }
-            ], 
-            "position": {
-                "left": 3668, 
-                "top": 2031
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "extractseq", 
-            "tool_state": "{\"__page__\": 0, \"input_variant_file\": \"null\", \"__rerun_remap_job_id__\": null, \"window_length\": \"\\\"50\\\"\", \"input_assembly_file\": \"null\"}", 
-            "tool_version": "0.03", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "33": {
-            "annotation": "", 
-            "id": 33, 
-            "input_connections": {
-                "db_opts|histdb": {
-                    "id": 11, 
-                    "output_name": "outfile"
-                }, 
-                "query": {
-                    "id": 29, 
-                    "output_name": "output_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "NCBI BLAST+ blastn", 
-            "outputs": [
-                {
-                    "name": "output1", 
-                    "type": "tabular"
-                }
-            ], 
-            "position": {
-                "left": 4008, 
-                "top": 1477.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/ncbi_blast_plus/ncbi_blastn_wrapper/0.1.00", 
-            "tool_state": "{\"evalue_cutoff\": \"\\\"0.001\\\"\", \"__page__\": 0, \"adv_opts\": \"{\\\"identity_cutoff\\\": \\\"0.0\\\", \\\"adv_opts_selector\\\": \\\"advanced\\\", \\\"ungapped\\\": \\\"False\\\", \\\"filter_query\\\": \\\"False\\\", \\\"word_size\\\": \\\"0\\\", \\\"__current_case__\\\": 1, \\\"parse_deflines\\\": \\\"False\\\", \\\"strand\\\": \\\"-strand both\\\", \\\"max_hits\\\": \\\"8\\\"}\", \"__rerun_remap_job_id__\": null, \"blast_type\": \"\\\"megablast\\\"\", \"db_opts\": \"{\\\"db_opts_selector\\\": \\\"histdb\\\", \\\"subject\\\": \\\"\\\", \\\"histdb\\\": null, \\\"__current_case__\\\": 1, \\\"database\\\": \\\"\\\"}\", \"output\": \"{\\\"out_format\\\": \\\"cols\\\", \\\"std_cols\\\": [\\\"qseqid\\\", \\\"qstart\\\", \\\"qend\\\"], \\\"ids_cols\\\": null, \\\"tax_cols\\\": null, \\\"__current_case__\\\": 2, \\\"misc_cols\\\": null, \\\"ext_cols\\\": [\\\"qseq\\\", \\\"sseq\\\"]}\", \"query\": \"null\"}", 
-            "tool_version": "0.1.00", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "34": {
-            "annotation": "", 
-            "id": 34, 
-            "input_connections": {
-                "db_opts|histdb": {
-                    "id": 11, 
-                    "output_name": "outfile"
-                }, 
-                "query": {
-                    "id": 30, 
-                    "output_name": "output_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "NCBI BLAST+ blastn", 
-            "outputs": [
-                {
-                    "name": "output1", 
-                    "type": "tabular"
-                }
-            ], 
-            "position": {
-                "left": 4011, 
-                "top": 1639
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/ncbi_blast_plus/ncbi_blastn_wrapper/0.1.00", 
-            "tool_state": "{\"evalue_cutoff\": \"\\\"0.001\\\"\", \"__page__\": 0, \"adv_opts\": \"{\\\"identity_cutoff\\\": \\\"0.0\\\", \\\"adv_opts_selector\\\": \\\"advanced\\\", \\\"ungapped\\\": \\\"False\\\", \\\"filter_query\\\": \\\"False\\\", \\\"word_size\\\": \\\"0\\\", \\\"__current_case__\\\": 1, \\\"parse_deflines\\\": \\\"False\\\", \\\"strand\\\": \\\"-strand both\\\", \\\"max_hits\\\": \\\"8\\\"}\", \"__rerun_remap_job_id__\": null, \"blast_type\": \"\\\"megablast\\\"\", \"db_opts\": \"{\\\"db_opts_selector\\\": \\\"histdb\\\", \\\"subject\\\": \\\"\\\", \\\"histdb\\\": null, \\\"__current_case__\\\": 1, \\\"database\\\": \\\"\\\"}\", \"output\": \"{\\\"out_format\\\": \\\"cols\\\", \\\"std_cols\\\": [\\\"qseqid\\\", \\\"qstart\\\", \\\"qend\\\"], \\\"ids_cols\\\": null, \\\"tax_cols\\\": null, \\\"__current_case__\\\": 2, \\\"misc_cols\\\": null, \\\"ext_cols\\\": [\\\"qseq\\\", \\\"sseq\\\"]}\", \"query\": \"null\"}", 
-            "tool_version": "0.1.00", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "35": {
-            "annotation": "", 
-            "id": 35, 
-            "input_connections": {
-                "db_opts|histdb": {
-                    "id": 11, 
-                    "output_name": "outfile"
-                }, 
-                "query": {
-                    "id": 31, 
-                    "output_name": "output_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "NCBI BLAST+ blastn", 
-            "outputs": [
-                {
-                    "name": "output1", 
-                    "type": "tabular"
-                }
-            ], 
-            "position": {
-                "left": 4015, 
-                "top": 1837
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/ncbi_blast_plus/ncbi_blastn_wrapper/0.1.00", 
-            "tool_state": "{\"evalue_cutoff\": \"\\\"0.001\\\"\", \"__page__\": 0, \"adv_opts\": \"{\\\"identity_cutoff\\\": \\\"0.0\\\", \\\"adv_opts_selector\\\": \\\"advanced\\\", \\\"ungapped\\\": \\\"False\\\", \\\"filter_query\\\": \\\"False\\\", \\\"word_size\\\": \\\"0\\\", \\\"__current_case__\\\": 1, \\\"parse_deflines\\\": \\\"False\\\", \\\"strand\\\": \\\"-strand both\\\", \\\"max_hits\\\": \\\"8\\\"}\", \"__rerun_remap_job_id__\": null, \"blast_type\": \"\\\"megablast\\\"\", \"db_opts\": \"{\\\"db_opts_selector\\\": \\\"histdb\\\", \\\"subject\\\": \\\"\\\", \\\"histdb\\\": null, \\\"__current_case__\\\": 1, \\\"database\\\": \\\"\\\"}\", \"output\": \"{\\\"out_format\\\": \\\"cols\\\", \\\"std_cols\\\": [\\\"qseqid\\\", \\\"qstart\\\", \\\"qend\\\"], \\\"ids_cols\\\": null, \\\"tax_cols\\\": null, \\\"__current_case__\\\": 2, \\\"misc_cols\\\": null, \\\"ext_cols\\\": [\\\"qseq\\\", \\\"sseq\\\"]}\", \"query\": \"null\"}", 
-            "tool_version": "0.1.00", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "36": {
-            "annotation": "", 
-            "id": 36, 
-            "input_connections": {
-                "db_opts|histdb": {
-                    "id": 11, 
-                    "output_name": "outfile"
-                }, 
-                "query": {
-                    "id": 32, 
-                    "output_name": "output_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "NCBI BLAST+ blastn", 
-            "outputs": [
-                {
-                    "name": "output1", 
-                    "type": "tabular"
-                }
-            ], 
-            "position": {
-                "left": 4013, 
-                "top": 2038
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/ncbi_blast_plus/ncbi_blastn_wrapper/0.1.00", 
-            "tool_state": "{\"evalue_cutoff\": \"\\\"0.001\\\"\", \"__page__\": 0, \"adv_opts\": \"{\\\"identity_cutoff\\\": \\\"0.0\\\", \\\"adv_opts_selector\\\": \\\"advanced\\\", \\\"ungapped\\\": \\\"False\\\", \\\"filter_query\\\": \\\"False\\\", \\\"word_size\\\": \\\"0\\\", \\\"__current_case__\\\": 1, \\\"parse_deflines\\\": \\\"False\\\", \\\"strand\\\": \\\"-strand both\\\", \\\"max_hits\\\": \\\"8\\\"}\", \"__rerun_remap_job_id__\": null, \"blast_type\": \"\\\"megablast\\\"\", \"db_opts\": \"{\\\"db_opts_selector\\\": \\\"histdb\\\", \\\"subject\\\": \\\"\\\", \\\"histdb\\\": null, \\\"__current_case__\\\": 1, \\\"database\\\": \\\"\\\"}\", \"output\": \"{\\\"out_format\\\": \\\"cols\\\", \\\"std_cols\\\": [\\\"qseqid\\\", \\\"qstart\\\", \\\"qend\\\"], \\\"ids_cols\\\": null, \\\"tax_cols\\\": null, \\\"__current_case__\\\": 2, \\\"misc_cols\\\": null, \\\"ext_cols\\\": [\\\"qseq\\\", \\\"sseq\\\"]}\", \"query\": \"null\"}", 
-            "tool_version": "0.1.00", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "37": {
-            "annotation": "", 
-            "id": 37, 
-            "input_connections": {
-                "input_blast_file": {
-                    "id": 33, 
-                    "output_name": "output1"
-                }, 
-                "input_variant_file": {
-                    "id": 28, 
-                    "output_name": "output_file1"
-                }
-            }, 
-            "inputs": [], 
-            "name": "ParseBlastForUniqueMatch", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "pileup"
-                }
-            ], 
-            "position": {
-                "left": 4304, 
-                "top": 1345.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "ParseBlastForUniqueMatch", 
-            "tool_state": "{\"input_variant_file\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_blast_file\": \"null\", \"window_length\": \"\\\"50\\\"\", \"nb_mismatch_max\": \"\\\"3\\\"\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "38": {
-            "annotation": "", 
-            "id": 38, 
-            "input_connections": {
-                "input_blast_file": {
-                    "id": 34, 
-                    "output_name": "output1"
-                }, 
-                "input_variant_file": {
-                    "id": 28, 
-                    "output_name": "output_file2"
-                }
-            }, 
-            "inputs": [], 
-            "name": "ParseBlastForUniqueMatch", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "pileup"
-                }
-            ], 
-            "position": {
-                "left": 4303.5, 
-                "top": 1559
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "ParseBlastForUniqueMatch", 
-            "tool_state": "{\"input_variant_file\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_blast_file\": \"null\", \"window_length\": \"\\\"50\\\"\", \"nb_mismatch_max\": \"\\\"3\\\"\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "39": {
-            "annotation": "", 
-            "id": 39, 
-            "input_connections": {
-                "input_blast_file": {
-                    "id": 35, 
-                    "output_name": "output1"
-                }, 
-                "input_variant_file": {
-                    "id": 28, 
-                    "output_name": "output_file3"
-                }
-            }, 
-            "inputs": [], 
-            "name": "ParseBlastForUniqueMatch", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "pileup"
-                }
-            ], 
-            "position": {
-                "left": 4304.5, 
-                "top": 1776
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "ParseBlastForUniqueMatch", 
-            "tool_state": "{\"input_variant_file\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_blast_file\": \"null\", \"window_length\": \"\\\"50\\\"\", \"nb_mismatch_max\": \"\\\"3\\\"\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "40": {
-            "annotation": "", 
-            "id": 40, 
-            "input_connections": {
-                "input_blast_file": {
-                    "id": 36, 
-                    "output_name": "output1"
-                }, 
-                "input_variant_file": {
-                    "id": 28, 
-                    "output_name": "output_file4"
-                }
-            }, 
-            "inputs": [], 
-            "name": "ParseBlastForUniqueMatch", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "pileup"
-                }
-            ], 
-            "position": {
-                "left": 4306.5, 
-                "top": 2000
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "ParseBlastForUniqueMatch", 
-            "tool_state": "{\"input_variant_file\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_blast_file\": \"null\", \"window_length\": \"\\\"50\\\"\", \"nb_mismatch_max\": \"\\\"3\\\"\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "41": {
-            "annotation": "", 
-            "id": 41, 
-            "input_connections": {
-                "input_file1": {
-                    "id": 37, 
-                    "output_name": "output_file"
-                }, 
-                "input_file2": {
-                    "id": 38, 
-                    "output_name": "output_file"
-                }, 
-                "input_file3": {
-                    "id": 39, 
-                    "output_name": "output_file"
-                }, 
-                "input_file4": {
-                    "id": 40, 
-                    "output_name": "output_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "MergeFile4x", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "txt"
-                }
-            ], 
-            "position": {
-                "left": 4718, 
-                "top": 1529
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "MergeFile4x", 
-            "tool_state": "{\"out_format\": \"\\\"pileup\\\"\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_file4\": \"null\", \"input_file1\": \"null\", \"input_file2\": \"null\", \"input_file3\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "42": {
-            "annotation": "", 
-            "id": 42, 
-            "input_connections": {
-                "input_file": {
-                    "id": 41, 
-                    "output_name": "output_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "mpileupfilterandstat", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "pileup"
-                }, 
-                {
-                    "name": "log_file", 
-                    "type": "txt"
-                }
-            ], 
-            "position": {
-                "left": 5089, 
-                "top": 1571
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "mpileupfilterandstat", 
-            "tool_state": "{\"__page__\": 0, \"stat\": \"{\\\"stat_dist_step\\\": \\\"50\\\", \\\"stat_min_depth_step\\\": \\\"2\\\", \\\"stat_max_depth_max\\\": \\\"200\\\", \\\"stat_min_depth_max\\\": \\\"10\\\", \\\"stat_freq_max\\\": \\\"1.0\\\", \\\"stat_min_depth_min\\\": \\\"2\\\", \\\"stat_max_depth_min\\\": \\\"100\\\", \\\"do_stat\\\": \\\"YES\\\", \\\"stat_dist_min\\\": \\\"0\\\", \\\"__current_case__\\\": 0, \\\"stat_max_depth_step\\\": \\\"100\\\", \\\"stat_dist_max\\\": \\\"50\\\", \\\"stat_freq_step\\\": \\\"0.1\\\", \\\"stat_freq_min\\\": \\\"0.8\\\"}\", \"input_file\": \"null\", \"min_frequency\": \"\\\"0.8\\\"\", \"min_depth\": \"\\\"2\\\"\", \"__rerun_remap_job_id__\": null, \"min_forward_and_reverse\": \"\\\"0\\\"\", \"max_depth\": \"\\\"100\\\"\", \"min_distance\": \"\\\"0\\\"\"}", 
-            "tool_version": "0.08", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "43": {
-            "annotation": "", 
-            "id": 43, 
-            "input_connections": {
-                "input_blast_filtered_part1_file": {
-                    "id": 37, 
-                    "output_name": "output_file"
-                }, 
-                "input_blast_filtered_part2_file": {
-                    "id": 38, 
-                    "output_name": "output_file"
-                }, 
-                "input_blast_filtered_part3_file": {
-                    "id": 39, 
-                    "output_name": "output_file"
-                }, 
-                "input_blast_filtered_part4_file": {
-                    "id": 40, 
-                    "output_name": "output_file"
-                }, 
-                "input_list_filtered_file": {
-                    "id": 27, 
-                    "output_name": "output_file"
-                }, 
-                "input_mpileup_variant_file": {
-                    "id": 26, 
-                    "output_name": "output_file"
-                }, 
-                "input_read1_part1_trimmed_file": {
-                    "id": 7, 
-                    "output_name": "output_read1_file"
-                }, 
-                "input_read1_part2_trimmed_file": {
-                    "id": 8, 
-                    "output_name": "output_read1_file"
-                }, 
-                "input_read1_part3_trimmed_file": {
-                    "id": 9, 
-                    "output_name": "output_read1_file"
-                }, 
-                "input_read1_part4_trimmed_file": {
-                    "id": 10, 
-                    "output_name": "output_read1_file"
-                }, 
-                "input_read1_row_file": {
-                    "id": 0, 
-                    "output_name": "output"
-                }, 
-                "input_read2_part1_trimmed_file": {
-                    "id": 7, 
-                    "output_name": "output_read2_file"
-                }, 
-                "input_read2_part2_trimmed_file": {
-                    "id": 8, 
-                    "output_name": "output_read2_file"
-                }, 
-                "input_read2_part3_trimmed_file": {
-                    "id": 9, 
-                    "output_name": "output_read2_file"
-                }, 
-                "input_read2_part4_trimmed_file": {
-                    "id": 10, 
-                    "output_name": "output_read2_file"
-                }, 
-                "input_read2_row_file": {
-                    "id": 1, 
-                    "output_name": "output"
-                }, 
-                "input_sam_filtered_part1_file": {
-                    "id": 16, 
-                    "output_name": "output_file"
-                }, 
-                "input_sam_filtered_part2_file": {
-                    "id": 17, 
-                    "output_name": "output_file"
-                }, 
-                "input_sam_filtered_part3_file": {
-                    "id": 18, 
-                    "output_name": "output_file"
-                }, 
-                "input_sam_filtered_part4_file": {
-                    "id": 19, 
-                    "output_name": "output_file"
-                }, 
-                "input_sam_row_part1_file": {
-                    "id": 12, 
-                    "output_name": "output"
-                }, 
-                "input_sam_row_part2_file": {
-                    "id": 13, 
-                    "output_name": "output"
-                }, 
-                "input_sam_row_part3_file": {
-                    "id": 14, 
-                    "output_name": "output"
-                }, 
-                "input_sam_row_part4_file": {
-                    "id": 15, 
-                    "output_name": "output"
-                }, 
-                "input_snp_selected_file": {
-                    "id": 42, 
-                    "output_name": "output_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "rapsosnp_stats4x", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "txt"
-                }
-            ], 
-            "position": {
-                "left": 1883.5, 
-                "top": 200
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "rapsosnp_stats4x", 
-            "tool_state": "{\"input_blast_filtered_part2_file\": \"null\", \"input_blast_filtered_part3_file\": \"null\", \"input_read2_part1_trimmed_file\": \"null\", \"input_read1_row_file\": \"null\", \"input_read1_part2_trimmed_file\": \"null\", \"input_read1_part4_trimmed_file\": \"null\", \"input_read1_part3_trimmed_file\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_mpileup_variant_file\": \"null\", \"input_sam_row_part1_file\": \"null\", \"input_blast_filtered_part1_file\": \"null\", \"input_sam_row_part4_file\": \"null\", \"input_sam_filtered_part1_file\": \"null\", \"input_read2_part3_trimmed_file\": \"null\", \"input_read2_part4_trimmed_file\": \"null\", \"input_sam_filtered_part3_file\": \"null\", \"input_sam_filtered_part4_file\": \"null\", \"input_sam_row_part2_file\": \"null\", \"input_read1_part1_trimmed_file\": \"null\", \"input_read2_row_file\": \"null\", \"input_blast_filtered_part4_file\": \"null\", \"input_sam_row_part3_file\": \"null\", \"input_sam_filtered_part2_file\": \"null\", \"input_read2_part2_trimmed_file\": \"null\", \"input_snp_selected_file\": \"null\", \"input_list_filtered_file\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }
-    }
-}
\ No newline at end of file
--- a/rapsodyn/Galaxy-Workflow-rapsosnp_v1.17.ga	Mon Sep 29 03:02:16 2014 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,586 +0,0 @@
-{
-    "a_galaxy_workflow": "true", 
-    "annotation": "", 
-    "format-version": "0.1", 
-    "name": "rapsosnp v1.17", 
-    "steps": {
-        "0": {
-            "annotation": "", 
-            "id": 0, 
-            "input_connections": {}, 
-            "inputs": [
-                {
-                    "description": "", 
-                    "name": "ASSEMBLY"
-                }
-            ], 
-            "name": "Input dataset", 
-            "outputs": [], 
-            "position": {
-                "left": 200, 
-                "top": 200
-            }, 
-            "tool_errors": null, 
-            "tool_id": null, 
-            "tool_state": "{\"name\": \"ASSEMBLY\"}", 
-            "tool_version": null, 
-            "type": "data_input", 
-            "user_outputs": []
-        }, 
-        "1": {
-            "annotation": "", 
-            "id": 1, 
-            "input_connections": {}, 
-            "inputs": [
-                {
-                    "description": "", 
-                    "name": "READ1"
-                }
-            ], 
-            "name": "Input dataset", 
-            "outputs": [], 
-            "position": {
-                "left": 200, 
-                "top": 285
-            }, 
-            "tool_errors": null, 
-            "tool_id": null, 
-            "tool_state": "{\"name\": \"READ1\"}", 
-            "tool_version": null, 
-            "type": "data_input", 
-            "user_outputs": []
-        }, 
-        "2": {
-            "annotation": "", 
-            "id": 2, 
-            "input_connections": {}, 
-            "inputs": [
-                {
-                    "description": "", 
-                    "name": "READ2"
-                }
-            ], 
-            "name": "Input dataset", 
-            "outputs": [], 
-            "position": {
-                "left": 200, 
-                "top": 370
-            }, 
-            "tool_errors": null, 
-            "tool_id": null, 
-            "tool_state": "{\"name\": \"READ2\"}", 
-            "tool_version": null, 
-            "type": "data_input", 
-            "user_outputs": []
-        }, 
-        "3": {
-            "annotation": "", 
-            "id": 3, 
-            "input_connections": {}, 
-            "inputs": [
-                {
-                    "description": "", 
-                    "name": "DUBIOUS"
-                }
-            ], 
-            "name": "Input dataset", 
-            "outputs": [], 
-            "position": {
-                "left": 200, 
-                "top": 455
-            }, 
-            "tool_errors": null, 
-            "tool_id": null, 
-            "tool_state": "{\"name\": \"DUBIOUS\"}", 
-            "tool_version": null, 
-            "type": "data_input", 
-            "user_outputs": []
-        }, 
-        "4": {
-            "annotation": "", 
-            "id": 4, 
-            "input_connections": {
-                "input_fasta": {
-                    "id": 0, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "fastaGroomerForMakeBlastdb", 
-            "outputs": [
-                {
-                    "name": "output_fasta", 
-                    "type": "fasta"
-                }
-            ], 
-            "position": {
-                "left": 428, 
-                "top": 200
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "fastaGroomerForMakeBlastdb", 
-            "tool_state": "{\"input_fasta\": \"null\", \"__rerun_remap_job_id__\": null, \"__page__\": 0}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "5": {
-            "annotation": "", 
-            "id": 5, 
-            "input_connections": {
-                "input_read1_file": {
-                    "id": 1, 
-                    "output_name": "output"
-                }, 
-                "input_read2_file": {
-                    "id": 2, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "PrepareFastqLight", 
-            "outputs": [
-                {
-                    "name": "output_read1_file", 
-                    "type": "fastqsanger"
-                }, 
-                {
-                    "name": "output_read2_file", 
-                    "type": "fastqsanger"
-                }
-            ], 
-            "position": {
-                "left": 428, 
-                "top": 331
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "PrepareFastqLight", 
-            "tool_state": "{\"__page__\": 0, \"quality_type\": \"\\\"illumina\\\"\", \"min_length\": \"\\\"30\\\"\", \"__rerun_remap_job_id__\": null, \"min_quality\": \"\\\"30\\\"\", \"input_read1_file\": \"null\", \"input_read2_file\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "6": {
-            "annotation": "", 
-            "id": 6, 
-            "input_connections": {
-                "input_file": {
-                    "id": 4, 
-                    "output_name": "output_fasta"
-                }
-            }, 
-            "inputs": [], 
-            "name": "NCBI BLAST+ makeblastdb", 
-            "outputs": [
-                {
-                    "name": "outfile", 
-                    "type": "data"
-                }
-            ], 
-            "position": {
-                "left": 756, 
-                "top": 200
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/ncbi_blast_plus/ncbi_makeblastdb/0.1.00", 
-            "tool_state": "{\"__page__\": 0, \"mask_data_file\": \"null\", \"input_file\": \"null\", \"dbtype\": \"\\\"nucl\\\"\", \"__rerun_remap_job_id__\": null, \"hash_index\": \"\\\"True\\\"\", \"tax\": \"{\\\"taxselect\\\": \\\"\\\", \\\"__current_case__\\\": 0}\", \"title\": \"\\\"\\\"\", \"parse_seqids\": \"\\\"False\\\"\"}", 
-            "tool_version": "0.1.00", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "7": {
-            "annotation": "", 
-            "id": 7, 
-            "input_connections": {
-                "genomeSource|ownFile": {
-                    "id": 0, 
-                    "output_name": "output"
-                }, 
-                "paired|input1": {
-                    "id": 5, 
-                    "output_name": "output_read1_file"
-                }, 
-                "paired|input2": {
-                    "id": 5, 
-                    "output_name": "output_read2_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "Map with BWA for Illumina", 
-            "outputs": [
-                {
-                    "name": "output", 
-                    "type": "sam"
-                }
-            ], 
-            "position": {
-                "left": 756, 
-                "top": 358
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/bwa_wrappers/bwa_wrapper/1.2.3", 
-            "tool_state": "{\"genomeSource\": \"{\\\"refGenomeSource\\\": \\\"history\\\", \\\"ownFile\\\": null, \\\"__current_case__\\\": 1}\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"paired\": \"{\\\"input2\\\": null, \\\"sPaired\\\": \\\"paired\\\", \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"params\": \"{\\\"__current_case__\\\": 0, \\\"source_select\\\": \\\"pre_set\\\"}\", \"suppressHeader\": \"\\\"False\\\"\"}", 
-            "tool_version": "1.2.3", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "8": {
-            "annotation": "", 
-            "id": 8, 
-            "input_connections": {
-                "input_sam_file": {
-                    "id": 7, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "filtersam_mapped_and_unique", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "sam"
-                }
-            ], 
-            "position": {
-                "left": 1084, 
-                "top": 200
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "filtersam_mapped_and_unique", 
-            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_sam_file\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "9": {
-            "annotation": "", 
-            "id": 9, 
-            "input_connections": {
-                "source|input1": {
-                    "id": 8, 
-                    "output_name": "output_file"
-                }, 
-                "source|ref_file": {
-                    "id": 0, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "SAM-to-BAM", 
-            "outputs": [
-                {
-                    "name": "output1", 
-                    "type": "bam"
-                }
-            ], 
-            "position": {
-                "left": 1412, 
-                "top": 200
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/sam_to_bam/sam_to_bam/1.1.4", 
-            "tool_state": "{\"source\": \"{\\\"index_source\\\": \\\"history\\\", \\\"ref_file\\\": null, \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"__rerun_remap_job_id__\": null, \"__page__\": 0}", 
-            "tool_version": "1.1.4", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "10": {
-            "annotation": "", 
-            "id": 10, 
-            "input_connections": {
-                "reference_source|input_bams_0|input_bam": {
-                    "id": 9, 
-                    "output_name": "output1"
-                }
-            }, 
-            "inputs": [], 
-            "name": "MPileup", 
-            "outputs": [
-                {
-                    "name": "output_mpileup", 
-                    "type": "pileup"
-                }, 
-                {
-                    "name": "output_log", 
-                    "type": "txt"
-                }
-            ], 
-            "position": {
-                "left": 1640, 
-                "top": 200
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/samtools_mpileup/samtools_mpileup/0.0.3", 
-            "tool_state": "{\"__page__\": 0, \"advanced_options\": \"{\\\"max_reads_per_bam\\\": \\\"250\\\", \\\"advanced_options_selector\\\": \\\"advanced\\\", \\\"extended_BAQ_computation\\\": \\\"False\\\", \\\"region_string\\\": \\\"\\\", \\\"output_per_sample_strand_bias_p_value\\\": \\\"False\\\", \\\"minimum_base_quality\\\": \\\"30\\\", \\\"disable_probabilistic_realignment\\\": \\\"False\\\", \\\"skip_anomalous_read_pairs\\\": \\\"False\\\", \\\"minimum_mapping_quality\\\": \\\"0\\\", \\\"output_per_sample_read_depth\\\": \\\"False\\\", \\\"__current_case__\\\": 0, \\\"position_list\\\": null, \\\"coefficient_for_downgrading\\\": \\\"0\\\"}\", \"__rerun_remap_job_id__\": null, \"genotype_likelihood_computation_type\": \"{\\\"genotype_likelihood_computation_type_selector\\\": \\\"do_not_perform_genotype_likelihood_computation\\\", \\\"__current_case__\\\": 1}\", \"reference_source\": \"{\\\"ref_file\\\": null, \\\"reference_source_selector\\\": \\\"history\\\", \\\"input_bams\\\": [{\\\"__index__\\\": 0, \\\"input_bam\\\": null}], \\\"__current_case__\\\": 1}\"}", 
-            "tool_version": "0.0.3", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "11": {
-            "annotation": "", 
-            "id": 11, 
-            "input_connections": {
-                "input_file": {
-                    "id": 10, 
-                    "output_name": "output_mpileup"
-                }
-            }, 
-            "inputs": [], 
-            "name": "PileupVariant", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "pileup"
-                }
-            ], 
-            "position": {
-                "left": 1907, 
-                "top": 200
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "PileupVariant", 
-            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_file\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "12": {
-            "annotation": "", 
-            "id": 12, 
-            "input_connections": {
-                "input_listA": {
-                    "id": 11, 
-                    "output_name": "output_file"
-                }, 
-                "input_listB": {
-                    "id": 3, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "listfiltering", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "pileup"
-                }
-            ], 
-            "position": {
-                "left": 2235, 
-                "top": 200
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "listfiltering", 
-            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_listB\": \"null\", \"nb_col\": \"\\\"2\\\"\", \"input_listA\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "13": {
-            "annotation": "", 
-            "id": 13, 
-            "input_connections": {
-                "input_assembly_file": {
-                    "id": 0, 
-                    "output_name": "output"
-                }, 
-                "input_variant_file": {
-                    "id": 12, 
-                    "output_name": "output_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "extractseq", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "fasta"
-                }
-            ], 
-            "position": {
-                "left": 2563, 
-                "top": 200
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "extractseq", 
-            "tool_state": "{\"__page__\": 0, \"input_variant_file\": \"null\", \"__rerun_remap_job_id__\": null, \"window_length\": \"\\\"50\\\"\", \"input_assembly_file\": \"null\"}", 
-            "tool_version": "0.03", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "14": {
-            "annotation": "", 
-            "id": 14, 
-            "input_connections": {
-                "db_opts|histdb": {
-                    "id": 6, 
-                    "output_name": "outfile"
-                }, 
-                "query": {
-                    "id": 13, 
-                    "output_name": "output_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "NCBI BLAST+ blastn", 
-            "outputs": [
-                {
-                    "name": "output1", 
-                    "type": "tabular"
-                }
-            ], 
-            "position": {
-                "left": 2891, 
-                "top": 200
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/ncbi_blast_plus/ncbi_blastn_wrapper/0.1.00", 
-            "tool_state": "{\"evalue_cutoff\": \"\\\"0.001\\\"\", \"__page__\": 0, \"adv_opts\": \"{\\\"identity_cutoff\\\": \\\"0.0\\\", \\\"adv_opts_selector\\\": \\\"advanced\\\", \\\"ungapped\\\": \\\"False\\\", \\\"filter_query\\\": \\\"False\\\", \\\"word_size\\\": \\\"0\\\", \\\"__current_case__\\\": 1, \\\"parse_deflines\\\": \\\"False\\\", \\\"strand\\\": \\\"-strand both\\\", \\\"max_hits\\\": \\\"8\\\"}\", \"__rerun_remap_job_id__\": null, \"blast_type\": \"\\\"megablast\\\"\", \"db_opts\": \"{\\\"db_opts_selector\\\": \\\"histdb\\\", \\\"subject\\\": \\\"\\\", \\\"histdb\\\": null, \\\"__current_case__\\\": 1, \\\"database\\\": \\\"\\\"}\", \"output\": \"{\\\"out_format\\\": \\\"cols\\\", \\\"std_cols\\\": [\\\"qseqid\\\", \\\"qstart\\\", \\\"qend\\\"], \\\"ids_cols\\\": null, \\\"tax_cols\\\": null, \\\"__current_case__\\\": 2, \\\"misc_cols\\\": null, \\\"ext_cols\\\": [\\\"qseq\\\", \\\"sseq\\\"]}\", \"query\": \"null\"}", 
-            "tool_version": "0.1.00", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "15": {
-            "annotation": "", 
-            "id": 15, 
-            "input_connections": {
-                "input_blast_file": {
-                    "id": 14, 
-                    "output_name": "output1"
-                }, 
-                "input_variant_file": {
-                    "id": 12, 
-                    "output_name": "output_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "ParseBlastForUniqueMatch", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "pileup"
-                }
-            ], 
-            "position": {
-                "left": 3193, 
-                "top": 200
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "ParseBlastForUniqueMatch", 
-            "tool_state": "{\"input_variant_file\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_blast_file\": \"null\", \"window_length\": \"\\\"50\\\"\", \"nb_mismatch_max\": \"\\\"3\\\"\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "16": {
-            "annotation": "", 
-            "id": 16, 
-            "input_connections": {
-                "input_file": {
-                    "id": 15, 
-                    "output_name": "output_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "mpileupfilterandstat", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "pileup"
-                }, 
-                {
-                    "name": "log_file", 
-                    "type": "txt"
-                }
-            ], 
-            "position": {
-                "left": 3521, 
-                "top": 200
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "mpileupfilterandstat", 
-            "tool_state": "{\"__page__\": 0, \"stat\": \"{\\\"stat_dist_step\\\": \\\"50\\\", \\\"stat_min_depth_step\\\": \\\"2\\\", \\\"stat_max_depth_max\\\": \\\"200\\\", \\\"stat_min_depth_max\\\": \\\"10\\\", \\\"stat_freq_max\\\": \\\"1.0\\\", \\\"stat_min_depth_min\\\": \\\"2\\\", \\\"stat_max_depth_min\\\": \\\"100\\\", \\\"do_stat\\\": \\\"YES\\\", \\\"stat_dist_min\\\": \\\"0\\\", \\\"__current_case__\\\": 0, \\\"stat_max_depth_step\\\": \\\"100\\\", \\\"stat_dist_max\\\": \\\"50\\\", \\\"stat_freq_step\\\": \\\"0.1\\\", \\\"stat_freq_min\\\": \\\"0.8\\\"}\", \"input_file\": \"null\", \"min_frequency\": \"\\\"1.0\\\"\", \"min_depth\": \"\\\"2\\\"\", \"__rerun_remap_job_id__\": null, \"min_forward_and_reverse\": \"\\\"0\\\"\", \"max_depth\": \"\\\"100\\\"\", \"min_distance\": \"\\\"50\\\"\"}", 
-            "tool_version": "0.08", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "17": {
-            "annotation": "", 
-            "id": 17, 
-            "input_connections": {
-                "input_blast_filtered_file": {
-                    "id": 15, 
-                    "output_name": "output_file"
-                }, 
-                "input_list_filtered_file": {
-                    "id": 12, 
-                    "output_name": "output_file"
-                }, 
-                "input_mpileup_variant_file": {
-                    "id": 11, 
-                    "output_name": "output_file"
-                }, 
-                "input_read1_row_file": {
-                    "id": 1, 
-                    "output_name": "output"
-                }, 
-                "input_read1_trimmed_file": {
-                    "id": 5, 
-                    "output_name": "output_read1_file"
-                }, 
-                "input_read2_row_file": {
-                    "id": 2, 
-                    "output_name": "output"
-                }, 
-                "input_read2_trimmed_file": {
-                    "id": 5, 
-                    "output_name": "output_read2_file"
-                }, 
-                "input_sam_filtered_file": {
-                    "id": 8, 
-                    "output_name": "output_file"
-                }, 
-                "input_sam_row_file": {
-                    "id": 7, 
-                    "output_name": "output"
-                }, 
-                "input_snp_selected_file": {
-                    "id": 16, 
-                    "output_name": "output_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "rapsosnp_stats", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "txt"
-                }
-            ], 
-            "position": {
-                "left": 3849, 
-                "top": 200
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "rapsosnp_stats", 
-            "tool_state": "{\"input_read1_trimmed_file\": \"null\", \"__page__\": 0, \"input_read2_trimmed_file\": \"null\", \"input_sam_row_file\": \"null\", \"__rerun_remap_job_id__\": null, \"input_read2_row_file\": \"null\", \"input_mpileup_variant_file\": \"null\", \"input_sam_filtered_file\": \"null\", \"input_read1_row_file\": \"null\", \"input_snp_selected_file\": \"null\", \"input_list_filtered_file\": \"null\", \"input_blast_filtered_file\": \"null\"}", 
-            "tool_version": "0.01", 
-            "type": "tool", 
-            "user_outputs": []
-        }
-    }
-}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rapsodyn/Galaxy-Workflow-rapsosnp_v1.20_-_10x_-_sam.ga	Tue Oct 07 10:34:34 2014 -0400
@@ -0,0 +1,2967 @@
+{
+    "a_galaxy_workflow": "true", 
+    "annotation": "", 
+    "format-version": "0.1", 
+    "name": "rapsosnp v1.20 - 1x - sam", 
+    "steps": {
+        "0": {
+            "annotation": "", 
+            "id": 0, 
+            "input_connections": {}, 
+            "inputs": [
+                {
+                    "description": "", 
+                    "name": "READ1"
+                }
+            ], 
+            "name": "Input dataset", 
+            "outputs": [], 
+            "position": {
+                "left": 279, 
+                "top": 617
+            }, 
+            "tool_errors": null, 
+            "tool_id": null, 
+            "tool_state": "{\"name\": \"READ1\"}", 
+            "tool_version": null, 
+            "type": "data_input", 
+            "user_outputs": []
+        }, 
+        "1": {
+            "annotation": "", 
+            "id": 1, 
+            "input_connections": {}, 
+            "inputs": [
+                {
+                    "description": "", 
+                    "name": "READ2"
+                }
+            ], 
+            "name": "Input dataset", 
+            "outputs": [], 
+            "position": {
+                "left": 276, 
+                "top": 713
+            }, 
+            "tool_errors": null, 
+            "tool_id": null, 
+            "tool_state": "{\"name\": \"READ2\"}", 
+            "tool_version": null, 
+            "type": "data_input", 
+            "user_outputs": []
+        }, 
+        "2": {
+            "annotation": "", 
+            "id": 2, 
+            "input_connections": {}, 
+            "inputs": [
+                {
+                    "description": "", 
+                    "name": "ASSEMBLY"
+                }
+            ], 
+            "name": "Input dataset", 
+            "outputs": [], 
+            "position": {
+                "left": 3921, 
+                "top": 392
+            }, 
+            "tool_errors": null, 
+            "tool_id": null, 
+            "tool_state": "{\"name\": \"ASSEMBLY\"}", 
+            "tool_version": null, 
+            "type": "data_input", 
+            "user_outputs": []
+        }, 
+        "3": {
+            "annotation": "", 
+            "id": 3, 
+            "input_connections": {}, 
+            "inputs": [
+                {
+                    "description": "", 
+                    "name": "DUBIOUS"
+                }
+            ], 
+            "name": "Input dataset", 
+            "outputs": [], 
+            "position": {
+                "left": 3415, 
+                "top": 1131
+            }, 
+            "tool_errors": null, 
+            "tool_id": null, 
+            "tool_state": "{\"name\": \"DUBIOUS\"}", 
+            "tool_version": null, 
+            "type": "data_input", 
+            "user_outputs": []
+        }, 
+        "4": {
+            "annotation": "", 
+            "id": 4, 
+            "input_connections": {
+                "input_file": {
+                    "id": 0, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "SplitFile10x", 
+            "outputs": [
+                {
+                    "name": "output_file1", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file2", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file3", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file4", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file5", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file6", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file7", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file8", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file9", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file10", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 590, 
+                "top": 338
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "SplitFile10x", 
+            "tool_state": "{\"out_format\": \"\\\"pileup\\\"\", \"line_number\": \"\\\"4\\\"\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_file\": \"null\"}", 
+            "tool_version": "1.00", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "5": {
+            "annotation": "", 
+            "id": 5, 
+            "input_connections": {
+                "input_file": {
+                    "id": 1, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "SplitFile10x", 
+            "outputs": [
+                {
+                    "name": "output_file1", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file2", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file3", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file4", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file5", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file6", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file7", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file8", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file9", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file10", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 581, 
+                "top": 871
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "SplitFile10x", 
+            "tool_state": "{\"out_format\": \"\\\"pileup\\\"\", \"line_number\": \"\\\"4\\\"\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_file\": \"null\"}", 
+            "tool_version": "1.00", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "6": {
+            "annotation": "", 
+            "id": 6, 
+            "input_connections": {
+                "input_fasta": {
+                    "id": 2, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "fastaGroomerForMakeBlastdb", 
+            "outputs": [
+                {
+                    "name": "output_fasta", 
+                    "type": "fasta"
+                }
+            ], 
+            "position": {
+                "left": 4471.25, 
+                "top": 231.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "fastaGroomerForMakeBlastdb", 
+            "tool_state": "{\"input_fasta\": \"null\", \"__rerun_remap_job_id__\": null, \"__page__\": 0}", 
+            "tool_version": "1.00", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "7": {
+            "annotation": "", 
+            "id": 7, 
+            "input_connections": {
+                "input_read1_file": {
+                    "id": 4, 
+                    "output_name": "output_file1"
+                }, 
+                "input_read2_file": {
+                    "id": 5, 
+                    "output_name": "output_file1"
+                }
+            }, 
+            "inputs": [], 
+            "name": "PrepareFastqLight", 
+            "outputs": [
+                {
+                    "name": "output_read1_file", 
+                    "type": "fastqsanger"
+                }, 
+                {
+                    "name": "output_read2_file", 
+                    "type": "fastqsanger"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 936.93310546875, 
+                "top": 338.43333435058594
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "PrepareFastqLight", 
+            "tool_state": "{\"__page__\": 0, \"quality_type\": \"\\\"illumina\\\"\", \"min_length\": \"\\\"30\\\"\", \"__rerun_remap_job_id__\": null, \"min_quality\": \"\\\"30\\\"\", \"input_read1_file\": \"null\", \"input_read2_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "8": {
+            "annotation": "", 
+            "id": 8, 
+            "input_connections": {
+                "input_read1_file": {
+                    "id": 4, 
+                    "output_name": "output_file2"
+                }, 
+                "input_read2_file": {
+                    "id": 5, 
+                    "output_name": "output_file2"
+                }
+            }, 
+            "inputs": [], 
+            "name": "PrepareFastqLight", 
+            "outputs": [
+                {
+                    "name": "output_read1_file", 
+                    "type": "fastqsanger"
+                }, 
+                {
+                    "name": "output_read2_file", 
+                    "type": "fastqsanger"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 943.93310546875, 
+                "top": 585.4333343505859
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "PrepareFastqLight", 
+            "tool_state": "{\"__page__\": 0, \"quality_type\": \"\\\"illumina\\\"\", \"min_length\": \"\\\"30\\\"\", \"__rerun_remap_job_id__\": null, \"min_quality\": \"\\\"30\\\"\", \"input_read1_file\": \"null\", \"input_read2_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "9": {
+            "annotation": "", 
+            "id": 9, 
+            "input_connections": {
+                "input_read1_file": {
+                    "id": 4, 
+                    "output_name": "output_file3"
+                }, 
+                "input_read2_file": {
+                    "id": 5, 
+                    "output_name": "output_file3"
+                }
+            }, 
+            "inputs": [], 
+            "name": "PrepareFastqLight", 
+            "outputs": [
+                {
+                    "name": "output_read1_file", 
+                    "type": "fastqsanger"
+                }, 
+                {
+                    "name": "output_read2_file", 
+                    "type": "fastqsanger"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 947.93310546875, 
+                "top": 812.433349609375
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "PrepareFastqLight", 
+            "tool_state": "{\"__page__\": 0, \"quality_type\": \"\\\"illumina\\\"\", \"min_length\": \"\\\"30\\\"\", \"__rerun_remap_job_id__\": null, \"min_quality\": \"\\\"30\\\"\", \"input_read1_file\": \"null\", \"input_read2_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "10": {
+            "annotation": "", 
+            "id": 10, 
+            "input_connections": {
+                "input_read1_file": {
+                    "id": 4, 
+                    "output_name": "output_file6"
+                }, 
+                "input_read2_file": {
+                    "id": 5, 
+                    "output_name": "output_file6"
+                }
+            }, 
+            "inputs": [], 
+            "name": "PrepareFastqLight", 
+            "outputs": [
+                {
+                    "name": "output_read1_file", 
+                    "type": "fastqsanger"
+                }, 
+                {
+                    "name": "output_read2_file", 
+                    "type": "fastqsanger"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 1267.93310546875, 
+                "top": 343.43333435058594
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "PrepareFastqLight", 
+            "tool_state": "{\"__page__\": 0, \"quality_type\": \"\\\"illumina\\\"\", \"min_length\": \"\\\"30\\\"\", \"__rerun_remap_job_id__\": null, \"min_quality\": \"\\\"30\\\"\", \"input_read1_file\": \"null\", \"input_read2_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "11": {
+            "annotation": "", 
+            "id": 11, 
+            "input_connections": {
+                "input_read1_file": {
+                    "id": 4, 
+                    "output_name": "output_file7"
+                }, 
+                "input_read2_file": {
+                    "id": 5, 
+                    "output_name": "output_file7"
+                }
+            }, 
+            "inputs": [], 
+            "name": "PrepareFastqLight", 
+            "outputs": [
+                {
+                    "name": "output_read1_file", 
+                    "type": "fastqsanger"
+                }, 
+                {
+                    "name": "output_read2_file", 
+                    "type": "fastqsanger"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 1261.93310546875, 
+                "top": 587.4333343505859
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "PrepareFastqLight", 
+            "tool_state": "{\"__page__\": 0, \"quality_type\": \"\\\"illumina\\\"\", \"min_length\": \"\\\"30\\\"\", \"__rerun_remap_job_id__\": null, \"min_quality\": \"\\\"30\\\"\", \"input_read1_file\": \"null\", \"input_read2_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "12": {
+            "annotation": "", 
+            "id": 12, 
+            "input_connections": {
+                "input_read1_file": {
+                    "id": 4, 
+                    "output_name": "output_file4"
+                }, 
+                "input_read2_file": {
+                    "id": 5, 
+                    "output_name": "output_file4"
+                }
+            }, 
+            "inputs": [], 
+            "name": "PrepareFastqLight", 
+            "outputs": [
+                {
+                    "name": "output_read1_file", 
+                    "type": "fastqsanger"
+                }, 
+                {
+                    "name": "output_read2_file", 
+                    "type": "fastqsanger"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 954.93310546875, 
+                "top": 1044.433349609375
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "PrepareFastqLight", 
+            "tool_state": "{\"__page__\": 0, \"quality_type\": \"\\\"illumina\\\"\", \"min_length\": \"\\\"30\\\"\", \"__rerun_remap_job_id__\": null, \"min_quality\": \"\\\"30\\\"\", \"input_read1_file\": \"null\", \"input_read2_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "13": {
+            "annotation": "", 
+            "id": 13, 
+            "input_connections": {
+                "input_read1_file": {
+                    "id": 4, 
+                    "output_name": "output_file8"
+                }, 
+                "input_read2_file": {
+                    "id": 5, 
+                    "output_name": "output_file8"
+                }
+            }, 
+            "inputs": [], 
+            "name": "PrepareFastqLight", 
+            "outputs": [
+                {
+                    "name": "output_read1_file", 
+                    "type": "fastqsanger"
+                }, 
+                {
+                    "name": "output_read2_file", 
+                    "type": "fastqsanger"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 1265.93310546875, 
+                "top": 815.433349609375
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "PrepareFastqLight", 
+            "tool_state": "{\"__page__\": 0, \"quality_type\": \"\\\"illumina\\\"\", \"min_length\": \"\\\"30\\\"\", \"__rerun_remap_job_id__\": null, \"min_quality\": \"\\\"30\\\"\", \"input_read1_file\": \"null\", \"input_read2_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "14": {
+            "annotation": "", 
+            "id": 14, 
+            "input_connections": {
+                "input_read1_file": {
+                    "id": 4, 
+                    "output_name": "output_file5"
+                }, 
+                "input_read2_file": {
+                    "id": 5, 
+                    "output_name": "output_file5"
+                }
+            }, 
+            "inputs": [], 
+            "name": "PrepareFastqLight", 
+            "outputs": [
+                {
+                    "name": "output_read1_file", 
+                    "type": "fastqsanger"
+                }, 
+                {
+                    "name": "output_read2_file", 
+                    "type": "fastqsanger"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 953.93310546875, 
+                "top": 1282.433349609375
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "PrepareFastqLight", 
+            "tool_state": "{\"__page__\": 0, \"quality_type\": \"\\\"illumina\\\"\", \"min_length\": \"\\\"30\\\"\", \"__rerun_remap_job_id__\": null, \"min_quality\": \"\\\"30\\\"\", \"input_read1_file\": \"null\", \"input_read2_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "15": {
+            "annotation": "", 
+            "id": 15, 
+            "input_connections": {
+                "input_read1_file": {
+                    "id": 4, 
+                    "output_name": "output_file9"
+                }, 
+                "input_read2_file": {
+                    "id": 5, 
+                    "output_name": "output_file9"
+                }
+            }, 
+            "inputs": [], 
+            "name": "PrepareFastqLight", 
+            "outputs": [
+                {
+                    "name": "output_read1_file", 
+                    "type": "fastqsanger"
+                }, 
+                {
+                    "name": "output_read2_file", 
+                    "type": "fastqsanger"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 1265.93310546875, 
+                "top": 1043.433349609375
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "PrepareFastqLight", 
+            "tool_state": "{\"__page__\": 0, \"quality_type\": \"\\\"illumina\\\"\", \"min_length\": \"\\\"30\\\"\", \"__rerun_remap_job_id__\": null, \"min_quality\": \"\\\"30\\\"\", \"input_read1_file\": \"null\", \"input_read2_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "16": {
+            "annotation": "", 
+            "id": 16, 
+            "input_connections": {
+                "input_read1_file": {
+                    "id": 4, 
+                    "output_name": "output_file10"
+                }, 
+                "input_read2_file": {
+                    "id": 5, 
+                    "output_name": "output_file10"
+                }
+            }, 
+            "inputs": [], 
+            "name": "PrepareFastqLight", 
+            "outputs": [
+                {
+                    "name": "output_read1_file", 
+                    "type": "fastqsanger"
+                }, 
+                {
+                    "name": "output_read2_file", 
+                    "type": "fastqsanger"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 1270.93310546875, 
+                "top": 1281.433349609375
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "PrepareFastqLight", 
+            "tool_state": "{\"__page__\": 0, \"quality_type\": \"\\\"illumina\\\"\", \"min_length\": \"\\\"30\\\"\", \"__rerun_remap_job_id__\": null, \"min_quality\": \"\\\"30\\\"\", \"input_read1_file\": \"null\", \"input_read2_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "17": {
+            "annotation": "", 
+            "id": 17, 
+            "input_connections": {
+                "input_file": {
+                    "id": 6, 
+                    "output_name": "output_fasta"
+                }
+            }, 
+            "inputs": [], 
+            "name": "NCBI BLAST+ makeblastdb", 
+            "outputs": [
+                {
+                    "name": "outfile", 
+                    "type": "data"
+                }
+            ], 
+            "position": {
+                "left": 5062.25, 
+                "top": 221.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/ncbi_blast_plus/ncbi_makeblastdb/0.1.00", 
+            "tool_state": "{\"__page__\": 0, \"mask_data_file\": \"null\", \"input_file\": \"null\", \"dbtype\": \"\\\"nucl\\\"\", \"__rerun_remap_job_id__\": null, \"hash_index\": \"\\\"True\\\"\", \"tax\": \"{\\\"taxselect\\\": \\\"\\\", \\\"__current_case__\\\": 0}\", \"title\": \"\\\"\\\"\", \"parse_seqids\": \"\\\"False\\\"\"}", 
+            "tool_version": "0.1.00", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "18": {
+            "annotation": "", 
+            "id": 18, 
+            "input_connections": {
+                "genomeSource|ownFile": {
+                    "id": 2, 
+                    "output_name": "output"
+                }, 
+                "paired|input1": {
+                    "id": 7, 
+                    "output_name": "output_read1_file"
+                }, 
+                "paired|input2": {
+                    "id": 7, 
+                    "output_name": "output_read2_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "Map with BWA for Illumina", 
+            "outputs": [
+                {
+                    "name": "output", 
+                    "type": "sam"
+                }
+            ], 
+            "position": {
+                "left": 1576.25, 
+                "top": 346.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/bwa_wrappers/bwa_wrapper/1.2.3", 
+            "tool_state": "{\"genomeSource\": \"{\\\"refGenomeSource\\\": \\\"history\\\", \\\"ownFile\\\": null, \\\"__current_case__\\\": 1}\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"paired\": \"{\\\"input2\\\": null, \\\"sPaired\\\": \\\"paired\\\", \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"params\": \"{\\\"__current_case__\\\": 0, \\\"source_select\\\": \\\"pre_set\\\"}\", \"suppressHeader\": \"\\\"False\\\"\"}", 
+            "tool_version": "1.2.3", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "19": {
+            "annotation": "", 
+            "id": 19, 
+            "input_connections": {
+                "genomeSource|ownFile": {
+                    "id": 2, 
+                    "output_name": "output"
+                }, 
+                "paired|input1": {
+                    "id": 8, 
+                    "output_name": "output_read1_file"
+                }, 
+                "paired|input2": {
+                    "id": 8, 
+                    "output_name": "output_read2_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "Map with BWA for Illumina", 
+            "outputs": [
+                {
+                    "name": "output", 
+                    "type": "sam"
+                }
+            ], 
+            "position": {
+                "left": 1571.25, 
+                "top": 589.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/bwa_wrappers/bwa_wrapper/1.2.3", 
+            "tool_state": "{\"genomeSource\": \"{\\\"refGenomeSource\\\": \\\"history\\\", \\\"ownFile\\\": null, \\\"__current_case__\\\": 1}\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"paired\": \"{\\\"input2\\\": null, \\\"sPaired\\\": \\\"paired\\\", \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"params\": \"{\\\"__current_case__\\\": 0, \\\"source_select\\\": \\\"pre_set\\\"}\", \"suppressHeader\": \"\\\"False\\\"\"}", 
+            "tool_version": "1.2.3", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "20": {
+            "annotation": "", 
+            "id": 20, 
+            "input_connections": {
+                "genomeSource|ownFile": {
+                    "id": 2, 
+                    "output_name": "output"
+                }, 
+                "paired|input1": {
+                    "id": 9, 
+                    "output_name": "output_read1_file"
+                }, 
+                "paired|input2": {
+                    "id": 9, 
+                    "output_name": "output_read2_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "Map with BWA for Illumina", 
+            "outputs": [
+                {
+                    "name": "output", 
+                    "type": "sam"
+                }
+            ], 
+            "position": {
+                "left": 1562.25, 
+                "top": 819.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/bwa_wrappers/bwa_wrapper/1.2.3", 
+            "tool_state": "{\"genomeSource\": \"{\\\"refGenomeSource\\\": \\\"history\\\", \\\"ownFile\\\": null, \\\"__current_case__\\\": 1}\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"paired\": \"{\\\"input2\\\": null, \\\"sPaired\\\": \\\"paired\\\", \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"params\": \"{\\\"__current_case__\\\": 0, \\\"source_select\\\": \\\"pre_set\\\"}\", \"suppressHeader\": \"\\\"False\\\"\"}", 
+            "tool_version": "1.2.3", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "21": {
+            "annotation": "", 
+            "id": 21, 
+            "input_connections": {
+                "genomeSource|ownFile": {
+                    "id": 2, 
+                    "output_name": "output"
+                }, 
+                "paired|input1": {
+                    "id": 10, 
+                    "output_name": "output_read1_file"
+                }, 
+                "paired|input2": {
+                    "id": 10, 
+                    "output_name": "output_read2_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "Map with BWA for Illumina", 
+            "outputs": [
+                {
+                    "name": "output", 
+                    "type": "sam"
+                }
+            ], 
+            "position": {
+                "left": 1826.25, 
+                "top": 350.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/bwa_wrappers/bwa_wrapper/1.2.3", 
+            "tool_state": "{\"genomeSource\": \"{\\\"refGenomeSource\\\": \\\"history\\\", \\\"ownFile\\\": null, \\\"__current_case__\\\": 1}\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"paired\": \"{\\\"input2\\\": null, \\\"sPaired\\\": \\\"paired\\\", \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"params\": \"{\\\"__current_case__\\\": 0, \\\"source_select\\\": \\\"pre_set\\\"}\", \"suppressHeader\": \"\\\"False\\\"\"}", 
+            "tool_version": "1.2.3", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "22": {
+            "annotation": "", 
+            "id": 22, 
+            "input_connections": {
+                "genomeSource|ownFile": {
+                    "id": 2, 
+                    "output_name": "output"
+                }, 
+                "paired|input1": {
+                    "id": 11, 
+                    "output_name": "output_read1_file"
+                }, 
+                "paired|input2": {
+                    "id": 11, 
+                    "output_name": "output_read2_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "Map with BWA for Illumina", 
+            "outputs": [
+                {
+                    "name": "output", 
+                    "type": "sam"
+                }
+            ], 
+            "position": {
+                "left": 1824.25, 
+                "top": 592.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/bwa_wrappers/bwa_wrapper/1.2.3", 
+            "tool_state": "{\"genomeSource\": \"{\\\"refGenomeSource\\\": \\\"history\\\", \\\"ownFile\\\": null, \\\"__current_case__\\\": 1}\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"paired\": \"{\\\"input2\\\": null, \\\"sPaired\\\": \\\"paired\\\", \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"params\": \"{\\\"__current_case__\\\": 0, \\\"source_select\\\": \\\"pre_set\\\"}\", \"suppressHeader\": \"\\\"False\\\"\"}", 
+            "tool_version": "1.2.3", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "23": {
+            "annotation": "", 
+            "id": 23, 
+            "input_connections": {
+                "genomeSource|ownFile": {
+                    "id": 2, 
+                    "output_name": "output"
+                }, 
+                "paired|input1": {
+                    "id": 12, 
+                    "output_name": "output_read1_file"
+                }, 
+                "paired|input2": {
+                    "id": 12, 
+                    "output_name": "output_read2_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "Map with BWA for Illumina", 
+            "outputs": [
+                {
+                    "name": "output", 
+                    "type": "sam"
+                }
+            ], 
+            "position": {
+                "left": 1562.25, 
+                "top": 1045.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/bwa_wrappers/bwa_wrapper/1.2.3", 
+            "tool_state": "{\"genomeSource\": \"{\\\"refGenomeSource\\\": \\\"history\\\", \\\"ownFile\\\": null, \\\"__current_case__\\\": 1}\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"paired\": \"{\\\"input2\\\": null, \\\"sPaired\\\": \\\"paired\\\", \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"params\": \"{\\\"__current_case__\\\": 0, \\\"source_select\\\": \\\"pre_set\\\"}\", \"suppressHeader\": \"\\\"False\\\"\"}", 
+            "tool_version": "1.2.3", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "24": {
+            "annotation": "", 
+            "id": 24, 
+            "input_connections": {
+                "genomeSource|ownFile": {
+                    "id": 2, 
+                    "output_name": "output"
+                }, 
+                "paired|input1": {
+                    "id": 13, 
+                    "output_name": "output_read1_file"
+                }, 
+                "paired|input2": {
+                    "id": 13, 
+                    "output_name": "output_read2_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "Map with BWA for Illumina", 
+            "outputs": [
+                {
+                    "name": "output", 
+                    "type": "sam"
+                }
+            ], 
+            "position": {
+                "left": 1818.25, 
+                "top": 821.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/bwa_wrappers/bwa_wrapper/1.2.3", 
+            "tool_state": "{\"genomeSource\": \"{\\\"refGenomeSource\\\": \\\"history\\\", \\\"ownFile\\\": null, \\\"__current_case__\\\": 1}\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"paired\": \"{\\\"input2\\\": null, \\\"sPaired\\\": \\\"paired\\\", \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"params\": \"{\\\"__current_case__\\\": 0, \\\"source_select\\\": \\\"pre_set\\\"}\", \"suppressHeader\": \"\\\"False\\\"\"}", 
+            "tool_version": "1.2.3", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "25": {
+            "annotation": "", 
+            "id": 25, 
+            "input_connections": {
+                "genomeSource|ownFile": {
+                    "id": 2, 
+                    "output_name": "output"
+                }, 
+                "paired|input1": {
+                    "id": 14, 
+                    "output_name": "output_read1_file"
+                }, 
+                "paired|input2": {
+                    "id": 14, 
+                    "output_name": "output_read2_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "Map with BWA for Illumina", 
+            "outputs": [
+                {
+                    "name": "output", 
+                    "type": "sam"
+                }
+            ], 
+            "position": {
+                "left": 1563.25, 
+                "top": 1284.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/bwa_wrappers/bwa_wrapper/1.2.3", 
+            "tool_state": "{\"genomeSource\": \"{\\\"refGenomeSource\\\": \\\"history\\\", \\\"ownFile\\\": null, \\\"__current_case__\\\": 1}\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"paired\": \"{\\\"input2\\\": null, \\\"sPaired\\\": \\\"paired\\\", \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"params\": \"{\\\"__current_case__\\\": 0, \\\"source_select\\\": \\\"pre_set\\\"}\", \"suppressHeader\": \"\\\"False\\\"\"}", 
+            "tool_version": "1.2.3", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "26": {
+            "annotation": "", 
+            "id": 26, 
+            "input_connections": {
+                "genomeSource|ownFile": {
+                    "id": 2, 
+                    "output_name": "output"
+                }, 
+                "paired|input1": {
+                    "id": 15, 
+                    "output_name": "output_read1_file"
+                }, 
+                "paired|input2": {
+                    "id": 15, 
+                    "output_name": "output_read2_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "Map with BWA for Illumina", 
+            "outputs": [
+                {
+                    "name": "output", 
+                    "type": "sam"
+                }
+            ], 
+            "position": {
+                "left": 1813.25, 
+                "top": 1044.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/bwa_wrappers/bwa_wrapper/1.2.3", 
+            "tool_state": "{\"genomeSource\": \"{\\\"refGenomeSource\\\": \\\"history\\\", \\\"ownFile\\\": null, \\\"__current_case__\\\": 1}\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"paired\": \"{\\\"input2\\\": null, \\\"sPaired\\\": \\\"paired\\\", \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"params\": \"{\\\"__current_case__\\\": 0, \\\"source_select\\\": \\\"pre_set\\\"}\", \"suppressHeader\": \"\\\"False\\\"\"}", 
+            "tool_version": "1.2.3", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "27": {
+            "annotation": "", 
+            "id": 27, 
+            "input_connections": {
+                "genomeSource|ownFile": {
+                    "id": 2, 
+                    "output_name": "output"
+                }, 
+                "paired|input1": {
+                    "id": 16, 
+                    "output_name": "output_read1_file"
+                }, 
+                "paired|input2": {
+                    "id": 16, 
+                    "output_name": "output_read2_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "Map with BWA for Illumina", 
+            "outputs": [
+                {
+                    "name": "output", 
+                    "type": "sam"
+                }
+            ], 
+            "position": {
+                "left": 1807.25, 
+                "top": 1286.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/bwa_wrappers/bwa_wrapper/1.2.3", 
+            "tool_state": "{\"genomeSource\": \"{\\\"refGenomeSource\\\": \\\"history\\\", \\\"ownFile\\\": null, \\\"__current_case__\\\": 1}\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"paired\": \"{\\\"input2\\\": null, \\\"sPaired\\\": \\\"paired\\\", \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"params\": \"{\\\"__current_case__\\\": 0, \\\"source_select\\\": \\\"pre_set\\\"}\", \"suppressHeader\": \"\\\"False\\\"\"}", 
+            "tool_version": "1.2.3", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "28": {
+            "annotation": "", 
+            "id": 28, 
+            "input_connections": {
+                "input_sam_file": {
+                    "id": 18, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "filtersam_mapped_and_unique", 
+            "outputs": [
+                {
+                    "name": "output_sam_file", 
+                    "type": "sam"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 2096.75, 
+                "top": 353.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "filtersam_mapped_and_unique", 
+            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_sam_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "29": {
+            "annotation": "", 
+            "id": 29, 
+            "input_connections": {
+                "input_sam_file": {
+                    "id": 19, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "filtersam_mapped_and_unique", 
+            "outputs": [
+                {
+                    "name": "output_sam_file", 
+                    "type": "sam"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 2093.75, 
+                "top": 596.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "filtersam_mapped_and_unique", 
+            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_sam_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "30": {
+            "annotation": "", 
+            "id": 30, 
+            "input_connections": {
+                "input_sam_file": {
+                    "id": 20, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "filtersam_mapped_and_unique", 
+            "outputs": [
+                {
+                    "name": "output_sam_file", 
+                    "type": "sam"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 2091.75, 
+                "top": 827.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "filtersam_mapped_and_unique", 
+            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_sam_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "31": {
+            "annotation": "", 
+            "id": 31, 
+            "input_connections": {
+                "input_sam_file": {
+                    "id": 21, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "filtersam_mapped_and_unique", 
+            "outputs": [
+                {
+                    "name": "output_sam_file", 
+                    "type": "sam"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 2443.75, 
+                "top": 356.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "filtersam_mapped_and_unique", 
+            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_sam_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "32": {
+            "annotation": "", 
+            "id": 32, 
+            "input_connections": {
+                "input_sam_file": {
+                    "id": 22, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "filtersam_mapped_and_unique", 
+            "outputs": [
+                {
+                    "name": "output_sam_file", 
+                    "type": "sam"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 2438.75, 
+                "top": 596.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "filtersam_mapped_and_unique", 
+            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_sam_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "33": {
+            "annotation": "", 
+            "id": 33, 
+            "input_connections": {
+                "input_sam_file": {
+                    "id": 23, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "filtersam_mapped_and_unique", 
+            "outputs": [
+                {
+                    "name": "output_sam_file", 
+                    "type": "sam"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 2087.75, 
+                "top": 1046.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "filtersam_mapped_and_unique", 
+            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_sam_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "34": {
+            "annotation": "", 
+            "id": 34, 
+            "input_connections": {
+                "input_sam_file": {
+                    "id": 24, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "filtersam_mapped_and_unique", 
+            "outputs": [
+                {
+                    "name": "output_sam_file", 
+                    "type": "sam"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 2432.75, 
+                "top": 826.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "filtersam_mapped_and_unique", 
+            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_sam_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "35": {
+            "annotation": "", 
+            "id": 35, 
+            "input_connections": {
+                "input_sam_file": {
+                    "id": 25, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "filtersam_mapped_and_unique", 
+            "outputs": [
+                {
+                    "name": "output_sam_file", 
+                    "type": "sam"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 2089.75, 
+                "top": 1289.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "filtersam_mapped_and_unique", 
+            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_sam_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "36": {
+            "annotation": "", 
+            "id": 36, 
+            "input_connections": {
+                "input_sam_file": {
+                    "id": 26, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "filtersam_mapped_and_unique", 
+            "outputs": [
+                {
+                    "name": "output_sam_file", 
+                    "type": "sam"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 2436.75, 
+                "top": 1048.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "filtersam_mapped_and_unique", 
+            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_sam_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "37": {
+            "annotation": "", 
+            "id": 37, 
+            "input_connections": {
+                "input_sam_file": {
+                    "id": 27, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "filtersam_mapped_and_unique", 
+            "outputs": [
+                {
+                    "name": "output_sam_file", 
+                    "type": "sam"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 2437.75, 
+                "top": 1289.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "filtersam_mapped_and_unique", 
+            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_sam_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "38": {
+            "annotation": "", 
+            "id": 38, 
+            "input_connections": {
+                "input_files": [
+                    {
+                        "id": 37, 
+                        "output_name": "output_sam_file"
+                    }, 
+                    {
+                        "id": 36, 
+                        "output_name": "output_sam_file"
+                    }, 
+                    {
+                        "id": 35, 
+                        "output_name": "output_sam_file"
+                    }, 
+                    {
+                        "id": 34, 
+                        "output_name": "output_sam_file"
+                    }, 
+                    {
+                        "id": 33, 
+                        "output_name": "output_sam_file"
+                    }, 
+                    {
+                        "id": 32, 
+                        "output_name": "output_sam_file"
+                    }, 
+                    {
+                        "id": 31, 
+                        "output_name": "output_sam_file"
+                    }, 
+                    {
+                        "id": 30, 
+                        "output_name": "output_sam_file"
+                    }, 
+                    {
+                        "id": 29, 
+                        "output_name": "output_sam_file"
+                    }, 
+                    {
+                        "id": 28, 
+                        "output_name": "output_sam_file"
+                    }
+                ]
+            }, 
+            "inputs": [], 
+            "name": "MergeSamFiles", 
+            "outputs": [
+                {
+                    "name": "output_file", 
+                    "type": "sam"
+                }
+            ], 
+            "position": {
+                "left": 2900.25, 
+                "top": 806.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "MergeSamFiles", 
+            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_files\": \"null\"}", 
+            "tool_version": "1.00", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "39": {
+            "annotation": "", 
+            "id": 39, 
+            "input_connections": {
+                "source|input1": {
+                    "id": 38, 
+                    "output_name": "output_file"
+                }, 
+                "source|ref_file": {
+                    "id": 2, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "SAM-to-BAM", 
+            "outputs": [
+                {
+                    "name": "output1", 
+                    "type": "bam"
+                }
+            ], 
+            "position": {
+                "left": 3233.25, 
+                "top": 807.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/sam_to_bam/sam_to_bam/1.1.4", 
+            "tool_state": "{\"source\": \"{\\\"index_source\\\": \\\"history\\\", \\\"ref_file\\\": null, \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"__rerun_remap_job_id__\": null, \"__page__\": 0}", 
+            "tool_version": "1.1.4", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "40": {
+            "annotation": "", 
+            "id": 40, 
+            "input_connections": {
+                "reference_source|input_bams_0|input_bam": {
+                    "id": 39, 
+                    "output_name": "output1"
+                }, 
+                "reference_source|ref_file": {
+                    "id": 2, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "MPileup", 
+            "outputs": [
+                {
+                    "name": "output_mpileup", 
+                    "type": "pileup"
+                }, 
+                {
+                    "name": "output_log", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 3462.25, 
+                "top": 809.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/samtools_mpileup/samtools_mpileup/0.0.3", 
+            "tool_state": "{\"__page__\": 0, \"advanced_options\": \"{\\\"max_reads_per_bam\\\": \\\"250\\\", \\\"advanced_options_selector\\\": \\\"advanced\\\", \\\"extended_BAQ_computation\\\": \\\"False\\\", \\\"region_string\\\": \\\"\\\", \\\"output_per_sample_strand_bias_p_value\\\": \\\"False\\\", \\\"minimum_base_quality\\\": \\\"0\\\", \\\"disable_probabilistic_realignment\\\": \\\"False\\\", \\\"skip_anomalous_read_pairs\\\": \\\"False\\\", \\\"minimum_mapping_quality\\\": \\\"0\\\", \\\"output_per_sample_read_depth\\\": \\\"False\\\", \\\"__current_case__\\\": 0, \\\"position_list\\\": null, \\\"coefficient_for_downgrading\\\": \\\"0\\\"}\", \"__rerun_remap_job_id__\": null, \"genotype_likelihood_computation_type\": \"{\\\"genotype_likelihood_computation_type_selector\\\": \\\"do_not_perform_genotype_likelihood_computation\\\", \\\"__current_case__\\\": 1}\", \"reference_source\": \"{\\\"ref_file\\\": null, \\\"reference_source_selector\\\": \\\"history\\\", \\\"input_bams\\\": [{\\\"__index__\\\": 0, \\\"input_bam\\\": null}], \\\"__current_case__\\\": 1}\"}", 
+            "tool_version": "0.0.3", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "41": {
+            "annotation": "", 
+            "id": 41, 
+            "input_connections": {
+                "input_pileup_file": {
+                    "id": 40, 
+                    "output_name": "output_mpileup"
+                }
+            }, 
+            "inputs": [], 
+            "name": "PileupVariant", 
+            "outputs": [
+                {
+                    "name": "output_pileup_file", 
+                    "type": "pileup"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 3743.25, 
+                "top": 901.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "PileupVariant", 
+            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_pileup_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "42": {
+            "annotation": "", 
+            "id": 42, 
+            "input_connections": {
+                "input_list1": {
+                    "id": 41, 
+                    "output_name": "output_pileup_file"
+                }, 
+                "input_list2": {
+                    "id": 3, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "listfiltering", 
+            "outputs": [
+                {
+                    "name": "output_file", 
+                    "type": "pileup"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 4107.25, 
+                "top": 905.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "listfiltering", 
+            "tool_state": "{\"__page__\": 0, \"input_list2\": \"null\", \"input_list1\": \"null\", \"__rerun_remap_job_id__\": null, \"nb_col\": \"\\\"2\\\"\", \"type\": \"\\\"specific\\\"\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "43": {
+            "annotation": "", 
+            "id": 43, 
+            "input_connections": {
+                "input_file": {
+                    "id": 42, 
+                    "output_name": "output_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "SplitFile10x", 
+            "outputs": [
+                {
+                    "name": "output_file1", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file2", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file3", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file4", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file5", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file6", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file7", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file8", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file9", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file10", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 4405.25, 
+                "top": 635.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "SplitFile10x", 
+            "tool_state": "{\"out_format\": \"\\\"pileup\\\"\", \"line_number\": \"\\\"4\\\"\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_file\": \"null\"}", 
+            "tool_version": "1.00", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "44": {
+            "annotation": "", 
+            "id": 44, 
+            "input_connections": {
+                "input_assembly_file": {
+                    "id": 2, 
+                    "output_name": "output"
+                }, 
+                "input_variant_file": {
+                    "id": 43, 
+                    "output_name": "output_file1"
+                }
+            }, 
+            "inputs": [], 
+            "name": "extractseq", 
+            "outputs": [
+                {
+                    "name": "output_file", 
+                    "type": "fasta"
+                }
+            ], 
+            "position": {
+                "left": 4738.25, 
+                "top": 471.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "extractseq", 
+            "tool_state": "{\"__page__\": 0, \"input_variant_file\": \"null\", \"__rerun_remap_job_id__\": null, \"window_length\": \"\\\"50\\\"\", \"input_assembly_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "45": {
+            "annotation": "", 
+            "id": 45, 
+            "input_connections": {
+                "input_assembly_file": {
+                    "id": 2, 
+                    "output_name": "output"
+                }, 
+                "input_variant_file": {
+                    "id": 43, 
+                    "output_name": "output_file2"
+                }
+            }, 
+            "inputs": [], 
+            "name": "extractseq", 
+            "outputs": [
+                {
+                    "name": "output_file", 
+                    "type": "fasta"
+                }
+            ], 
+            "position": {
+                "left": 4739.25, 
+                "top": 655.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "extractseq", 
+            "tool_state": "{\"__page__\": 0, \"input_variant_file\": \"null\", \"__rerun_remap_job_id__\": null, \"window_length\": \"\\\"50\\\"\", \"input_assembly_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "46": {
+            "annotation": "", 
+            "id": 46, 
+            "input_connections": {
+                "input_assembly_file": {
+                    "id": 2, 
+                    "output_name": "output"
+                }, 
+                "input_variant_file": {
+                    "id": 43, 
+                    "output_name": "output_file3"
+                }
+            }, 
+            "inputs": [], 
+            "name": "extractseq", 
+            "outputs": [
+                {
+                    "name": "output_file", 
+                    "type": "fasta"
+                }
+            ], 
+            "position": {
+                "left": 4733.25, 
+                "top": 855.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "extractseq", 
+            "tool_state": "{\"__page__\": 0, \"input_variant_file\": \"null\", \"__rerun_remap_job_id__\": null, \"window_length\": \"\\\"50\\\"\", \"input_assembly_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "47": {
+            "annotation": "", 
+            "id": 47, 
+            "input_connections": {
+                "input_assembly_file": {
+                    "id": 2, 
+                    "output_name": "output"
+                }, 
+                "input_variant_file": {
+                    "id": 43, 
+                    "output_name": "output_file4"
+                }
+            }, 
+            "inputs": [], 
+            "name": "extractseq", 
+            "outputs": [
+                {
+                    "name": "output_file", 
+                    "type": "fasta"
+                }
+            ], 
+            "position": {
+                "left": 4737.25, 
+                "top": 1051.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "extractseq", 
+            "tool_state": "{\"__page__\": 0, \"input_variant_file\": \"null\", \"__rerun_remap_job_id__\": null, \"window_length\": \"\\\"50\\\"\", \"input_assembly_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "48": {
+            "annotation": "", 
+            "id": 48, 
+            "input_connections": {
+                "input_assembly_file": {
+                    "id": 2, 
+                    "output_name": "output"
+                }, 
+                "input_variant_file": {
+                    "id": 43, 
+                    "output_name": "output_file5"
+                }
+            }, 
+            "inputs": [], 
+            "name": "extractseq", 
+            "outputs": [
+                {
+                    "name": "output_file", 
+                    "type": "fasta"
+                }
+            ], 
+            "position": {
+                "left": 4742.25, 
+                "top": 1228.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "extractseq", 
+            "tool_state": "{\"__page__\": 0, \"input_variant_file\": \"null\", \"__rerun_remap_job_id__\": null, \"window_length\": \"\\\"50\\\"\", \"input_assembly_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "49": {
+            "annotation": "", 
+            "id": 49, 
+            "input_connections": {
+                "input_assembly_file": {
+                    "id": 2, 
+                    "output_name": "output"
+                }, 
+                "input_variant_file": {
+                    "id": 43, 
+                    "output_name": "output_file6"
+                }
+            }, 
+            "inputs": [], 
+            "name": "extractseq", 
+            "outputs": [
+                {
+                    "name": "output_file", 
+                    "type": "fasta"
+                }
+            ], 
+            "position": {
+                "left": 5066.25, 
+                "top": 474.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "extractseq", 
+            "tool_state": "{\"__page__\": 0, \"input_variant_file\": \"null\", \"__rerun_remap_job_id__\": null, \"window_length\": \"\\\"50\\\"\", \"input_assembly_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "50": {
+            "annotation": "", 
+            "id": 50, 
+            "input_connections": {
+                "input_assembly_file": {
+                    "id": 2, 
+                    "output_name": "output"
+                }, 
+                "input_variant_file": {
+                    "id": 43, 
+                    "output_name": "output_file7"
+                }
+            }, 
+            "inputs": [], 
+            "name": "extractseq", 
+            "outputs": [
+                {
+                    "name": "output_file", 
+                    "type": "fasta"
+                }
+            ], 
+            "position": {
+                "left": 5069.25, 
+                "top": 656.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "extractseq", 
+            "tool_state": "{\"__page__\": 0, \"input_variant_file\": \"null\", \"__rerun_remap_job_id__\": null, \"window_length\": \"\\\"50\\\"\", \"input_assembly_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "51": {
+            "annotation": "", 
+            "id": 51, 
+            "input_connections": {
+                "input_assembly_file": {
+                    "id": 2, 
+                    "output_name": "output"
+                }, 
+                "input_variant_file": {
+                    "id": 43, 
+                    "output_name": "output_file8"
+                }
+            }, 
+            "inputs": [], 
+            "name": "extractseq", 
+            "outputs": [
+                {
+                    "name": "output_file", 
+                    "type": "fasta"
+                }
+            ], 
+            "position": {
+                "left": 5073.25, 
+                "top": 858.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "extractseq", 
+            "tool_state": "{\"__page__\": 0, \"input_variant_file\": \"null\", \"__rerun_remap_job_id__\": null, \"window_length\": \"\\\"50\\\"\", \"input_assembly_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "52": {
+            "annotation": "", 
+            "id": 52, 
+            "input_connections": {
+                "input_assembly_file": {
+                    "id": 2, 
+                    "output_name": "output"
+                }, 
+                "input_variant_file": {
+                    "id": 43, 
+                    "output_name": "output_file9"
+                }
+            }, 
+            "inputs": [], 
+            "name": "extractseq", 
+            "outputs": [
+                {
+                    "name": "output_file", 
+                    "type": "fasta"
+                }
+            ], 
+            "position": {
+                "left": 5071.25, 
+                "top": 1046.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "extractseq", 
+            "tool_state": "{\"__page__\": 0, \"input_variant_file\": \"null\", \"__rerun_remap_job_id__\": null, \"window_length\": \"\\\"50\\\"\", \"input_assembly_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "53": {
+            "annotation": "", 
+            "id": 53, 
+            "input_connections": {
+                "input_assembly_file": {
+                    "id": 2, 
+                    "output_name": "output"
+                }, 
+                "input_variant_file": {
+                    "id": 43, 
+                    "output_name": "output_file10"
+                }
+            }, 
+            "inputs": [], 
+            "name": "extractseq", 
+            "outputs": [
+                {
+                    "name": "output_file", 
+                    "type": "fasta"
+                }
+            ], 
+            "position": {
+                "left": 5078.25, 
+                "top": 1229.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "extractseq", 
+            "tool_state": "{\"__page__\": 0, \"input_variant_file\": \"null\", \"__rerun_remap_job_id__\": null, \"window_length\": \"\\\"50\\\"\", \"input_assembly_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "54": {
+            "annotation": "", 
+            "id": 54, 
+            "input_connections": {
+                "db_opts|histdb": {
+                    "id": 17, 
+                    "output_name": "outfile"
+                }, 
+                "query": {
+                    "id": 44, 
+                    "output_name": "output_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "NCBI BLAST+ blastn", 
+            "outputs": [
+                {
+                    "name": "output1", 
+                    "type": "tabular"
+                }
+            ], 
+            "position": {
+                "left": 5398.75, 
+                "top": 475.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/ncbi_blast_plus/ncbi_blastn_wrapper/0.1.00", 
+            "tool_state": "{\"evalue_cutoff\": \"\\\"0.001\\\"\", \"__page__\": 0, \"adv_opts\": \"{\\\"identity_cutoff\\\": \\\"0.0\\\", \\\"adv_opts_selector\\\": \\\"advanced\\\", \\\"ungapped\\\": \\\"False\\\", \\\"filter_query\\\": \\\"False\\\", \\\"word_size\\\": \\\"0\\\", \\\"__current_case__\\\": 1, \\\"parse_deflines\\\": \\\"False\\\", \\\"strand\\\": \\\"-strand both\\\", \\\"max_hits\\\": \\\"8\\\"}\", \"__rerun_remap_job_id__\": null, \"blast_type\": \"\\\"megablast\\\"\", \"db_opts\": \"{\\\"db_opts_selector\\\": \\\"histdb\\\", \\\"subject\\\": \\\"\\\", \\\"histdb\\\": null, \\\"__current_case__\\\": 1, \\\"database\\\": \\\"\\\"}\", \"output\": \"{\\\"out_format\\\": \\\"cols\\\", \\\"std_cols\\\": [\\\"qseqid\\\", \\\"qstart\\\", \\\"qend\\\"], \\\"ids_cols\\\": null, \\\"tax_cols\\\": null, \\\"__current_case__\\\": 2, \\\"misc_cols\\\": null, \\\"ext_cols\\\": [\\\"qseq\\\", \\\"sseq\\\"]}\", \"query\": \"null\"}", 
+            "tool_version": "0.1.00", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "55": {
+            "annotation": "", 
+            "id": 55, 
+            "input_connections": {
+                "db_opts|histdb": {
+                    "id": 17, 
+                    "output_name": "outfile"
+                }, 
+                "query": {
+                    "id": 45, 
+                    "output_name": "output_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "NCBI BLAST+ blastn", 
+            "outputs": [
+                {
+                    "name": "output1", 
+                    "type": "tabular"
+                }
+            ], 
+            "position": {
+                "left": 5395.75, 
+                "top": 656.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/ncbi_blast_plus/ncbi_blastn_wrapper/0.1.00", 
+            "tool_state": "{\"evalue_cutoff\": \"\\\"0.001\\\"\", \"__page__\": 0, \"adv_opts\": \"{\\\"identity_cutoff\\\": \\\"0.0\\\", \\\"adv_opts_selector\\\": \\\"advanced\\\", \\\"ungapped\\\": \\\"False\\\", \\\"filter_query\\\": \\\"False\\\", \\\"word_size\\\": \\\"0\\\", \\\"__current_case__\\\": 1, \\\"parse_deflines\\\": \\\"False\\\", \\\"strand\\\": \\\"-strand both\\\", \\\"max_hits\\\": \\\"8\\\"}\", \"__rerun_remap_job_id__\": null, \"blast_type\": \"\\\"megablast\\\"\", \"db_opts\": \"{\\\"db_opts_selector\\\": \\\"histdb\\\", \\\"subject\\\": \\\"\\\", \\\"histdb\\\": null, \\\"__current_case__\\\": 1, \\\"database\\\": \\\"\\\"}\", \"output\": \"{\\\"out_format\\\": \\\"cols\\\", \\\"std_cols\\\": [\\\"qseqid\\\", \\\"qstart\\\", \\\"qend\\\"], \\\"ids_cols\\\": null, \\\"tax_cols\\\": null, \\\"__current_case__\\\": 2, \\\"misc_cols\\\": null, \\\"ext_cols\\\": [\\\"qseq\\\", \\\"sseq\\\"]}\", \"query\": \"null\"}", 
+            "tool_version": "0.1.00", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "56": {
+            "annotation": "", 
+            "id": 56, 
+            "input_connections": {
+                "db_opts|histdb": {
+                    "id": 17, 
+                    "output_name": "outfile"
+                }, 
+                "query": {
+                    "id": 46, 
+                    "output_name": "output_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "NCBI BLAST+ blastn", 
+            "outputs": [
+                {
+                    "name": "output1", 
+                    "type": "tabular"
+                }
+            ], 
+            "position": {
+                "left": 5391.75, 
+                "top": 860.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/ncbi_blast_plus/ncbi_blastn_wrapper/0.1.00", 
+            "tool_state": "{\"evalue_cutoff\": \"\\\"0.001\\\"\", \"__page__\": 0, \"adv_opts\": \"{\\\"identity_cutoff\\\": \\\"0.0\\\", \\\"adv_opts_selector\\\": \\\"advanced\\\", \\\"ungapped\\\": \\\"False\\\", \\\"filter_query\\\": \\\"False\\\", \\\"word_size\\\": \\\"0\\\", \\\"__current_case__\\\": 1, \\\"parse_deflines\\\": \\\"False\\\", \\\"strand\\\": \\\"-strand both\\\", \\\"max_hits\\\": \\\"8\\\"}\", \"__rerun_remap_job_id__\": null, \"blast_type\": \"\\\"megablast\\\"\", \"db_opts\": \"{\\\"db_opts_selector\\\": \\\"histdb\\\", \\\"subject\\\": \\\"\\\", \\\"histdb\\\": null, \\\"__current_case__\\\": 1, \\\"database\\\": \\\"\\\"}\", \"output\": \"{\\\"out_format\\\": \\\"cols\\\", \\\"std_cols\\\": [\\\"qseqid\\\", \\\"qstart\\\", \\\"qend\\\"], \\\"ids_cols\\\": null, \\\"tax_cols\\\": null, \\\"__current_case__\\\": 2, \\\"misc_cols\\\": null, \\\"ext_cols\\\": [\\\"qseq\\\", \\\"sseq\\\"]}\", \"query\": \"null\"}", 
+            "tool_version": "0.1.00", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "57": {
+            "annotation": "", 
+            "id": 57, 
+            "input_connections": {
+                "db_opts|histdb": {
+                    "id": 17, 
+                    "output_name": "outfile"
+                }, 
+                "query": {
+                    "id": 47, 
+                    "output_name": "output_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "NCBI BLAST+ blastn", 
+            "outputs": [
+                {
+                    "name": "output1", 
+                    "type": "tabular"
+                }
+            ], 
+            "position": {
+                "left": 5389.75, 
+                "top": 1051.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/ncbi_blast_plus/ncbi_blastn_wrapper/0.1.00", 
+            "tool_state": "{\"evalue_cutoff\": \"\\\"0.001\\\"\", \"__page__\": 0, \"adv_opts\": \"{\\\"identity_cutoff\\\": \\\"0.0\\\", \\\"adv_opts_selector\\\": \\\"advanced\\\", \\\"ungapped\\\": \\\"False\\\", \\\"filter_query\\\": \\\"False\\\", \\\"word_size\\\": \\\"0\\\", \\\"__current_case__\\\": 1, \\\"parse_deflines\\\": \\\"False\\\", \\\"strand\\\": \\\"-strand both\\\", \\\"max_hits\\\": \\\"8\\\"}\", \"__rerun_remap_job_id__\": null, \"blast_type\": \"\\\"megablast\\\"\", \"db_opts\": \"{\\\"db_opts_selector\\\": \\\"histdb\\\", \\\"subject\\\": \\\"\\\", \\\"histdb\\\": null, \\\"__current_case__\\\": 1, \\\"database\\\": \\\"\\\"}\", \"output\": \"{\\\"out_format\\\": \\\"cols\\\", \\\"std_cols\\\": [\\\"qseqid\\\", \\\"qstart\\\", \\\"qend\\\"], \\\"ids_cols\\\": null, \\\"tax_cols\\\": null, \\\"__current_case__\\\": 2, \\\"misc_cols\\\": null, \\\"ext_cols\\\": [\\\"qseq\\\", \\\"sseq\\\"]}\", \"query\": \"null\"}", 
+            "tool_version": "0.1.00", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "58": {
+            "annotation": "", 
+            "id": 58, 
+            "input_connections": {
+                "db_opts|histdb": {
+                    "id": 17, 
+                    "output_name": "outfile"
+                }, 
+                "query": {
+                    "id": 48, 
+                    "output_name": "output_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "NCBI BLAST+ blastn", 
+            "outputs": [
+                {
+                    "name": "output1", 
+                    "type": "tabular"
+                }
+            ], 
+            "position": {
+                "left": 5397.75, 
+                "top": 1237.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/ncbi_blast_plus/ncbi_blastn_wrapper/0.1.00", 
+            "tool_state": "{\"evalue_cutoff\": \"\\\"0.001\\\"\", \"__page__\": 0, \"adv_opts\": \"{\\\"identity_cutoff\\\": \\\"0.0\\\", \\\"adv_opts_selector\\\": \\\"advanced\\\", \\\"ungapped\\\": \\\"False\\\", \\\"filter_query\\\": \\\"False\\\", \\\"word_size\\\": \\\"0\\\", \\\"__current_case__\\\": 1, \\\"parse_deflines\\\": \\\"False\\\", \\\"strand\\\": \\\"-strand both\\\", \\\"max_hits\\\": \\\"8\\\"}\", \"__rerun_remap_job_id__\": null, \"blast_type\": \"\\\"megablast\\\"\", \"db_opts\": \"{\\\"db_opts_selector\\\": \\\"histdb\\\", \\\"subject\\\": \\\"\\\", \\\"histdb\\\": null, \\\"__current_case__\\\": 1, \\\"database\\\": \\\"\\\"}\", \"output\": \"{\\\"out_format\\\": \\\"cols\\\", \\\"std_cols\\\": [\\\"qseqid\\\", \\\"qstart\\\", \\\"qend\\\"], \\\"ids_cols\\\": null, \\\"tax_cols\\\": null, \\\"__current_case__\\\": 2, \\\"misc_cols\\\": null, \\\"ext_cols\\\": [\\\"qseq\\\", \\\"sseq\\\"]}\", \"query\": \"null\"}", 
+            "tool_version": "0.1.00", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "59": {
+            "annotation": "", 
+            "id": 59, 
+            "input_connections": {
+                "db_opts|histdb": {
+                    "id": 17, 
+                    "output_name": "outfile"
+                }, 
+                "query": {
+                    "id": 48, 
+                    "output_name": "output_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "NCBI BLAST+ blastn", 
+            "outputs": [
+                {
+                    "name": "output1", 
+                    "type": "tabular"
+                }
+            ], 
+            "position": {
+                "left": 5684.75, 
+                "top": 1231.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/ncbi_blast_plus/ncbi_blastn_wrapper/0.1.00", 
+            "tool_state": "{\"evalue_cutoff\": \"\\\"0.001\\\"\", \"__page__\": 0, \"adv_opts\": \"{\\\"identity_cutoff\\\": \\\"0.0\\\", \\\"adv_opts_selector\\\": \\\"advanced\\\", \\\"ungapped\\\": \\\"False\\\", \\\"filter_query\\\": \\\"False\\\", \\\"word_size\\\": \\\"0\\\", \\\"__current_case__\\\": 1, \\\"parse_deflines\\\": \\\"False\\\", \\\"strand\\\": \\\"-strand both\\\", \\\"max_hits\\\": \\\"8\\\"}\", \"__rerun_remap_job_id__\": null, \"blast_type\": \"\\\"megablast\\\"\", \"db_opts\": \"{\\\"db_opts_selector\\\": \\\"histdb\\\", \\\"subject\\\": \\\"\\\", \\\"histdb\\\": null, \\\"__current_case__\\\": 1, \\\"database\\\": \\\"\\\"}\", \"output\": \"{\\\"out_format\\\": \\\"cols\\\", \\\"std_cols\\\": [\\\"qseqid\\\", \\\"qstart\\\", \\\"qend\\\"], \\\"ids_cols\\\": null, \\\"tax_cols\\\": null, \\\"__current_case__\\\": 2, \\\"misc_cols\\\": null, \\\"ext_cols\\\": [\\\"qseq\\\", \\\"sseq\\\"]}\", \"query\": \"null\"}", 
+            "tool_version": "0.1.00", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "60": {
+            "annotation": "", 
+            "id": 60, 
+            "input_connections": {
+                "db_opts|histdb": {
+                    "id": 17, 
+                    "output_name": "outfile"
+                }, 
+                "query": {
+                    "id": 49, 
+                    "output_name": "output_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "NCBI BLAST+ blastn", 
+            "outputs": [
+                {
+                    "name": "output1", 
+                    "type": "tabular"
+                }
+            ], 
+            "position": {
+                "left": 5676.75, 
+                "top": 476.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/ncbi_blast_plus/ncbi_blastn_wrapper/0.1.00", 
+            "tool_state": "{\"evalue_cutoff\": \"\\\"0.001\\\"\", \"__page__\": 0, \"adv_opts\": \"{\\\"identity_cutoff\\\": \\\"0.0\\\", \\\"adv_opts_selector\\\": \\\"advanced\\\", \\\"ungapped\\\": \\\"False\\\", \\\"filter_query\\\": \\\"False\\\", \\\"word_size\\\": \\\"0\\\", \\\"__current_case__\\\": 1, \\\"parse_deflines\\\": \\\"False\\\", \\\"strand\\\": \\\"-strand both\\\", \\\"max_hits\\\": \\\"8\\\"}\", \"__rerun_remap_job_id__\": null, \"blast_type\": \"\\\"megablast\\\"\", \"db_opts\": \"{\\\"db_opts_selector\\\": \\\"histdb\\\", \\\"subject\\\": \\\"\\\", \\\"histdb\\\": null, \\\"__current_case__\\\": 1, \\\"database\\\": \\\"\\\"}\", \"output\": \"{\\\"out_format\\\": \\\"cols\\\", \\\"std_cols\\\": [\\\"qseqid\\\", \\\"qstart\\\", \\\"qend\\\"], \\\"ids_cols\\\": null, \\\"tax_cols\\\": null, \\\"__current_case__\\\": 2, \\\"misc_cols\\\": null, \\\"ext_cols\\\": [\\\"qseq\\\", \\\"sseq\\\"]}\", \"query\": \"null\"}", 
+            "tool_version": "0.1.00", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "61": {
+            "annotation": "", 
+            "id": 61, 
+            "input_connections": {
+                "db_opts|histdb": {
+                    "id": 17, 
+                    "output_name": "outfile"
+                }, 
+                "query": {
+                    "id": 50, 
+                    "output_name": "output_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "NCBI BLAST+ blastn", 
+            "outputs": [
+                {
+                    "name": "output1", 
+                    "type": "tabular"
+                }
+            ], 
+            "position": {
+                "left": 5681.75, 
+                "top": 657.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/ncbi_blast_plus/ncbi_blastn_wrapper/0.1.00", 
+            "tool_state": "{\"evalue_cutoff\": \"\\\"0.001\\\"\", \"__page__\": 0, \"adv_opts\": \"{\\\"identity_cutoff\\\": \\\"0.0\\\", \\\"adv_opts_selector\\\": \\\"advanced\\\", \\\"ungapped\\\": \\\"False\\\", \\\"filter_query\\\": \\\"False\\\", \\\"word_size\\\": \\\"0\\\", \\\"__current_case__\\\": 1, \\\"parse_deflines\\\": \\\"False\\\", \\\"strand\\\": \\\"-strand both\\\", \\\"max_hits\\\": \\\"8\\\"}\", \"__rerun_remap_job_id__\": null, \"blast_type\": \"\\\"megablast\\\"\", \"db_opts\": \"{\\\"db_opts_selector\\\": \\\"histdb\\\", \\\"subject\\\": \\\"\\\", \\\"histdb\\\": null, \\\"__current_case__\\\": 1, \\\"database\\\": \\\"\\\"}\", \"output\": \"{\\\"out_format\\\": \\\"cols\\\", \\\"std_cols\\\": [\\\"qseqid\\\", \\\"qstart\\\", \\\"qend\\\"], \\\"ids_cols\\\": null, \\\"tax_cols\\\": null, \\\"__current_case__\\\": 2, \\\"misc_cols\\\": null, \\\"ext_cols\\\": [\\\"qseq\\\", \\\"sseq\\\"]}\", \"query\": \"null\"}", 
+            "tool_version": "0.1.00", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "62": {
+            "annotation": "", 
+            "id": 62, 
+            "input_connections": {
+                "db_opts|histdb": {
+                    "id": 17, 
+                    "output_name": "outfile"
+                }, 
+                "query": {
+                    "id": 51, 
+                    "output_name": "output_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "NCBI BLAST+ blastn", 
+            "outputs": [
+                {
+                    "name": "output1", 
+                    "type": "tabular"
+                }
+            ], 
+            "position": {
+                "left": 5688.75, 
+                "top": 862.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/ncbi_blast_plus/ncbi_blastn_wrapper/0.1.00", 
+            "tool_state": "{\"evalue_cutoff\": \"\\\"0.001\\\"\", \"__page__\": 0, \"adv_opts\": \"{\\\"identity_cutoff\\\": \\\"0.0\\\", \\\"adv_opts_selector\\\": \\\"advanced\\\", \\\"ungapped\\\": \\\"False\\\", \\\"filter_query\\\": \\\"False\\\", \\\"word_size\\\": \\\"0\\\", \\\"__current_case__\\\": 1, \\\"parse_deflines\\\": \\\"False\\\", \\\"strand\\\": \\\"-strand both\\\", \\\"max_hits\\\": \\\"8\\\"}\", \"__rerun_remap_job_id__\": null, \"blast_type\": \"\\\"megablast\\\"\", \"db_opts\": \"{\\\"db_opts_selector\\\": \\\"histdb\\\", \\\"subject\\\": \\\"\\\", \\\"histdb\\\": null, \\\"__current_case__\\\": 1, \\\"database\\\": \\\"\\\"}\", \"output\": \"{\\\"out_format\\\": \\\"cols\\\", \\\"std_cols\\\": [\\\"qseqid\\\", \\\"qstart\\\", \\\"qend\\\"], \\\"ids_cols\\\": null, \\\"tax_cols\\\": null, \\\"__current_case__\\\": 2, \\\"misc_cols\\\": null, \\\"ext_cols\\\": [\\\"qseq\\\", \\\"sseq\\\"]}\", \"query\": \"null\"}", 
+            "tool_version": "0.1.00", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "63": {
+            "annotation": "", 
+            "id": 63, 
+            "input_connections": {
+                "db_opts|histdb": {
+                    "id": 17, 
+                    "output_name": "outfile"
+                }, 
+                "query": {
+                    "id": 52, 
+                    "output_name": "output_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "NCBI BLAST+ blastn", 
+            "outputs": [
+                {
+                    "name": "output1", 
+                    "type": "tabular"
+                }
+            ], 
+            "position": {
+                "left": 5688.75, 
+                "top": 1056.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/ncbi_blast_plus/ncbi_blastn_wrapper/0.1.00", 
+            "tool_state": "{\"evalue_cutoff\": \"\\\"0.001\\\"\", \"__page__\": 0, \"adv_opts\": \"{\\\"identity_cutoff\\\": \\\"0.0\\\", \\\"adv_opts_selector\\\": \\\"advanced\\\", \\\"ungapped\\\": \\\"False\\\", \\\"filter_query\\\": \\\"False\\\", \\\"word_size\\\": \\\"0\\\", \\\"__current_case__\\\": 1, \\\"parse_deflines\\\": \\\"False\\\", \\\"strand\\\": \\\"-strand both\\\", \\\"max_hits\\\": \\\"8\\\"}\", \"__rerun_remap_job_id__\": null, \"blast_type\": \"\\\"megablast\\\"\", \"db_opts\": \"{\\\"db_opts_selector\\\": \\\"histdb\\\", \\\"subject\\\": \\\"\\\", \\\"histdb\\\": null, \\\"__current_case__\\\": 1, \\\"database\\\": \\\"\\\"}\", \"output\": \"{\\\"out_format\\\": \\\"cols\\\", \\\"std_cols\\\": [\\\"qseqid\\\", \\\"qstart\\\", \\\"qend\\\"], \\\"ids_cols\\\": null, \\\"tax_cols\\\": null, \\\"__current_case__\\\": 2, \\\"misc_cols\\\": null, \\\"ext_cols\\\": [\\\"qseq\\\", \\\"sseq\\\"]}\", \"query\": \"null\"}", 
+            "tool_version": "0.1.00", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "64": {
+            "annotation": "", 
+            "id": 64, 
+            "input_connections": {
+                "input_blast_file": {
+                    "id": 54, 
+                    "output_name": "output1"
+                }, 
+                "input_variant_file": {
+                    "id": 43, 
+                    "output_name": "output_file1"
+                }
+            }, 
+            "inputs": [], 
+            "name": "ParseBlastForUniqueMatch", 
+            "outputs": [
+                {
+                    "name": "output_variant_file", 
+                    "type": "pileup"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 6013.25, 
+                "top": 432.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "ParseBlastForUniqueMatch", 
+            "tool_state": "{\"input_variant_file\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_blast_file\": \"null\", \"window_length\": \"\\\"50\\\"\", \"nb_mismatch_max\": \"\\\"3\\\"\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "65": {
+            "annotation": "", 
+            "id": 65, 
+            "input_connections": {
+                "input_blast_file": {
+                    "id": 55, 
+                    "output_name": "output1"
+                }, 
+                "input_variant_file": {
+                    "id": 43, 
+                    "output_name": "output_file2"
+                }
+            }, 
+            "inputs": [], 
+            "name": "ParseBlastForUniqueMatch", 
+            "outputs": [
+                {
+                    "name": "output_variant_file", 
+                    "type": "pileup"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 6010.25, 
+                "top": 656.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "ParseBlastForUniqueMatch", 
+            "tool_state": "{\"input_variant_file\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_blast_file\": \"null\", \"window_length\": \"\\\"50\\\"\", \"nb_mismatch_max\": \"\\\"3\\\"\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "66": {
+            "annotation": "", 
+            "id": 66, 
+            "input_connections": {
+                "input_blast_file": {
+                    "id": 56, 
+                    "output_name": "output1"
+                }, 
+                "input_variant_file": {
+                    "id": 43, 
+                    "output_name": "output_file3"
+                }
+            }, 
+            "inputs": [], 
+            "name": "ParseBlastForUniqueMatch", 
+            "outputs": [
+                {
+                    "name": "output_variant_file", 
+                    "type": "pileup"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 6014.25, 
+                "top": 891.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "ParseBlastForUniqueMatch", 
+            "tool_state": "{\"input_variant_file\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_blast_file\": \"null\", \"window_length\": \"\\\"50\\\"\", \"nb_mismatch_max\": \"\\\"3\\\"\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "67": {
+            "annotation": "", 
+            "id": 67, 
+            "input_connections": {
+                "input_blast_file": {
+                    "id": 57, 
+                    "output_name": "output1"
+                }, 
+                "input_variant_file": {
+                    "id": 43, 
+                    "output_name": "output_file4"
+                }
+            }, 
+            "inputs": [], 
+            "name": "ParseBlastForUniqueMatch", 
+            "outputs": [
+                {
+                    "name": "output_variant_file", 
+                    "type": "pileup"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 6014.25, 
+                "top": 1120.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "ParseBlastForUniqueMatch", 
+            "tool_state": "{\"input_variant_file\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_blast_file\": \"null\", \"window_length\": \"\\\"50\\\"\", \"nb_mismatch_max\": \"\\\"3\\\"\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "68": {
+            "annotation": "", 
+            "id": 68, 
+            "input_connections": {
+                "input_blast_file": {
+                    "id": 58, 
+                    "output_name": "output1"
+                }, 
+                "input_variant_file": {
+                    "id": 43, 
+                    "output_name": "output_file5"
+                }
+            }, 
+            "inputs": [], 
+            "name": "ParseBlastForUniqueMatch", 
+            "outputs": [
+                {
+                    "name": "output_variant_file", 
+                    "type": "pileup"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 6013.25, 
+                "top": 1352.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "ParseBlastForUniqueMatch", 
+            "tool_state": "{\"input_variant_file\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_blast_file\": \"null\", \"window_length\": \"\\\"50\\\"\", \"nb_mismatch_max\": \"\\\"3\\\"\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "69": {
+            "annotation": "", 
+            "id": 69, 
+            "input_connections": {
+                "input_blast_file": {
+                    "id": 59, 
+                    "output_name": "output1"
+                }, 
+                "input_variant_file": {
+                    "id": 43, 
+                    "output_name": "output_file10"
+                }
+            }, 
+            "inputs": [], 
+            "name": "ParseBlastForUniqueMatch", 
+            "outputs": [
+                {
+                    "name": "output_variant_file", 
+                    "type": "pileup"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 6313.25, 
+                "top": 1356.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "ParseBlastForUniqueMatch", 
+            "tool_state": "{\"input_variant_file\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_blast_file\": \"null\", \"window_length\": \"\\\"50\\\"\", \"nb_mismatch_max\": \"\\\"3\\\"\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "70": {
+            "annotation": "", 
+            "id": 70, 
+            "input_connections": {
+                "input_blast_file": {
+                    "id": 60, 
+                    "output_name": "output1"
+                }, 
+                "input_variant_file": {
+                    "id": 43, 
+                    "output_name": "output_file6"
+                }
+            }, 
+            "inputs": [], 
+            "name": "ParseBlastForUniqueMatch", 
+            "outputs": [
+                {
+                    "name": "output_variant_file", 
+                    "type": "pileup"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 6300.25, 
+                "top": 428.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "ParseBlastForUniqueMatch", 
+            "tool_state": "{\"input_variant_file\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_blast_file\": \"null\", \"window_length\": \"\\\"50\\\"\", \"nb_mismatch_max\": \"\\\"3\\\"\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "71": {
+            "annotation": "", 
+            "id": 71, 
+            "input_connections": {
+                "input_blast_file": {
+                    "id": 61, 
+                    "output_name": "output1"
+                }, 
+                "input_variant_file": {
+                    "id": 43, 
+                    "output_name": "output_file7"
+                }
+            }, 
+            "inputs": [], 
+            "name": "ParseBlastForUniqueMatch", 
+            "outputs": [
+                {
+                    "name": "output_variant_file", 
+                    "type": "pileup"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 6302.25, 
+                "top": 657.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "ParseBlastForUniqueMatch", 
+            "tool_state": "{\"input_variant_file\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_blast_file\": \"null\", \"window_length\": \"\\\"50\\\"\", \"nb_mismatch_max\": \"\\\"3\\\"\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "72": {
+            "annotation": "", 
+            "id": 72, 
+            "input_connections": {
+                "input_blast_file": {
+                    "id": 62, 
+                    "output_name": "output1"
+                }, 
+                "input_variant_file": {
+                    "id": 43, 
+                    "output_name": "output_file8"
+                }
+            }, 
+            "inputs": [], 
+            "name": "ParseBlastForUniqueMatch", 
+            "outputs": [
+                {
+                    "name": "output_variant_file", 
+                    "type": "pileup"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 6304.25, 
+                "top": 893.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "ParseBlastForUniqueMatch", 
+            "tool_state": "{\"input_variant_file\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_blast_file\": \"null\", \"window_length\": \"\\\"50\\\"\", \"nb_mismatch_max\": \"\\\"3\\\"\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "73": {
+            "annotation": "", 
+            "id": 73, 
+            "input_connections": {
+                "input_blast_file": {
+                    "id": 63, 
+                    "output_name": "output1"
+                }, 
+                "input_variant_file": {
+                    "id": 43, 
+                    "output_name": "output_file9"
+                }
+            }, 
+            "inputs": [], 
+            "name": "ParseBlastForUniqueMatch", 
+            "outputs": [
+                {
+                    "name": "output_variant_file", 
+                    "type": "pileup"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 6306.25, 
+                "top": 1124.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "ParseBlastForUniqueMatch", 
+            "tool_state": "{\"input_variant_file\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_blast_file\": \"null\", \"window_length\": \"\\\"50\\\"\", \"nb_mismatch_max\": \"\\\"3\\\"\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "74": {
+            "annotation": "", 
+            "id": 74, 
+            "input_connections": {
+                "input_files": [
+                    {
+                        "id": 64, 
+                        "output_name": "output_variant_file"
+                    }, 
+                    {
+                        "id": 65, 
+                        "output_name": "output_variant_file"
+                    }, 
+                    {
+                        "id": 66, 
+                        "output_name": "output_variant_file"
+                    }, 
+                    {
+                        "id": 67, 
+                        "output_name": "output_variant_file"
+                    }, 
+                    {
+                        "id": 68, 
+                        "output_name": "output_variant_file"
+                    }, 
+                    {
+                        "id": 70, 
+                        "output_name": "output_variant_file"
+                    }, 
+                    {
+                        "id": 71, 
+                        "output_name": "output_variant_file"
+                    }, 
+                    {
+                        "id": 72, 
+                        "output_name": "output_variant_file"
+                    }, 
+                    {
+                        "id": 73, 
+                        "output_name": "output_variant_file"
+                    }, 
+                    {
+                        "id": 69, 
+                        "output_name": "output_variant_file"
+                    }
+                ]
+            }, 
+            "inputs": [], 
+            "name": "MergeMultiFile", 
+            "outputs": [
+                {
+                    "name": "output_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 6737.25, 
+                "top": 872.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "MergeMultiFile", 
+            "tool_state": "{\"out_format\": \"\\\"pileup\\\"\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_files\": \"null\"}", 
+            "tool_version": "1.00", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "75": {
+            "annotation": "", 
+            "id": 75, 
+            "input_connections": {
+                "input_file": {
+                    "id": 74, 
+                    "output_name": "output_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "mpileupfilterandstat", 
+            "outputs": [
+                {
+                    "name": "output_file", 
+                    "type": "pileup"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 7105.75, 
+                "top": 903.75
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "mpileupfilterandstat", 
+            "tool_state": "{\"__page__\": 0, \"stat\": \"{\\\"stat_dist_step\\\": \\\"50\\\", \\\"stat_min_depth_step\\\": \\\"4\\\", \\\"stat_max_depth_max\\\": \\\"200\\\", \\\"stat_min_depth_max\\\": \\\"20\\\", \\\"stat_freq_max\\\": \\\"1.0\\\", \\\"stat_min_depth_min\\\": \\\"4\\\", \\\"stat_max_depth_min\\\": \\\"200\\\", \\\"do_stat\\\": \\\"YES\\\", \\\"stat_dist_min\\\": \\\"0\\\", \\\"__current_case__\\\": 0, \\\"stat_max_depth_step\\\": \\\"100\\\", \\\"stat_dist_max\\\": \\\"50\\\", \\\"stat_freq_step\\\": \\\"0.2\\\", \\\"stat_freq_min\\\": \\\"0.8\\\"}\", \"input_file\": \"null\", \"min_frequency\": \"\\\"0.0\\\"\", \"min_depth\": \"\\\"1\\\"\", \"__rerun_remap_job_id__\": null, \"min_forward_and_reverse\": \"\\\"0\\\"\", \"max_depth\": \"\\\"500\\\"\", \"min_distance\": \"\\\"0\\\"\"}", 
+            "tool_version": "1.00", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "76": {
+            "annotation": "", 
+            "id": 76, 
+            "input_connections": {
+                "input_files": [
+                    {
+                        "id": 7, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 8, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 9, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 12, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 14, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 10, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 11, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 13, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 15, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 16, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 28, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 29, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 30, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 33, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 35, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 31, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 32, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 34, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 36, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 37, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 41, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 42, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 64, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 65, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 66, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 67, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 68, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 70, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 71, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 72, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 73, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 69, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 75, 
+                        "output_name": "log_file"
+                    }
+                ]
+            }, 
+            "inputs": [], 
+            "name": "MergeMultiFile", 
+            "outputs": [
+                {
+                    "name": "output_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 7458.25, 
+                "top": 1140.75
+            }, 
+            "post_job_actions": {
+                "RenameDatasetActionoutput_file": {
+                    "action_arguments": {
+                        "newname": "LOGS"
+                    }, 
+                    "action_type": "RenameDatasetAction", 
+                    "output_name": "output_file"
+                }
+            }, 
+            "tool_errors": null, 
+            "tool_id": "MergeMultiFile", 
+            "tool_state": "{\"out_format\": \"\\\"txt\\\"\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_files\": \"null\"}", 
+            "tool_version": "1.00", 
+            "type": "tool", 
+            "user_outputs": []
+        }
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rapsodyn/Galaxy-Workflow-rapsosnp_v1.20_-_1x_-_sam.ga	Tue Oct 07 10:34:34 2014 -0400
@@ -0,0 +1,604 @@
+{
+    "a_galaxy_workflow": "true", 
+    "annotation": "", 
+    "format-version": "0.1", 
+    "name": "rapsosnp v1.20 - 1x - sam", 
+    "steps": {
+        "0": {
+            "annotation": "", 
+            "id": 0, 
+            "input_connections": {}, 
+            "inputs": [
+                {
+                    "description": "", 
+                    "name": "ASSEMBLY"
+                }
+            ], 
+            "name": "Input dataset", 
+            "outputs": [], 
+            "position": {
+                "left": 200, 
+                "top": 221
+            }, 
+            "tool_errors": null, 
+            "tool_id": null, 
+            "tool_state": "{\"name\": \"ASSEMBLY\"}", 
+            "tool_version": null, 
+            "type": "data_input", 
+            "user_outputs": []
+        }, 
+        "1": {
+            "annotation": "", 
+            "id": 1, 
+            "input_connections": {}, 
+            "inputs": [
+                {
+                    "description": "", 
+                    "name": "READ1"
+                }
+            ], 
+            "name": "Input dataset", 
+            "outputs": [], 
+            "position": {
+                "left": 200, 
+                "top": 306.76666259765625
+            }, 
+            "tool_errors": null, 
+            "tool_id": null, 
+            "tool_state": "{\"name\": \"READ1\"}", 
+            "tool_version": null, 
+            "type": "data_input", 
+            "user_outputs": []
+        }, 
+        "2": {
+            "annotation": "", 
+            "id": 2, 
+            "input_connections": {}, 
+            "inputs": [
+                {
+                    "description": "", 
+                    "name": "READ2"
+                }
+            ], 
+            "name": "Input dataset", 
+            "outputs": [], 
+            "position": {
+                "left": 200, 
+                "top": 392.5333251953125
+            }, 
+            "tool_errors": null, 
+            "tool_id": null, 
+            "tool_state": "{\"name\": \"READ2\"}", 
+            "tool_version": null, 
+            "type": "data_input", 
+            "user_outputs": []
+        }, 
+        "3": {
+            "annotation": "", 
+            "id": 3, 
+            "input_connections": {}, 
+            "inputs": [
+                {
+                    "description": "", 
+                    "name": "DUBIOUS"
+                }
+            ], 
+            "name": "Input dataset", 
+            "outputs": [], 
+            "position": {
+                "left": 200, 
+                "top": 478.29998779296875
+            }, 
+            "tool_errors": null, 
+            "tool_id": null, 
+            "tool_state": "{\"name\": \"DUBIOUS\"}", 
+            "tool_version": null, 
+            "type": "data_input", 
+            "user_outputs": []
+        }, 
+        "4": {
+            "annotation": "", 
+            "id": 4, 
+            "input_connections": {
+                "input_fasta": {
+                    "id": 0, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "fastaGroomerForMakeBlastdb", 
+            "outputs": [
+                {
+                    "name": "output_fasta", 
+                    "type": "fasta"
+                }
+            ], 
+            "position": {
+                "left": 427.7666015625, 
+                "top": 221
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "fastaGroomerForMakeBlastdb", 
+            "tool_state": "{\"input_fasta\": \"null\", \"__rerun_remap_job_id__\": null, \"__page__\": 0}", 
+            "tool_version": "1.00", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "5": {
+            "annotation": "", 
+            "id": 5, 
+            "input_connections": {
+                "input_read1_file": {
+                    "id": 1, 
+                    "output_name": "output"
+                }, 
+                "input_read2_file": {
+                    "id": 2, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "PrepareFastqLight", 
+            "outputs": [
+                {
+                    "name": "output_read1_file", 
+                    "type": "fastqsanger"
+                }, 
+                {
+                    "name": "output_read2_file", 
+                    "type": "fastqsanger"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 427.7666015625, 
+                "top": 351.76666259765625
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "PrepareFastqLight", 
+            "tool_state": "{\"__page__\": 0, \"quality_type\": \"\\\"illumina\\\"\", \"min_length\": \"\\\"30\\\"\", \"__rerun_remap_job_id__\": null, \"min_quality\": \"\\\"30\\\"\", \"input_read1_file\": \"null\", \"input_read2_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "6": {
+            "annotation": "", 
+            "id": 6, 
+            "input_connections": {
+                "input_file": {
+                    "id": 4, 
+                    "output_name": "output_fasta"
+                }
+            }, 
+            "inputs": [], 
+            "name": "NCBI BLAST+ makeblastdb", 
+            "outputs": [
+                {
+                    "name": "outfile", 
+                    "type": "data"
+                }
+            ], 
+            "position": {
+                "left": 755.5333251953125, 
+                "top": 221
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/ncbi_blast_plus/ncbi_makeblastdb/0.1.00", 
+            "tool_state": "{\"__page__\": 0, \"mask_data_file\": \"null\", \"input_file\": \"null\", \"dbtype\": \"\\\"nucl\\\"\", \"__rerun_remap_job_id__\": null, \"hash_index\": \"\\\"True\\\"\", \"tax\": \"{\\\"taxselect\\\": \\\"\\\", \\\"__current_case__\\\": 0}\", \"title\": \"\\\"\\\"\", \"parse_seqids\": \"\\\"False\\\"\"}", 
+            "tool_version": "0.1.00", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "7": {
+            "annotation": "", 
+            "id": 7, 
+            "input_connections": {
+                "genomeSource|ownFile": {
+                    "id": 0, 
+                    "output_name": "output"
+                }, 
+                "paired|input1": {
+                    "id": 5, 
+                    "output_name": "output_read1_file"
+                }, 
+                "paired|input2": {
+                    "id": 5, 
+                    "output_name": "output_read2_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "Map with BWA for Illumina", 
+            "outputs": [
+                {
+                    "name": "output", 
+                    "type": "sam"
+                }
+            ], 
+            "position": {
+                "left": 755.5333251953125, 
+                "top": 378.76666259765625
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/bwa_wrappers/bwa_wrapper/1.2.3", 
+            "tool_state": "{\"genomeSource\": \"{\\\"refGenomeSource\\\": \\\"history\\\", \\\"ownFile\\\": null, \\\"__current_case__\\\": 1}\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"paired\": \"{\\\"input2\\\": null, \\\"sPaired\\\": \\\"paired\\\", \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"params\": \"{\\\"__current_case__\\\": 0, \\\"source_select\\\": \\\"pre_set\\\"}\", \"suppressHeader\": \"\\\"False\\\"\"}", 
+            "tool_version": "1.2.3", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "8": {
+            "annotation": "", 
+            "id": 8, 
+            "input_connections": {
+                "input_sam_file": {
+                    "id": 7, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "filtersam_mapped_and_unique", 
+            "outputs": [
+                {
+                    "name": "output_sam_file", 
+                    "type": "sam"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 1083.300048828125, 
+                "top": 221
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "filtersam_mapped_and_unique", 
+            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_sam_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "9": {
+            "annotation": "", 
+            "id": 9, 
+            "input_connections": {
+                "source|input1": {
+                    "id": 8, 
+                    "output_name": "output_sam_file"
+                }, 
+                "source|ref_file": {
+                    "id": 0, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "SAM-to-BAM", 
+            "outputs": [
+                {
+                    "name": "output1", 
+                    "type": "bam"
+                }
+            ], 
+            "position": {
+                "left": 1411.066650390625, 
+                "top": 221
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/sam_to_bam/sam_to_bam/1.1.4", 
+            "tool_state": "{\"source\": \"{\\\"index_source\\\": \\\"history\\\", \\\"ref_file\\\": null, \\\"input1\\\": null, \\\"__current_case__\\\": 1}\", \"__rerun_remap_job_id__\": null, \"__page__\": 0}", 
+            "tool_version": "1.1.4", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "10": {
+            "annotation": "", 
+            "id": 10, 
+            "input_connections": {
+                "reference_source|input_bams_0|input_bam": {
+                    "id": 9, 
+                    "output_name": "output1"
+                }, 
+                "reference_source|ref_file": {
+                    "id": 0, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "MPileup", 
+            "outputs": [
+                {
+                    "name": "output_mpileup", 
+                    "type": "pileup"
+                }, 
+                {
+                    "name": "output_log", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 1638.8333129882812, 
+                "top": 221
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/samtools_mpileup/samtools_mpileup/0.0.3", 
+            "tool_state": "{\"__page__\": 0, \"advanced_options\": \"{\\\"max_reads_per_bam\\\": \\\"250\\\", \\\"advanced_options_selector\\\": \\\"advanced\\\", \\\"extended_BAQ_computation\\\": \\\"False\\\", \\\"region_string\\\": \\\"\\\", \\\"output_per_sample_strand_bias_p_value\\\": \\\"False\\\", \\\"minimum_base_quality\\\": \\\"0\\\", \\\"disable_probabilistic_realignment\\\": \\\"False\\\", \\\"skip_anomalous_read_pairs\\\": \\\"False\\\", \\\"minimum_mapping_quality\\\": \\\"0\\\", \\\"output_per_sample_read_depth\\\": \\\"False\\\", \\\"__current_case__\\\": 0, \\\"position_list\\\": null, \\\"coefficient_for_downgrading\\\": \\\"0\\\"}\", \"__rerun_remap_job_id__\": null, \"genotype_likelihood_computation_type\": \"{\\\"genotype_likelihood_computation_type_selector\\\": \\\"do_not_perform_genotype_likelihood_computation\\\", \\\"__current_case__\\\": 1}\", \"reference_source\": \"{\\\"ref_file\\\": null, \\\"reference_source_selector\\\": \\\"history\\\", \\\"input_bams\\\": [{\\\"__index__\\\": 0, \\\"input_bam\\\": null}], \\\"__current_case__\\\": 1}\"}", 
+            "tool_version": "0.0.3", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "11": {
+            "annotation": "", 
+            "id": 11, 
+            "input_connections": {
+                "input_pileup_file": {
+                    "id": 10, 
+                    "output_name": "output_mpileup"
+                }
+            }, 
+            "inputs": [], 
+            "name": "PileupVariant", 
+            "outputs": [
+                {
+                    "name": "output_pileup_file", 
+                    "type": "pileup"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 1964.5999755859375, 
+                "top": 221
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "PileupVariant", 
+            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_pileup_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "12": {
+            "annotation": "", 
+            "id": 12, 
+            "input_connections": {
+                "input_list1": {
+                    "id": 11, 
+                    "output_name": "output_pileup_file"
+                }, 
+                "input_list2": {
+                    "id": 3, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "listfiltering", 
+            "outputs": [
+                {
+                    "name": "output_file", 
+                    "type": "pileup"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 2292.366668701172, 
+                "top": 221
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "listfiltering", 
+            "tool_state": "{\"__page__\": 0, \"input_list2\": \"null\", \"input_list1\": \"null\", \"__rerun_remap_job_id__\": null, \"nb_col\": \"\\\"2\\\"\", \"type\": \"\\\"specific\\\"\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "13": {
+            "annotation": "", 
+            "id": 13, 
+            "input_connections": {
+                "input_assembly_file": {
+                    "id": 0, 
+                    "output_name": "output"
+                }, 
+                "input_variant_file": {
+                    "id": 12, 
+                    "output_name": "output_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "extractseq", 
+            "outputs": [
+                {
+                    "name": "output_file", 
+                    "type": "fasta"
+                }
+            ], 
+            "position": {
+                "left": 2561.133331298828, 
+                "top": 221
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "extractseq", 
+            "tool_state": "{\"__page__\": 0, \"input_variant_file\": \"null\", \"__rerun_remap_job_id__\": null, \"window_length\": \"\\\"50\\\"\", \"input_assembly_file\": \"null\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "14": {
+            "annotation": "", 
+            "id": 14, 
+            "input_connections": {
+                "db_opts|histdb": {
+                    "id": 6, 
+                    "output_name": "outfile"
+                }, 
+                "query": {
+                    "id": 13, 
+                    "output_name": "output_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "NCBI BLAST+ blastn", 
+            "outputs": [
+                {
+                    "name": "output1", 
+                    "type": "tabular"
+                }
+            ], 
+            "position": {
+                "left": 2888.8999938964844, 
+                "top": 221
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/devteam/ncbi_blast_plus/ncbi_blastn_wrapper/0.1.00", 
+            "tool_state": "{\"evalue_cutoff\": \"\\\"0.001\\\"\", \"__page__\": 0, \"adv_opts\": \"{\\\"identity_cutoff\\\": \\\"0.0\\\", \\\"adv_opts_selector\\\": \\\"advanced\\\", \\\"ungapped\\\": \\\"False\\\", \\\"filter_query\\\": \\\"False\\\", \\\"word_size\\\": \\\"0\\\", \\\"__current_case__\\\": 1, \\\"parse_deflines\\\": \\\"False\\\", \\\"strand\\\": \\\"-strand both\\\", \\\"max_hits\\\": \\\"8\\\"}\", \"__rerun_remap_job_id__\": null, \"blast_type\": \"\\\"megablast\\\"\", \"db_opts\": \"{\\\"db_opts_selector\\\": \\\"histdb\\\", \\\"subject\\\": \\\"\\\", \\\"histdb\\\": null, \\\"__current_case__\\\": 1, \\\"database\\\": \\\"\\\"}\", \"output\": \"{\\\"out_format\\\": \\\"cols\\\", \\\"std_cols\\\": [\\\"qseqid\\\", \\\"qstart\\\", \\\"qend\\\"], \\\"ids_cols\\\": null, \\\"tax_cols\\\": null, \\\"__current_case__\\\": 2, \\\"misc_cols\\\": null, \\\"ext_cols\\\": [\\\"qseq\\\", \\\"sseq\\\"]}\", \"query\": \"null\"}", 
+            "tool_version": "0.1.00", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "15": {
+            "annotation": "", 
+            "id": 15, 
+            "input_connections": {
+                "input_blast_file": {
+                    "id": 14, 
+                    "output_name": "output1"
+                }, 
+                "input_variant_file": {
+                    "id": 12, 
+                    "output_name": "output_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "ParseBlastForUniqueMatch", 
+            "outputs": [
+                {
+                    "name": "output_variant_file", 
+                    "type": "pileup"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 3190.6666870117188, 
+                "top": 221
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "ParseBlastForUniqueMatch", 
+            "tool_state": "{\"input_variant_file\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_blast_file\": \"null\", \"window_length\": \"\\\"50\\\"\", \"nb_mismatch_max\": \"\\\"3\\\"\"}", 
+            "tool_version": "1.01", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "16": {
+            "annotation": "", 
+            "id": 16, 
+            "input_connections": {
+                "input_file": {
+                    "id": 15, 
+                    "output_name": "output_variant_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "mpileupfilterandstat", 
+            "outputs": [
+                {
+                    "name": "output_file", 
+                    "type": "pileup"
+                }, 
+                {
+                    "name": "log_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 3518.433349609375, 
+                "top": 221
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "mpileupfilterandstat", 
+            "tool_state": "{\"__page__\": 0, \"stat\": \"{\\\"stat_dist_step\\\": \\\"50\\\", \\\"stat_min_depth_step\\\": \\\"4\\\", \\\"stat_max_depth_max\\\": \\\"200\\\", \\\"stat_min_depth_max\\\": \\\"20\\\", \\\"stat_freq_max\\\": \\\"1.0\\\", \\\"stat_min_depth_min\\\": \\\"4\\\", \\\"stat_max_depth_min\\\": \\\"200\\\", \\\"do_stat\\\": \\\"YES\\\", \\\"stat_dist_min\\\": \\\"0\\\", \\\"__current_case__\\\": 0, \\\"stat_max_depth_step\\\": \\\"100\\\", \\\"stat_dist_max\\\": \\\"50\\\", \\\"stat_freq_step\\\": \\\"0.2\\\", \\\"stat_freq_min\\\": \\\"0.8\\\"}\", \"input_file\": \"null\", \"min_frequency\": \"\\\"0.0\\\"\", \"min_depth\": \"\\\"1\\\"\", \"__rerun_remap_job_id__\": null, \"min_forward_and_reverse\": \"\\\"0\\\"\", \"max_depth\": \"\\\"500\\\"\", \"min_distance\": \"\\\"0\\\"\"}", 
+            "tool_version": "1.00", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "17": {
+            "annotation": "", 
+            "id": 17, 
+            "input_connections": {
+                "input_files": [
+                    {
+                        "id": 16, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 15, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 12, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 11, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 8, 
+                        "output_name": "log_file"
+                    }, 
+                    {
+                        "id": 5, 
+                        "output_name": "log_file"
+                    }
+                ]
+            }, 
+            "inputs": [], 
+            "name": "MergeMultiFile", 
+            "outputs": [
+                {
+                    "name": "output_file", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 3846.199951171875, 
+                "top": 221
+            }, 
+            "post_job_actions": {
+                "RenameDatasetActionoutput_file": {
+                    "action_arguments": {
+                        "newname": "LOGS"
+                    }, 
+                    "action_type": "RenameDatasetAction", 
+                    "output_name": "output_file"
+                }
+            }, 
+            "tool_errors": null, 
+            "tool_id": "MergeMultiFile", 
+            "tool_state": "{\"out_format\": \"\\\"txt\\\"\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_files\": \"null\"}", 
+            "tool_version": "1.00", 
+            "type": "tool", 
+            "user_outputs": []
+        }
+    }
+}
\ No newline at end of file
--- a/rapsodyn/MergeFile2x.pl	Mon Sep 29 03:02:16 2014 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-#!/usr/bin/perl
-use strict;
-use warnings;
-
-my $in1 = $ARGV[0];
-my $in2 = $ARGV[1];
-
-open(IN1, $in1) or die ("Can't open $in1\n");
-while (my $line = <IN1>){
-	print $line;
-}
-close (IN1);
-
-open(IN2, $in2) or die ("Can't open $in2\n");
-while (my $line = <IN2>){
-	print $line;
-}
-close (IN2);
-
-
-
--- a/rapsodyn/MergeFile2x.xml	Mon Sep 29 03:02:16 2014 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-<tool id="MergeFile2x" name="MergeFile2x" version="0.01">
-<description>Merge splitted file</description>
-<command interpreter="perl">
-    MergeFile2x.pl $input_file1 $input_file2 > $output_file 
-</command>
-<inputs>
-<param name="out_format" type="select" label="Format">
-	<option value="pileup">pileup</option>
-	<option value="fastq">fastq</option>
-	<option value="fastqsanger">fastqsanger</option>
-	<option value="sam">sam</option>
-	<option value="fasta">fasta</option>
-</param>
-<param name="input_file1"  type="data" format="txt,fastq,fastqsanger,fastqillumina,pileup,sam,fasta" label="Select a suitable 1st file from your history"/>
-<param name="input_file2"  type="data" format="txt,fastq,fastqsanger,fastqillumina,pileup,sam,fasta" label="Select a suitable 2nd file from your history"/>
-</inputs>
-<outputs>
-<data name="output_file" format="txt" label="MERGE">
-	<change_format>
-		<when input="out_format" value="pileup" format="pileup" />
-		<when input="out_format" value="fastq" format="fastq" />
-		<when input="out_format" value="fastqsanger" format="fastqsanger" />
-		<when input="out_format" value="sam" format="sam" />
-		<when input="out_format" value="fasta" format="fasta" />
-	</change_format>
-</data>
-</outputs>
-
-<help>
-
-
-
-</help>
-</tool>
--- a/rapsodyn/MergeFile4x.pl	Mon Sep 29 03:02:16 2014 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-#!/usr/bin/perl
-use strict;
-use warnings;
-
-my $in1 = $ARGV[0];
-my $in2 = $ARGV[1];
-my $in3 = $ARGV[2];
-my $in4 = $ARGV[3];
-
-open(IN1, $in1) or die ("Can't open $in1\n");
-while (my $line = <IN1>){
-	print $line;
-}
-close (IN1);
-
-open(IN2, $in2) or die ("Can't open $in2\n");
-while (my $line = <IN2>){
-	print $line;
-}
-close (IN2);
-
-open(IN3, $in3) or die ("Can't open $in3\n");
-while (my $line = <IN3>){
-	print $line;
-}
-close (IN3);
-
-open(IN4, $in4) or die ("Can't open $in4\n");
-while (my $line = <IN4>){
-	print $line;
-}
-close (IN4);
-
-
--- a/rapsodyn/MergeFile4x.xml	Mon Sep 29 03:02:16 2014 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,36 +0,0 @@
-<tool id="MergeFile4x" name="MergeFile4x" version="0.01">
-<description>Merge splitted file</description>
-<command interpreter="perl">
-    MergeFile4x.pl $input_file1 $input_file2 $input_file3 $input_file4 > $output_file 
-</command>
-<inputs>
-<param name="out_format" type="select" label="Format">
-	<option value="pileup">pileup</option>
-	<option value="fastq">fastq</option>
-	<option value="fastqsanger">fastqsanger</option>
-	<option value="sam">sam</option>
-	<option value="fasta">fasta</option>
-</param>
-<param name="input_file1"  type="data" format="txt,fastq,fastqsanger,fastqillumina,pileup,sam,fasta" label="Select a suitable 1st file from your history"/>
-<param name="input_file2"  type="data" format="txt,fastq,fastqsanger,fastqillumina,pileup,sam,fasta" label="Select a suitable 2nd file from your history"/>
-<param name="input_file3"  type="data" format="txt,fastq,fastqsanger,fastqillumina,pileup,sam,fasta" label="Select a suitable 3rd file from your history"/>
-<param name="input_file4"  type="data" format="txt,fastq,fastqsanger,fastqillumina,pileup,sam,fasta" label="Select a suitable 4th file from your history"/>
-</inputs>
-<outputs>
-<data name="output_file" format="txt" label="MERGE on ${on_string}">
-	<change_format>
-		<when input="out_format" value="pileup" format="pileup" />
-		<when input="out_format" value="fastq" format="fastq" />
-		<when input="out_format" value="fastqsanger" format="fastqsanger" />
-		<when input="out_format" value="sam" format="sam" />
-		<when input="out_format" value="fasta" format="fasta" />
-	</change_format>
-</data>
-</outputs>
-
-<help>
-
-
-
-</help>
-</tool>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rapsodyn/MergeMultiFile.pl	Tue Oct 07 10:34:34 2014 -0400
@@ -0,0 +1,15 @@
+#!/usr/bin/perl
+#V1.0.0
+use strict;
+use warnings;
+
+my @files = split(/,/,$ARGV[0]);
+for (my $i=0;$i<=$#files;$i++){
+	
+	open(IN, $files[$i]) or die ("Can't open ",$files[$i],"\n");
+	while (my $line = <IN>){
+		print $line;
+	}
+	close (IN);
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rapsodyn/MergeMultiFile.xml	Tue Oct 07 10:34:34 2014 -0400
@@ -0,0 +1,34 @@
+<tool id="MergeMultiFile" name="MergeMultiFile" version="1.00">
+<description>Merge multiple files</description>
+<command interpreter="perl">
+    MergeMultiFile.pl $input_files > $output_file 
+</command>
+<inputs>
+<param name="out_format" type="select" label="Format">
+	<option value="pileup">pileup</option>
+	<option value="fastq">fastq</option>
+	<option value="fastqsanger">fastqsanger</option>
+	<option value="sam">sam</option>
+	<option value="fasta">fasta</option>
+	<option value="txt">txt</option>
+</param>
+<param name="input_files"  type="data" format="txt,fastq,fastqsanger,fastqillumina,pileup,sam,fasta" multiple="true" label="Select suitable files from your history"/>
+</inputs>
+<outputs>
+<data name="output_file" format="txt" label="MERGE on ${on_string}">
+	<change_format>
+		<when input="out_format" value="pileup" format="pileup" />
+		<when input="out_format" value="fastq" format="fastq" />
+		<when input="out_format" value="fastqsanger" format="fastqsanger" />
+		<when input="out_format" value="sam" format="sam" />
+		<when input="out_format" value="fasta" format="fasta" />
+	</change_format>
+</data>
+</outputs>
+
+<help>
+
+
+
+</help>
+</tool>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rapsodyn/MergeSamFiles.pl	Tue Oct 07 10:34:34 2014 -0400
@@ -0,0 +1,32 @@
+#!/usr/bin/perl
+#V1.0.0
+use strict;
+use warnings;
+
+my $header_done = 0;
+my @files = split(/,/,$ARGV[0]);
+for (my $i=0;$i<=$#files;$i++){
+	open(IN, $files[$i]) or die ("Can't open ",$files[$i],"\n");
+	while (my $line = <IN>){
+		if ($line =~ /^\@PG\s/){
+			if ($header_done == 0){
+				$header_done = 1;
+				print $line;
+			}
+			else {
+			}
+		}
+		elsif ($line =~ /^\@SQ\s/){
+			if ($header_done == 0){
+				print $line;
+			}
+			else {
+			}
+		}
+		else{
+			print $line;
+		}
+	}
+	close (IN);
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rapsodyn/MergeSamFiles.xml	Tue Oct 07 10:34:34 2014 -0400
@@ -0,0 +1,18 @@
+<tool id="MergeSamFiles" name="MergeSamFiles" version="1.00">
+<description>Merge multiple SAM files</description>
+<command interpreter="perl">
+    MergeSamFiles.pl $input_files > $output_file 
+</command>
+<inputs>
+<param name="input_files"  type="data" format="sam" multiple="true" label="Select suitable SAM files from your history"/>
+</inputs>
+<outputs>
+<data name="output_file" format="sam" label="MERGE on ${on_string}"/>
+</outputs>
+
+<help>
+
+
+
+</help>
+</tool>
--- a/rapsodyn/ParseBlastForUniqueMatch.pl	Mon Sep 29 03:02:16 2014 -0400
+++ b/rapsodyn/ParseBlastForUniqueMatch.pl	Tue Oct 07 10:34:34 2014 -0400
@@ -1,13 +1,26 @@
 #!/usr/bin/perl
+#V1.0.1 added log, option parameters
 use strict;
 use warnings;
+use Getopt::Long;
 
 
-my $input_variant_file = $ARGV[0];
-my $input_blast_file = $ARGV[1];
-my $window_length = $ARGV[2];
-my $nb_mismatch_max = $ARGV[3];
+my $input_variant_file;
+my $input_blast_file;
+my $log_file;
+my $WINDOW_LENGTH= 50;
+my $NB_MISMATCH_MAX = 3;
 
+GetOptions (
+"input_variant_file=s" => \$input_variant_file,
+"input_blast_file=s" => \$input_blast_file,
+"window_length=s" => \$WINDOW_LENGTH,
+"log_file=s" => \$log_file,
+"nb_mismatch_max=s" => \$NB_MISMATCH_MAX
+) or die("Error in command line arguments\n");
+
+my $nb_variant_checked=0;
+my $nb_variant_selected=0;
 my %hash_name;
 
 open(INB, $input_blast_file) or die ("Can't open $input_blast_file\n");
@@ -71,7 +84,7 @@
 	my $nb_gap_query=0;
 	
 	if (length($query_aln) == length($subject_aln)){
-		if (length($query_aln)<$window_length-$nb_mismatch_max){
+		if (length($query_aln)<$WINDOW_LENGTH-$NB_MISMATCH_MAX){
 		}
 		else {
 			my @q = split(//,$query_aln);
@@ -79,27 +92,27 @@
 			for (my $i=0;$i<=$#q;$i++){
 				my $global_idx = $query_start-1+$i-$nb_gap_query;
 				if ($q[$i] eq "-"){
-					if ($global_idx < $window_length){
+					if ($global_idx < $WINDOW_LENGTH){
 						$compt_mismatch_5p++;
 					}
-					elsif ($global_idx > $window_length){
+					elsif ($global_idx > $WINDOW_LENGTH){
 						$compt_mismatch_3p++;
 					}
 					$nb_gap_query++; #On compte les gap dans la query pour les soustraire de l'index global
 				}
 				else {
 					if ($q[$i] ne $s[$i]){
-						if ($global_idx < $window_length){
+						if ($global_idx < $WINDOW_LENGTH){
 							$compt_mismatch_5p++;
 						}
-						elsif ($global_idx > $window_length){
+						elsif ($global_idx > $WINDOW_LENGTH){
 							$compt_mismatch_3p++;
 						}
 					}
 				}
 			}
 			$compt_mismatch_5p += $query_start-1;
-			$compt_mismatch_3p += $window_length *2 + 1 - $query_stop;
+			$compt_mismatch_3p += $WINDOW_LENGTH *2 + 1 - $query_stop;
 			
 			# for (my $i=0;$i<$window_length;$i++){
 				# if ($tbl_q_aln[$i] eq "#"){
@@ -122,7 +135,7 @@
 				# else {
 				# }
 			# }
-			if (($compt_mismatch_5p <= $nb_mismatch_max)||($compt_mismatch_3p <= $nb_mismatch_max)){
+			if (($compt_mismatch_5p <= $NB_MISMATCH_MAX)||($compt_mismatch_3p <= $NB_MISMATCH_MAX)){
 				$hash_name{$name}++;
 			}
 			
@@ -151,6 +164,7 @@
 open(INV, $input_variant_file) or die ("Can't open $input_variant_file\n");
 
 while (my $ligne = <INV>) {
+	$nb_variant_checked++;
 	
 	my @champs = split (/\s+/,$ligne);
 	my $header = $champs[0]."_".$champs[1];
@@ -158,6 +172,7 @@
 	if ($hash_name{$header}){
 		if ($hash_name{$header}==1){
 			print $ligne;
+			$nb_variant_selected++;
 		}
 	}
 	else {
@@ -169,6 +184,12 @@
 
 close(INV);
 
+open (LF,">$log_file") or die("Can't open $log_file\n");
+print LF "\n####\t Blast filtering \n";
+print LF "Variant checked  :\t$nb_variant_checked\n";
+print LF "Variant selected :\t$nb_variant_selected\n";
+close (LF);
+
 
 # foreach my $key (sort keys %hash_name){
 	# print $key,"\t",$hash_name{$key},"\n";
--- a/rapsodyn/ParseBlastForUniqueMatch.xml	Mon Sep 29 03:02:16 2014 -0400
+++ b/rapsodyn/ParseBlastForUniqueMatch.xml	Tue Oct 07 10:34:34 2014 -0400
@@ -1,16 +1,17 @@
-<tool id="ParseBlastForUniqueMatch" name="ParseBlastForUniqueMatch" version="0.01">
+<tool id="ParseBlastForUniqueMatch" name="ParseBlastForUniqueMatch" version="1.01">
 <description>Filter mpileup with blast results</description>
 <command interpreter="perl">
-    ParseBlastForUniqueMatch.pl $input_variant_file $input_blast_file $window_length $nb_mismatch_max > $output_file 
+    ParseBlastForUniqueMatch.pl -input_variant_file $input_variant_file -input_blast_file $input_blast_file -window_length $window_length -nb_mismatch_max $nb_mismatch_max -log_file $log_file > $output_variant_file 
 </command>
 <inputs>
-<param name="input_variant_file"  type="data" format="pileup" label="Select a suitable input VARIANT file from your history"/>
-<param name="input_blast_file"  type="data" format="tabular" label="Select a suitable input BLAST file (25 or 5 custom column(qseqid,qstart,qend,ssseq,sseq) from your history"/>
-<param name="window_length" type="integer" value="50" label="Number of bases extracted before and after the variant position"/>
-<param name="nb_mismatch_max" type="integer" value="3" label="Threshold for mismatch filter"/>
+	<param name="input_variant_file"  type="data" format="pileup" label="Select a suitable input VARIANT file from your history"/>
+	<param name="input_blast_file"  type="data" format="tabular" label="Select a suitable input BLAST file (25 or 5 custom column(qseqid,qstart,qend,ssseq,sseq) from your history"/>
+	<param name="window_length" type="integer" value="50" label="Number of bases extracted before and after the variant position"/>
+	<param name="nb_mismatch_max" type="integer" value="3" label="Threshold for mismatch filter"/>
 </inputs>
 <outputs>
- <data name="output_file" format="pileup" label="${tool.name} on ${on_string}"/>
+	<data name="output_variant_file" format="pileup" label="${tool.name} on ${on_string}"/>
+	<data name="log_file" format="txt" label="${tool.name} LOG on ${on_string}"/>
 </outputs>
 
 <help>
--- a/rapsodyn/PileupVariant.pl	Mon Sep 29 03:02:16 2014 -0400
+++ b/rapsodyn/PileupVariant.pl	Tue Oct 07 10:34:34 2014 -0400
@@ -1,19 +1,41 @@
 #!/usr/bin/perl
+#V1.0.1 added log, option parameters
 use strict;
+use warnings;
+use Getopt::Long;
 
-my $inputfile = $ARGV[0];
-open(IF, $inputfile)  or die("Can't open $inputfile\n");
+my $input_pileup_file;
+my $output_pileup_file;
+my $log_file;
+
+my $nb_base_covered=0;
+my $nb_variant=0;
+GetOptions (
+"input_pileup_file=s" => \$input_pileup_file,
+"log_file=s" => \$log_file
+) or die("Error in command line arguments\n");
+
+open(IN, $input_pileup_file) or die ("Can't open $input_pileup_file\n");
 
 #Extraction des variants
 my $nb_line=0;
-while (my $line=<IF>){
-	my $test = $line;
-	$test =~ s/\$//g; #the read start at this position
-	$test =~ s/\^.//g; #the read end at this position followed by quality char
-	my @field = split(/\s+/,$test);
+while (my $line=<IN>){
+	#print $line;
+	$nb_base_covered++;
+	$line =~ s/\$//g; #the read start at this position
+	$line =~ s/\^.//g; #the read end at this position followed by quality char
+	#print $line;
 	
+	my @field = split(/\s+/,$line);
 	if ($field[4]=~/[ATGCN]/i){
 		print $line;
+		$nb_variant++;
 	}
 }
-close(IF);
+close(IN);
+
+open (LF,">$log_file") or die("Can't open $log_file\n");
+print LF "\n####\t Variant extraction \n";
+print LF "Position covered :\t$nb_base_covered\n";
+print LF "Variant detected :\t$nb_variant\n";
+close (LF);
--- a/rapsodyn/PileupVariant.xml	Mon Sep 29 03:02:16 2014 -0400
+++ b/rapsodyn/PileupVariant.xml	Tue Oct 07 10:34:34 2014 -0400
@@ -1,13 +1,14 @@
-<tool id="PileupVariant" name="PileupVariant" version="0.01">
+<tool id="PileupVariant" name="PileupVariant" version="1.01">
 <description>Keep only mpileup line with variant</description>
 <command interpreter="perl">
-    PileupVariant.pl $input_file > $output_file 
+    PileupVariant.pl -input_pileup_file $input_pileup_file -log_file $log_file > $output_pileup_file 
 </command>
 <inputs>
-<param name="input_file"  type="data" format="pileup" label="Select a suitable input file from your history"/>
+	<param name="input_pileup_file"  type="data" format="pileup" label="Select a suitable input file from your history"/>
 </inputs>
 <outputs>
- <data name="output_file" format="pileup" label="${tool.name} on ${on_string}"/>
+	<data name="output_pileup_file" format="pileup" label="${tool.name} on ${on_string}"/>
+	<data name="log_file" format="txt" label="${tool.name} LOG on ${on_string}"/>	
 </outputs>
 
 <help>
--- a/rapsodyn/PrepareFastqLight.pl	Mon Sep 29 03:02:16 2014 -0400
+++ b/rapsodyn/PrepareFastqLight.pl	Tue Oct 07 10:34:34 2014 -0400
@@ -1,28 +1,51 @@
 #!/usr/bin/perl
+#V1.0.1 added log, option parameters
 use strict;
 use warnings;
-
-my $read1 = $ARGV[0];
-my $read2 = $ARGV[1];
+use Getopt::Long;
 
-my $output1 = $ARGV[2];
-my $output2 = $ARGV[3];
+my $read1_file;
+my $read2_file;
+my $log_file;
+my $output1_file;
+my $output2_file;
 
-my $TYPE = $ARGV[4];
-my $MIN_LENGTH = $ARGV[5];
-my $MIN_QUALITY = $ARGV[6];
+my $TYPE="sanger";
+my $MIN_LENGTH=30;
+my $MIN_QUALITY=30;
+
+my $VERBOSE = "OFF";
 
-my $VERBOSE = $ARGV[7];
+GetOptions (
+"read1_file=s" => \$read1_file,
+"read2_file=s" => \$read2_file,
+"log_file=s" => \$log_file,
+"output1_file=s" => \$output1_file,
+"output2_file=s" => \$output2_file,
+"type=s" => \$TYPE,
+"min_length=i" => \$MIN_LENGTH,
+"min_quality=i" => \$MIN_QUALITY,
+"verbose=s" => \$VERBOSE
+) or die("Error in command line arguments\n");
 
-if (!$VERBOSE){
-	$VERBOSE ="OFF";
-}
 
-open(READ1, $read1) or die ("Can't open $read1\n");
-open(READ2, $read2) or die ("Can't open $read2\n");
-open(OUT1, ">$output1") or die ("Can't open $output1\n");
-open(OUT2, ">$output2") or die ("Can't open $output2\n");
+my $nb_read1=0;
+my $nb_base_read1=0;
+my $nb_read2=0;
+my $nb_base_read2=0;
 
+my $nb_read1_t=0;
+my $nb_base_read1_t=0;
+my $nb_read2_t=0;
+my $nb_base_read2_t=0;
+
+my $nb_base_current_t=0;
+
+
+open(READ1, $read1_file) or die ("Can't open $read1_file\n");
+open(READ2, $read2_file) or die ("Can't open $read2_file\n");
+open(OUT1, ">$output1_file") or die ("Can't open $output1_file\n");
+open(OUT2, ">$output2_file") or die ("Can't open $output2_file\n");
 
 my $error1=0;
 my $error2=0;
@@ -43,6 +66,9 @@
 	my $ligne2_r2 =<READ2>;
 	my $ligne3_r2 =<READ2>;
 	my $ligne4_r2 =<READ2>;
+
+	$nb_read1++;
+	$nb_read2++;
 	
 #@ 1 sec
 	if ((!$ligne1_r1)||(!$ligne2_r1)||(!$ligne3_r1)||(!$ligne4_r1)||(!$ligne1_r2)||(!$ligne2_r2)||(!$ligne3_r2)||(!$ligne4_r2)){
@@ -91,6 +117,7 @@
 		my $header2="";
 		my $repheader1="";
 		my $repheader2="";
+
 		
 		if ($ligne1_r1 =~/^\@(.*?)\#/){
 			$header1 = $1;
@@ -190,9 +217,11 @@
 			### Parsing sequence & qualité
 			if ($ligne2_r1 =~ /^([ATGCNX]+)\s*$/i){
 				$seq1 = $1;
+				$nb_base_read1 += length($seq1);
 			}
 			if ($ligne2_r2 =~ /^([ATGCNX]+)\s*$/i){
 				$seq2 = $1;
+				$nb_base_read2 += length($seq2);
 			}
 			if ($ligne4_r1 =~ /^(.*)\s*$/i){
 				$qual1 = $1;
@@ -236,37 +265,49 @@
 			else {
 				my $fastq_lines_r1="";
 				my $fastq_lines_r2="";
+				my $nb_base_current_read1_t = 0;
+				my $nb_base_current_read2_t = 0;
+				
 				$fastq_lines_r1 = &grooming_and_trimming($ligne1_r1,$seq1,$qual1);
+				$nb_base_current_read1_t = $nb_base_current_t;
 				if ($fastq_lines_r1){
 					$fastq_lines_r2 = &grooming_and_trimming($ligne1_r2,$seq2,$qual2);
+					$nb_base_current_read2_t = $nb_base_current_t;
 				}
 				if ($fastq_lines_r2){
 					print OUT1 $fastq_lines_r1;
 					print OUT2 $fastq_lines_r2;
+
+					$nb_read1_t++;
+					$nb_read2_t++;
+					$nb_base_read1_t += $nb_base_current_read1_t;
+					$nb_base_read2_t += $nb_base_current_read2_t;
+
+
 				}
 			}
 		}
 	
-		# print OUT1 $ligne1_r1;
-		# print OUT1 $ligne2_r1;
-		# print OUT1 $ligne3_r1;
-		# print OUT1 $ligne4_r1;
-		# print OUT2 $ligne1_r2;
-		# print OUT2 $ligne2_r2;
-		# print OUT2 $ligne3_r2;
-		# print OUT2 $ligne4_r2;
-		
+
 #@ 7 sec
 	}
 }
 
-
-
 close (READ1);
 close (READ2);
 close (OUT1);
 close (OUT2);
 
+open (LF,">$log_file") or die("Can't open $log_file\n");
+print LF "\n####\t Fastq preparation \n";
+print LF "## Before preparation\n";
+print LF "#Read1 :\t$nb_read1\t#Base :\t$nb_base_read1\n";
+print LF "#Read2 :\t$nb_read2\t#Base :\t$nb_base_read2\n";
+print LF "## After preparation\n";
+print LF "#Read1 :\t$nb_read1_t\t#Base :\t$nb_base_read1_t\n";
+print LF "#Read2 :\t$nb_read2_t\t#Base :\t$nb_base_read2_t\n";
+close (LF);
+		
 
 sub grooming_and_trimming{
 	my $header = shift;
@@ -326,7 +367,13 @@
 		
 	}
 	my $lengthTrim = $stopTrim - $startTrim +1;
-	
+
+	#if ($stats_length{$lengthTrim}){
+	#	$stats_length{$lengthTrim} = 1;		
+	#}
+	#else {
+	#	$stats_length{$lengthTrim}++;
+	#}
 	my $fastq_lines="";
 	
 #	if ($header =~ /GA8\-EAS671_0005\:3\:1\:1043\:4432/){
@@ -343,11 +390,23 @@
 #		print "\n";
 #	}
 
+	#for (my $i=$startTrim;$i<=$stopTrim;$i++){
+	#	if ($stats_quality{ord($q{$i])}){
+	#		$stats_quality{ord($q{$i])}=1;
+	#	}
+	#	else {
+	#		$stats_quality{ord($q{$i])}++;
+	#	}
+	#}
+
 	if ($lengthTrim >= $MIN_LENGTH){
 		$fastq_lines .= $header;
-		$fastq_lines .= substr($seq,$startTrim,$lengthTrim)."\n";
+		my $new_seq = substr($seq,$startTrim,$lengthTrim);
+		$nb_base_current_t = length($new_seq);
+		$fastq_lines .= $new_seq."\n";
 		$fastq_lines .= "+\n";
-		$fastq_lines .= substr($quality,$startTrim,$lengthTrim)."\n";
+		my $new_q = substr($quality,$startTrim,$lengthTrim);
+		$fastq_lines .= $new_q."\n";
 		return $fastq_lines;
 		
 	}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rapsodyn/PrepareFastqLight.pl~	Tue Oct 07 10:34:34 2014 -0400
@@ -0,0 +1,457 @@
+#!/usr/bin/perl
+#V1.0.1 added log, option parameters
+use strict;
+use warnings;
+use Getopt::Long;
+
+my $read1_file;
+my $read2_file;
+my $log_file;
+my $output1_file;
+my $output2_file;
+
+my $TYPE="sanger";
+my $MIN_LENGTH=30;
+my $MIN_QUALITY=30;
+
+my $VERBOSE = "OFF";
+
+GetOptions (
+"read1_file=s" => \$read1_file,
+"read2_file=s" => \$read2_file,
+"log_file=s" => \$log_file,
+"output1_file=s" => \$output1_file,
+"output2_file=s" => \$output2_file,
+"type=s" => \$TYPE,
+"min_length=i" => \$MIN_LENGTH,
+"min_quality=i" => \$MIN_QUALITY,
+"verbose=s" => \$VERBOSE
+) or die("Error in command line arguments\n");
+
+
+my $nb_read1=0;
+my $nb_base_read1=0;
+my $nb_read2=0;
+my $nb_base_read2=0;
+
+my $nb_read1_t=0;
+my $nb_base_read1_t=0;
+my $nb_read2_t=0;
+my $nb_base_read2_t=0;
+
+my $nb_base_current_t=0;
+
+
+open(READ1, $read1_file) or die ("Can't open $read1_file\n");
+open(READ2, $read2_file) or die ("Can't open $read2_file\n");
+open(OUT1, ">$output1_file") or die ("Can't open $output1_file\n");
+open(OUT2, ">$output2_file") or die ("Can't open $output2_file\n");
+
+my $error1=0;
+my $error2=0;
+my $error3=0;
+my $error4=0;
+my $error5=0;
+my $error6=0;
+my $error7=0;
+my $error8=0;
+my $error9=0;
+my $error10=0;
+
+while (my $ligne1_r1 =<READ1>){
+	my $ligne2_r1 =<READ1>;
+	my $ligne3_r1 =<READ1>;
+	my $ligne4_r1 =<READ1>;
+	my $ligne1_r2 =<READ2>;
+	my $ligne2_r2 =<READ2>;
+	my $ligne3_r2 =<READ2>;
+	my $ligne4_r2 =<READ2>;
+
+	$nb_read1++;
+	$nb_read2++;
+	
+#@ 1 sec
+	if ((!$ligne1_r1)||(!$ligne2_r1)||(!$ligne3_r1)||(!$ligne4_r1)||(!$ligne1_r2)||(!$ligne2_r2)||(!$ligne3_r2)||(!$ligne4_r2)){
+		if ($VERBOSE eq "ON"){
+			print "Error in file format";
+			if ($ligne1_r1){print $ligne1_r1;}
+			if ($ligne2_r1){print $ligne2_r1;}
+			if ($ligne3_r1){print $ligne3_r1;}
+			if ($ligne4_r1){print $ligne4_r1;}
+			if ($ligne1_r2){print $ligne1_r2;}
+			if ($ligne2_r2){print $ligne2_r2;}
+			if ($ligne3_r2){print $ligne3_r2;}
+			if ($ligne4_r2){print $ligne4_r2;}
+			print "\n";
+		}
+		$error1++;
+	}
+	elsif(($ligne1_r1 !~/^\@/)||($ligne1_r2 !~/^\@/)||($ligne3_r1 !~/^\+/)||($ligne3_r2 !~/^\+/)){
+		if ($VERBOSE eq "ON"){
+			print "Error in header : format\n";
+			print $ligne1_r1;
+			print $ligne2_r1;
+			print $ligne3_r1;
+			print $ligne4_r1;
+			print $ligne1_r2;
+			print $ligne2_r2;
+			print $ligne3_r2;
+			print $ligne4_r2;
+			print "\n";
+		}
+		$error2++;
+	}
+#@ 1 - 2 sec
+	else {
+		
+		my $length_seq1 = length($ligne2_r1);
+		my $length_qual1 =length($ligne4_r1);
+		my $seq1;
+		my $qual1;
+	
+		my $length_seq2 = length($ligne2_r2);
+		my $length_qual2 =length($ligne4_r2);
+		my $seq2;
+		my $qual2;
+		my $header1="";
+		my $header2="";
+		my $repheader1="";
+		my $repheader2="";
+
+		
+		if ($ligne1_r1 =~/^\@(.*?)\#/){
+			$header1 = $1;
+		}
+		
+		if ($ligne3_r1 =~/^\+(.*?)\#/){
+                        $repheader1 = $1;
+               	}
+
+		if ($ligne1_r2 =~/^\@(.*?)\#/){
+                        $header2 = $1;
+               	}
+
+		if ($ligne3_r2 =~/^\+(.*?)\#/){
+                        $repheader2 = $1;
+               	}
+#@ 2 sec
+		
+		### Verification de la coherence sequence /qualité   @ 1 sec
+		if (($TYPE eq "illumina")&&((!$header1)||(!$header2)||(!$repheader1)||(!$repheader2))){
+			if ($VERBOSE eq "ON"){
+				print "Error in header : empty\n";
+				print $ligne1_r1;
+				print $ligne2_r1;
+				print $ligne3_r1;
+				print $ligne4_r1;
+				print $ligne1_r2;
+				print $ligne2_r2;
+				print $ligne3_r2;
+				print $ligne4_r2;
+				print "\n";
+			}
+			$error3++;
+		}
+		elsif (($TYPE eq "sanger")&&((!$header1)||(!$header2))){
+			if ($VERBOSE eq "ON"){
+				print "Error in header refgsd : empty\n";
+				print $ligne1_r1;
+				print $ligne2_r1;
+				print $ligne3_r1;
+				print $ligne4_r1;
+				print $ligne1_r2;
+				print $ligne2_r2;
+				print $ligne3_r2;
+				print $ligne4_r2;
+				print "\n";
+			}
+			$error3++;
+		}
+		elsif (($TYPE eq "illumina")&&(($header1 ne $repheader1)||($header2 ne $repheader2)||($header1 ne $header2))){
+			if ($VERBOSE eq "ON"){
+				print "Error in header : different\n";
+				print $ligne1_r1;
+				print $ligne2_r1;
+				print $ligne3_r1;
+				print $ligne4_r1;
+				print $ligne1_r2;
+				print $ligne2_r2;
+				print $ligne3_r2;
+				print $ligne4_r2;
+				print "\n";
+			}
+			$error4++;
+		}
+		elsif (($TYPE eq "sanger")&&($header1 ne $header2)){
+			if ($VERBOSE eq "ON"){
+				print "Error in header : different\n";
+				print $ligne1_r1;
+				print $ligne2_r1;
+				print $ligne3_r1;
+				print $ligne4_r1;
+				print $ligne1_r2;
+				print $ligne2_r2;
+				print $ligne3_r2;
+				print $ligne4_r2;
+				print "\n";
+			}
+			$error4++;
+		}
+		elsif (($length_seq1 != $length_qual1)||($length_seq2 != $length_qual2)){
+			if ($VERBOSE eq "ON"){
+				print "Error in seq/qual length\n";
+				print $ligne1_r1;
+				print $ligne2_r1;
+				print $ligne3_r1;
+				print $ligne4_r1;
+				print $ligne1_r2;
+				print $ligne2_r2;
+				print $ligne3_r2;
+				print $ligne4_r2;
+				print "\n";
+			}
+			$error5++;
+		}
+#@ 1 - 2 sec	
+		else {
+			### Parsing sequence & qualité
+			if ($ligne2_r1 =~ /^([ATGCNX]+)\s*$/i){
+				$seq1 = $1;
+				$nb_base_read1 += length($seq1);
+			}
+			if ($ligne2_r2 =~ /^([ATGCNX]+)\s*$/i){
+				$seq2 = $1;
+				$nb_base_read2 += length($seq2);
+			}
+			if ($ligne4_r1 =~ /^(.*)\s*$/i){
+				$qual1 = $1;
+			}
+			if ($ligne4_r2 =~ /^(.*)\s*$/i){
+				$qual2 = $1;
+			}
+#@ 2 sec			
+			### Verification du parsing et de la coherence sequence /qualité (n°2)
+			if ((!$seq1)||(!$seq2)||(!$qual1)||(!$qual2)){
+				if ($VERBOSE eq "ON"){
+					print "Error parsing seq / quality \n";
+					print $ligne1_r1;
+					print $ligne2_r1;
+					print $ligne3_r1;
+					print $ligne4_r1;
+					print $ligne1_r2;
+					print $ligne2_r2;
+					print $ligne3_r2;
+					print $ligne4_r2;
+					print "\n";
+				}
+				$error6++;
+			}
+			elsif ((length($seq1) != length($qual1))||(length($seq2) != length($qual2))){
+				if ($VERBOSE eq "ON"){
+					print "Error in seq/qual length after parsing\n";
+					print $ligne1_r1;
+					print $ligne2_r1;
+					print $ligne3_r1;
+					print $ligne4_r1;
+					print $ligne1_r2;
+					print $ligne2_r2;
+					print $ligne3_r2;
+					print $ligne4_r2;
+					print "\n";
+				}
+				$error7++;
+			}
+#@ <1 sec
+			else {
+				my $fastq_lines_r1="";
+				my $fastq_lines_r2="";
+				my $nb_base_current_read1_t = 0;
+				my $nb_base_current_read2_t = 0;
+				
+				$fastq_lines_r1 = &grooming_and_trimming($ligne1_r1,$seq1,$qual1);
+				$nb_base_current_read1_t = $nb_base_current_t;
+				if ($fastq_lines_r1){
+					$fastq_lines_r2 = &grooming_and_trimming($ligne1_r2,$seq2,$qual2);
+					$nb_base_current_read2_t = $nb_base_current_t;
+				}
+				if ($fastq_lines_r2){
+					print OUT1 $fastq_lines_r1;
+					print OUT2 $fastq_lines_r2;
+
+					$nb_read1_t++;
+					$nb_read2_t++;
+					$nb_base_read1_t += $nb_base_current_read1_t;
+					$nb_base_read2_t += $nb_base_current_read2_t;
+
+
+				}
+			}
+		}
+	
+
+#@ 7 sec
+	}
+}
+
+close (READ1);
+close (READ2);
+close (OUT1);
+close (OUT2);
+
+open (LF,">$log_file") or die("Can't open $log_file\n");
+print LF "\n####\t Fastq preparation \n";
+print LF "## Before preparation\n";
+print LF "#Read1 :\t$nb_read1\t#Base :\t$nb_base_read1\n";
+print LF "#Read2 :\t$nb_read2\t#Base :\t$nb_base_read2\n";
+print LF "## After preparation\n";
+print LF "#Read1 :\t$nb_read1_t\t#Base :\t$nb_base_read1_t\n";
+print LF "#Read2 :\t$nb_read2_t\t#Base :\t$nb_base_read2_t\n";
+close (LF);
+		
+
+sub grooming_and_trimming{
+	my $header = shift;
+	my $seq = shift;
+	my $quality = shift;
+	my $quality_converted="";
+	my $quality_ori=$quality;
+	
+	my $lengthseq = length($seq);
+	my $startTrim = 0;
+	my $stopTrim = length($quality)-1;
+	my $startnoN = $startTrim;
+	my $stopnoN = $stopTrim;
+	
+	
+	my $chercheN = $seq;
+	my @bad_position_N;
+	my @bad_position_Q;
+	my $current_index = index($chercheN,"N");
+	my $abs_index = $current_index;
+	while ($current_index >=0){
+		push (@bad_position_N,$abs_index);
+
+		if ($current_index<length($seq)){
+			$chercheN = substr($chercheN,$current_index+1);
+			$current_index = index($chercheN,"N");
+			$abs_index = $current_index + $bad_position_N[$#bad_position_N]+1;
+		}
+		else {
+			last;
+		}
+	}
+		
+	my @q = split(//,$quality);
+	for (my $i=0;$i<=$#q;$i++){
+		my $chr = $q[$i];
+		my $num = ord($q[$i]);
+		if ($TYPE eq "illumina"){
+			$num = $num - 31; # 31 comme la difference entre la plage sanger (33-> 93 / 0->60) et illumina (64->104 / 0->40)
+			$quality_converted .= chr($num);
+		}
+		
+		if ($num < $MIN_QUALITY + 33){ #33 comme le départ de la plage sanger
+			push(@bad_position_Q,$i);
+		}
+	}
+	if ($quality_converted){$quality = $quality_converted;}
+	
+	my @bad_position = (@bad_position_N, @bad_position_Q);
+	
+	if ($#bad_position>=0){
+		@bad_position = sort {$a <=> $b} @bad_position;
+		my %coord=%{&extract_longer_string_coordinates_from_bad_position(0,$stopTrim,\@bad_position)};
+		$startTrim = $coord{"start"};
+		$stopTrim = $coord{"stop"};
+#print "$startTrim .. $stopTrim\n";
+		
+	}
+	my $lengthTrim = $stopTrim - $startTrim +1;
+
+	#if ($stats_length{$lengthTrim}){
+	#	$stats_length{$lengthTrim} = 1;		
+	#}
+	#else {
+	#	$stats_length{$lengthTrim}++;
+	#}
+	my $fastq_lines="";
+	
+#	if ($header =~ /GA8\-EAS671_0005\:3\:1\:1043\:4432/){
+#		print "HEAD:\t$header";	
+#		print "SEQ:\n$seq\n";
+#		print "$quality_ori\n";
+#		print "$quality\n";
+#		for (my $i=0;$i<=$#bad_position;$i++){
+#			print $bad_position[$i]."(".$q[$bad_position[$i]]." : ".ord($q[$bad_position[$i]]).")"."\t";
+#		}
+#		print "\n";
+#		print "$startTrim .. $stopTrim / $lengthTrim \n";
+#		print $fastq_lines;
+#		print "\n";
+#	}
+
+	#for (my $i=$startTrim;$i<=$stopTrim;$i++){
+	#	if ($stats_quality{ord($q{$i])}){
+	#		$stats_quality{ord($q{$i])}=1;
+	#	}
+	#	else {
+	#		$stats_quality{ord($q{$i])}++;
+	#	}
+	#}
+
+	if ($lengthTrim >= $MIN_LENGTH){
+		$fastq_lines .= $header;
+		my $new_seq = substr($seq,$startTrim,$lengthTrim);
+#		$nb_base_current_t = length($new_seq);
+		$fastq_lines .= $new_seq."\n";
+		$fastq_lines .= "+\n";
+		my $new_q = substr($quality,$startTrim,$lengthTrim);
+		$fastq_lines .= $new_q."\n";
+		return $fastq_lines;
+		
+	}
+	else {
+		#print "Insufficient length after trimming\n";
+		return "";
+	}
+}
+
+sub extract_longer_string_coordinates_from_bad_position{
+	my $start=shift;
+	my $stop =shift;
+	my $refbad = shift;
+	my @bad_position = @$refbad;
+	my %coord;
+	
+	my $current_start = $start;
+	my $current_stop = $bad_position[0]-1;
+	if ($current_stop < $start){$current_stop = $start;}
+	
+	
+	#debut -> premier N
+	my $current_length = $current_stop - $current_start +1;
+	my $test_length;
+	
+	#entre les N
+	for (my $i=1;$i<=$#bad_position;$i++){
+		$test_length = $bad_position[$i]+1-$bad_position[$i-1]-1;
+		if ( $test_length >  $current_length){
+			$current_start = $bad_position[$i-1]+1;
+			$current_stop = $bad_position[$i]-1;
+			$current_length = $current_stop - $current_start +1;
+		}
+	}
+	
+	#dernier N -> fin
+	$test_length = $stop-$bad_position[$#bad_position]+1;
+	if ( $test_length >  $current_length){
+		$current_start = $bad_position[$#bad_position]+1;
+		if ($current_start > $stop){$current_start=$stop;}
+		$current_stop = $stop;
+	}	
+	$coord{"start"}=$current_start;
+	$coord{"stop"}= $current_stop;
+	$coord{"lenght"}=$current_stop-$current_start+1;
+	
+	return \%coord;
+}
--- a/rapsodyn/PrepareFastqLight.xml	Mon Sep 29 03:02:16 2014 -0400
+++ b/rapsodyn/PrepareFastqLight.xml	Tue Oct 07 10:34:34 2014 -0400
@@ -1,21 +1,22 @@
-<tool id="PrepareFastqLight" name="PrepareFastqLight" version="0.01">
+<tool id="PrepareFastqLight" name="PrepareFastqLight" version="1.01">
 <description>Fastq preparation</description>
 <command interpreter="perl">
-    PrepareFastqLight.pl $input_read1_file $input_read2_file $output_read1_file $output_read2_file $quality_type $min_quality $min_length
+    PrepareFastqLight.pl -read1_file $input_read1_file -read2_file $input_read2_file -output1 $output_read1_file -output2 $output_read2_file -log_file $log_file -type $quality_type -min_quality $min_quality -min_length $min_length
 </command>
 <inputs>
-<param name="input_read1_file"  type="data" format="txt,fastq" label="Select a suitable FASTQ READ 1 file from your history"/>
-<param name="input_read2_file"  type="data" format="txt,fastq" label="Select a suitable FASTQ READ 2 file from your history"/>
-<param name="quality_type" type="select" label="Select input quality format">
-   <option value="sanger">Sanger</option>
-   <option value="illumina">Illumina 1.3-1.7</option>
- </param>
-<param name="min_quality" type="integer" value="30" label="Minimum quality for 5' and 3' trimming "/>
-<param name="min_length" type="integer" value="30" label="Minimum sequence length after trimming"/>
+	<param name="input_read1_file"  type="data" format="txt,fastq" label="Select a suitable FASTQ READ 1 file from your history"/>
+	<param name="input_read2_file"  type="data" format="txt,fastq" label="Select a suitable FASTQ READ 2 file from your history"/>
+	<param name="quality_type" type="select" label="Select input quality format">
+		<option value="sanger">Sanger</option>
+		<option value="illumina">Illumina 1.3-1.7</option>
+	</param>
+	<param name="min_quality" type="integer" value="30" label="Minimum quality for 5' and 3' trimming "/>
+	<param name="min_length" type="integer" value="30" label="Minimum sequence length after trimming"/>
 </inputs>
 <outputs>
-<data name="output_read1_file" format="fastqsanger" label="${tool.name} on ${on_string}"/>
-<data name="output_read2_file" format="fastqsanger" label="${tool.name} on ${on_string}"/>
+	<data name="output_read1_file" format="fastqsanger" label="${tool.name} on ${on_string}"/>
+	<data name="output_read2_file" format="fastqsanger" label="${tool.name} on ${on_string}"/>
+	<data name="log_file" format="txt" label="${tool.name} LOG on ${on_string}"/>
 </outputs>
 
 <help>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rapsodyn/PrepareFastqLight.xml~	Tue Oct 07 10:34:34 2014 -0400
@@ -0,0 +1,27 @@
+<tool id="PrepareFastqLight" name="PrepareFastqLight" version="1.01">
+<description>Fastq preparation</description>
+<command interpreter="perl">
+    PrepareFastqLight.pl -read1_file $input_read1_file -read2_file $input_read2_file -output1 $output_read1_file -output2 $output_read2_file -log_file $log_file -type $quality_type -min_quality $min_quality -min_length $min_length
+</command>
+<inputs>
+	<param name="input_read1_file"  type="data" format="txt,fastq" label="Select a suitable FASTQ READ 1 file from your history"/>
+	<param name="input_read2_file"  type="data" format="txt,fastq" label="Select a suitable FASTQ READ 2 file from your history"/>
+	<param name="quality_type" type="select" label="Select input quality format">
+		<option value="sanger">Sanger</option>
+		<option value="illumina">Illumina 1.3-1.7</option>
+	</param>
+	<param name="min_quality" type="integer" value="30" label="Minimum quality for 5' and 3' trimming "/>
+	<param name="min_length" type="integer" value="30" label="Minimum sequence length after trimming"/>
+</inputs>
+<outputs>
+	<data name="output_read1_file" format="fastqsanger" label="${tool.name} on ${on_string}"/>
+	<data name="output_read2_file" format="fastqsanger" label="${tool.name} on ${on_string}"/>
+	<data name="log_file" format="txt" label="${tool.name} LOG on ${on_string}"/>
+</outputs>
+
+<help>
+
+
+
+</help>
+</tool>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rapsodyn/SplitFile10x.pl	Tue Oct 07 10:34:34 2014 -0400
@@ -0,0 +1,94 @@
+#!/usr/bin/perl
+#V1.0.0
+use strict;
+use warnings;
+
+my $in = $ARGV[0];
+my $NB_LINE_GROUP = $ARGV[1];
+my $out1 = $ARGV[2];
+my $out2 = $ARGV[3];
+my $out3 = $ARGV[4];
+my $out4 = $ARGV[5];
+my $out5 = $ARGV[6];
+my $out6 = $ARGV[7];
+my $out7 = $ARGV[8];
+my $out8 = $ARGV[9];
+my $out9 = $ARGV[10];
+my $out10 = $ARGV[11];
+
+my $file_nb = 1;
+
+my @in;
+my $current_aggregate;
+open(IN, $in) or die ("Can't open $in\n");
+while (my $line =<IN>){
+	$current_aggregate = $line;
+	my $nb_line=1;
+	if ($NB_LINE_GROUP>1){
+		while (my $add_line = <IN>){
+			$current_aggregate .= $add_line;
+			$nb_line++;
+			if ($nb_line == $NB_LINE_GROUP){
+				last;
+			}
+		}
+	}	
+	push (@in,$current_aggregate);
+}
+close (IN);
+
+open (OUT1,">$out1") or die ("Can't open $out1");
+open (OUT2,">$out2") or die ("Can't open $out2");
+open (OUT3,">$out3") or die ("Can't open $out3");
+open (OUT4,">$out4") or die ("Can't open $out4");
+open (OUT5,">$out5") or die ("Can't open $out5");
+open (OUT6,">$out6") or die ("Can't open $out6");
+open (OUT7,">$out7") or die ("Can't open $out7");
+open (OUT8,">$out8") or die ("Can't open $out8");
+open (OUT9,">$out9") or die ("Can't open $out9");
+open (OUT10,">$out10") or die ("Can't open $out10");
+
+
+for (my $i=0;$i<=$#in;$i++){
+	if ($i <= $#in * 1 /10){
+		print OUT1 $in[$i];
+	}
+	elsif ($i <= $#in* 2 /10){
+		print OUT2 $in[$i];
+	}
+	elsif ($i <= $#in*3/10){
+		print OUT3 $in[$i];
+	}
+	elsif ($i <= $#in*4/10){
+		print OUT4 $in[$i];
+	}
+	elsif ($i <= $#in*5/10){
+		print OUT5 $in[$i];
+	}
+	elsif ($i <= $#in*6/10){
+		print OUT6 $in[$i];
+	}
+	elsif ($i <= $#in*7/10){
+		print OUT7 $in[$i];
+	}
+	elsif ($i <= $#in*8/10){
+		print OUT8 $in[$i];
+	}
+	elsif ($i <= $#in*9/10){
+		print OUT9 $in[$i];
+	}
+	elsif ($i <= $#in*10/10){
+		print OUT10 $in[$i];
+	}
+	else {
+
+	}
+
+
+}  
+close (OUT1);
+close (OUT2);
+close (OUT3);
+close (OUT4);
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rapsodyn/SplitFile10x.xml	Tue Oct 07 10:34:34 2014 -0400
@@ -0,0 +1,116 @@
+<tool id="SplitFile10x" name="SplitFile10x" version="1.00">
+<description>Split file in 10</description>
+<command interpreter="perl">
+    SplitFile10x.pl $input_file $line_number $output_file1 $output_file2 $output_file3 $output_file4 $output_file5 $output_file6 $output_file7 $output_file8 $output_file9 $output_file10
+</command>
+<inputs>
+<param name="out_format" type="select" label="Format">
+	<option value="pileup">pileup</option>
+	<option value="fastq">fastq</option>
+	<option value="fastqsanger">fastqsanger</option>
+	<option value="sam">sam</option>
+	<option value="fasta">fasta</option>
+</param>
+<param name="input_file"  type="data" format="fastq,fastqsanger,fastqillumina,pileup,sam,fasta" label="Select a suitable input file from your history"/>
+<param name="line_number" type="integer" value="4" label="Number of line read at a time before splitting"/>
+</inputs>
+<outputs>
+<data name="output_file1" format="txt" label="PART1 on ${on_string}">
+	<change_format>
+		<when input="out_format" value="pileup" format="pileup" />
+		<when input="out_format" value="fastq" format="fastq" />
+		<when input="out_format" value="sam" format="sam" />
+		<when input="out_format" value="fasta" format="fasta" />
+		<when input="out_format" value="fastqsanger" format="fastqsanger" />
+	</change_format>
+</data>
+<data name="output_file2" format="txt" label="PART2 on ${on_string}">
+	<change_format>
+		<when input="out_format" value="pileup" format="pileup" />
+		<when input="out_format" value="fastq" format="fastq" />
+		<when input="out_format" value="sam" format="sam" />
+		<when input="out_format" value="fasta" format="fasta" />
+		<when input="out_format" value="fastqsanger" format="fastqsanger" />
+	</change_format>
+</data>
+<data name="output_file3" format="txt" label="PART3 on ${on_string}">
+	<change_format>
+		<when input="out_format" value="pileup" format="pileup" />
+		<when input="out_format" value="fastq" format="fastq" />
+		<when input="out_format" value="sam" format="sam" />
+		<when input="out_format" value="fasta" format="fasta" />
+		<when input="out_format" value="fastqsanger" format="fastqsanger" />
+	</change_format>
+</data>
+<data name="output_file4" format="txt" label="PART4 on ${on_string}">
+	<change_format>
+		<when input="out_format" value="pileup" format="pileup" />
+		<when input="out_format" value="fastq" format="fastq" />
+		<when input="out_format" value="sam" format="sam" />
+		<when input="out_format" value="fasta" format="fasta" />
+		<when input="out_format" value="fastqsanger" format="fastqsanger" />
+	</change_format>
+</data>
+<data name="output_file5" format="txt" label="PART5 on ${on_string}">
+	<change_format>
+		<when input="out_format" value="pileup" format="pileup" />
+		<when input="out_format" value="fastq" format="fastq" />
+		<when input="out_format" value="sam" format="sam" />
+		<when input="out_format" value="fasta" format="fasta" />
+		<when input="out_format" value="fastqsanger" format="fastqsanger" />
+	</change_format>
+</data>
+<data name="output_file6" format="txt" label="PART6 on ${on_string}">
+	<change_format>
+		<when input="out_format" value="pileup" format="pileup" />
+		<when input="out_format" value="fastq" format="fastq" />
+		<when input="out_format" value="sam" format="sam" />
+		<when input="out_format" value="fasta" format="fasta" />
+		<when input="out_format" value="fastqsanger" format="fastqsanger" />
+	</change_format>
+</data>
+<data name="output_file7" format="txt" label="PART7 on ${on_string}">
+	<change_format>
+		<when input="out_format" value="pileup" format="pileup" />
+		<when input="out_format" value="fastq" format="fastq" />
+		<when input="out_format" value="sam" format="sam" />
+		<when input="out_format" value="fasta" format="fasta" />
+		<when input="out_format" value="fastqsanger" format="fastqsanger" />
+	</change_format>
+</data>
+<data name="output_file8" format="txt" label="PART8 on ${on_string}">
+	<change_format>
+		<when input="out_format" value="pileup" format="pileup" />
+		<when input="out_format" value="fastq" format="fastq" />
+		<when input="out_format" value="sam" format="sam" />
+		<when input="out_format" value="fasta" format="fasta" />
+		<when input="out_format" value="fastqsanger" format="fastqsanger" />
+	</change_format>
+</data>
+<data name="output_file9" format="txt" label="PART9 on ${on_string}">
+	<change_format>
+		<when input="out_format" value="pileup" format="pileup" />
+		<when input="out_format" value="fastq" format="fastq" />
+		<when input="out_format" value="sam" format="sam" />
+		<when input="out_format" value="fasta" format="fasta" />
+		<when input="out_format" value="fastqsanger" format="fastqsanger" />
+	</change_format>
+</data>
+<data name="output_file10" format="txt" label="PART10 on ${on_string}">
+	<change_format>
+		<when input="out_format" value="pileup" format="pileup" />
+		<when input="out_format" value="fastq" format="fastq" />
+		<when input="out_format" value="sam" format="sam" />
+		<when input="out_format" value="fasta" format="fasta" />
+		<when input="out_format" value="fastqsanger" format="fastqsanger" />
+	</change_format>
+</data>
+
+</outputs>
+
+<help>
+
+
+
+</help>
+</tool>
--- a/rapsodyn/SplitFile2x.pl	Mon Sep 29 03:02:16 2014 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,54 +0,0 @@
-#!/usr/bin/perl
-use strict;
-use warnings;
-
-my $in = $ARGV[0];
-my $NB_LINE_GROUP = $ARGV[1];
-my $NB_FILE = 2;
-my $out1 = $ARGV[2];
-my $out2 = $ARGV[3];
-
-if (!$NB_LINE_GROUP){
-	$NB_LINE_GROUP=4;
-}
-
-if (!$NB_FILE){
-	$NB_FILE=2;
-}
-
-my $file_nb = 1;
-
-my @in;
-my $current_aggregate;
-open(IN, $in) or die ("Can't open $in\n");
-while (my $line =<IN>){
-	$current_aggregate = $line;
-	my $nb_line=1;
-	if ($NB_LINE_GROUP>1){
-		while (my $add_line = <IN>){
-			$current_aggregate .= $add_line;
-			$nb_line++;
-			if ($nb_line == $NB_LINE_GROUP){
-				last;
-			}
-		}
-	}	
-	push (@in,$current_aggregate);
-}
-close (IN);
-
-open (OUT1,">$out1") or die ("Can't open $out1");
-open (OUT2,">$out2") or die ("Can't open $out2");
-
-for (my $i=0;$i<=$#in;$i++){
-	if ($i <= $#in/2){
-		print OUT1 $in[$i];
-	}
-	else {
-		print OUT2 $in[$i];
-	}
-
-
-}  
-close (OUT1);
-close (OUT2);
--- a/rapsodyn/SplitFile2x.xml	Mon Sep 29 03:02:16 2014 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,44 +0,0 @@
-<tool id="SplitFile2x" name="SplitFile2x" version="0.01">
-<description>Split file in 2</description>
-<command interpreter="perl">
-    SplitFile2x.pl $input_file $line_number $output_file1 $output_file2
-</command>
-<inputs>
-<param name="out_format" type="select" label="Format">
-	<option value="pileup">pileup</option>
-	<option value="fastq">fastq</option>
-	<option value="fastqsanger">fastqsanger</option>
-	<option value="sam">sam</option>
-	<option value="fasta">fasta</option>
-</param>
-<param name="input_file"  type="data" format="fastq,fastqsanger,fastqillumina,pileup,sam,fasta" label="Select a suitable input file from your history"/>
-<param name="line_number" type="integer" value="4" label="Number of line read at a time before splitting"/>
-</inputs>
-<outputs>
-<data name="output_file1" format="txt" label="PART1 on ${on_string}">
-	<change_format>
-		<when input="out_format" value="pileup" format="pileup" />
-		<when input="out_format" value="fastq" format="fastq" />
-		<when input="out_format" value="sam" format="sam" />
-		<when input="out_format" value="fasta" format="fasta" />
-		<when input="out_format" value="fastqsanger" format="fastqsanger" />
-	</change_format>
-</data>
-<data name="output_file2" format="txt" label="PART2 on ${on_string}">
-	<change_format>
-		<when input="out_format" value="pileup" format="pileup" />
-		<when input="out_format" value="fastq" format="fastq" />
-		<when input="out_format" value="sam" format="sam" />
-		<when input="out_format" value="fasta" format="fasta" />
-		<when input="out_format" value="fastqsanger" format="fastqsanger" />
-	</change_format>
-</data>
-
-</outputs>
-
-<help>
-
-
-
-</help>
-</tool>
--- a/rapsodyn/extractseq.pl	Mon Sep 29 03:02:16 2014 -0400
+++ b/rapsodyn/extractseq.pl	Tue Oct 07 10:34:34 2014 -0400
@@ -1,5 +1,5 @@
 #!/usr/bin/perl
-#V1.10
+#V1.01 #Ajout d'un _ a la fin du nom pour eviter les problemes avec ncbi blast+
 
 use strict;
 use warnings;
@@ -89,7 +89,7 @@
 		}
 		$variant{"desc"}=$descriptor;
 		
-		print ">",$variant{"ref"},"_",$descriptor,"_","\n",$variant{"SEQ"},"\n"; #MAJ : ajout du diese pour pas perturber blast
+		print ">",$variant{"ref"},"_",$descriptor,"\n",$variant{"SEQ"},"\n";
 
 		
 		
--- a/rapsodyn/extractseq.xml	Mon Sep 29 03:02:16 2014 -0400
+++ b/rapsodyn/extractseq.xml	Tue Oct 07 10:34:34 2014 -0400
@@ -1,4 +1,4 @@
-<tool id="extractseq" name="extractseq" version="0.03">
+<tool id="extractseq" name="extractseq" version="1.01">
 <description>Extract Sequence around variant position</description>
 <command interpreter="perl">
     extractseq.pl -input_variant_file $input_variant_file -input_assembly_file $input_assembly_file -window_length $window_length > $output_file 
--- a/rapsodyn/fastaGroomerForMakeBlastdb.pl	Mon Sep 29 03:02:16 2014 -0400
+++ b/rapsodyn/fastaGroomerForMakeBlastdb.pl	Tue Oct 07 10:34:34 2014 -0400
@@ -1,4 +1,5 @@
 #!/usr/bin/perl
+#V1.0.0
 my $inputfasta = $ARGV[0];
 
 open(IB, $inputfasta) or die ("Can't open $inputfasta \n");
--- a/rapsodyn/fastaGroomerForMakeBlastdb.xml	Mon Sep 29 03:02:16 2014 -0400
+++ b/rapsodyn/fastaGroomerForMakeBlastdb.xml	Tue Oct 07 10:34:34 2014 -0400
@@ -1,4 +1,4 @@
-<tool id="fastaGroomerForMakeBlastdb" name="fastaGroomerForMakeBlastdb" version="0.01">
+<tool id="fastaGroomerForMakeBlastdb" name="fastaGroomerForMakeBlastdb" version="1.00">
 <description>fasta Groomer For MakeBlastdb</description>
 <command interpreter="perl">
     fastaGroomerForMakeBlastdb.pl $input_fasta > $output_fasta
--- a/rapsodyn/filtersam_mapped_and_unique.pl	Mon Sep 29 03:02:16 2014 -0400
+++ b/rapsodyn/filtersam_mapped_and_unique.pl	Tue Oct 07 10:34:34 2014 -0400
@@ -1,23 +1,83 @@
 #!/usr/bin/perl
+#V1.0.1 added log, option parameters
 use strict;
 use warnings;
+use Getopt::Long;
 
-open(IN, $ARGV[0]) or die ("Can't open $ARGV[0]\n");
+my $input_sam_file;
+my $output_sam_file;
+my $log_file;
+
+my %bitscore_all;
+my %bitscore_selected;
+
+GetOptions (
+"input_sam_file=s" => \$input_sam_file,
+"output_sam_file=s" => \$output_sam_file,
+"log_file=s" => \$log_file
+) or die("Error in command line arguments\n");
+
+open(IN, $input_sam_file) or die ("Can't open $input_sam_file\n");
 while (my $line=<IN>){
-	if ($line =~ /^\@/){
+	if (($line =~ /^\@SQ/)||($line =~ /^\@PG/)){
 		#Header conservation
 		print $line;
 	}
 	else {
 		#Optionnal flag verification
+		my @fields_all = split (/\s+/,$line);
+		my $bit = $fields_all[1];
+		if ($bitscore_all{$bit}){
+			$bitscore_all{$bit}++;
+		}
+		else {
+			$bitscore_all{$bit}=1;
+		}
 		if (($line =~ /XT\:A\:U/)&&($line =~ /X0\:i\:1/)&&($line =~ /X1\:i\:0\s/)){
-			my @fields = split (/\s+/,$line);
-			if (($fields[1]==83)||($fields[1]==163)||($fields[1]==147)||($fields[1]==99)){
+			my @fields_selected = split (/\s+/,$line);
+			if (($fields_selected[1]==83)||($fields_selected[1]==163)||($fields_selected[1]==147)||($fields_selected[1]==99)){
 				print $line;
+				my $bit = $fields_selected[1];
+				if ($bitscore_selected{$bit}){
+					$bitscore_selected{$bit}++;
+				}
+				else {
+					$bitscore_selected{$bit}=1;
+				}
 			}
 		}
 	}
 }
 
+close (IN);
 
-close (IN);
\ No newline at end of file
+open (LF,">$log_file") or die("Can't open $log_file\n");
+print LF "\n####\t Sam filtering \n";
+print LF "## Before filtering\n";
+print LF "bitscore\t:\t";
+foreach my $key (sort {$bitscore_all{$b} <=> $bitscore_all{$a}} keys %bitscore_all) {
+	print LF $key,"\t*\t";
+}
+print LF "\n number \t:\t";
+foreach my $key (sort {$bitscore_all{$b} <=> $bitscore_all{$a}} keys %bitscore_all) {
+	print LF $bitscore_all{$key},"\t*\t";
+}
+print LF "\n";
+print LF "## After filtering\n";
+print LF "bitscore\t:\t";
+foreach my $key (sort {$bitscore_selected{$b} <=> $bitscore_selected{$a}} keys %bitscore_selected) {
+	print LF $key,"\t*\t";
+}
+print LF "\n number \t:\t";
+foreach my $key (sort {$bitscore_selected{$b} <=> $bitscore_selected{$a}} keys %bitscore_selected) {
+	print LF $bitscore_selected{$key},"\t*\t";
+}
+print LF "\n";
+close (LF);
+
+
+
+
+
+
+
--- a/rapsodyn/filtersam_mapped_and_unique.xml	Mon Sep 29 03:02:16 2014 -0400
+++ b/rapsodyn/filtersam_mapped_and_unique.xml	Tue Oct 07 10:34:34 2014 -0400
@@ -1,13 +1,14 @@
-<tool id="filtersam_mapped_and_unique" name="filtersam_mapped_and_unique" version="0.01">
+<tool id="filtersam_mapped_and_unique" name="filtersam_mapped_and_unique" version="1.01">
 <description>Filter SAM file for uniq and well mapped pair-end reads</description>
 <command interpreter="perl">
-    filtersam_mapped_and_unique.pl $input_sam_file > $output_file 
+    filtersam_mapped_and_unique.pl -input_sam_file $input_sam_file -log_file $log_file> $output_sam_file 
 </command>
 <inputs>
-<param name="input_sam_file"  type="data" format="sam" label="Select a suitable input SAM file from your history"/>
+	<param name="input_sam_file"  type="data" format="sam" label="Select a suitable input SAM file from your history"/>
 </inputs>
 <outputs>
- <data name="output_file" format="sam" label="${tool.name} on ${on_string}"/>
+	<data name="output_sam_file" format="sam" label="${tool.name} on ${on_string}"/>
+	<data name="log_file" format="txt" label="${tool.name} LOG on ${on_string}"/>
 </outputs>
 
 <help>
--- a/rapsodyn/listfiltering.pl	Mon Sep 29 03:02:16 2014 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,61 +0,0 @@
-#!/usr/bin/perl
-use strict;
-use Getopt::Long;
-
-my $inputfile;
-my $headerfile;
-my $nb_col=1;
-my %header;
-
-if ($#ARGV<0){
-	print "\n";
-	print "perl 021_ListFiltering.pl -input_file <file> -header_file <file> -nb_col <integer>[1]\n";
-	exit(0);
-}
-
-GetOptions (
-"input_file=s" => \$inputfile,
-"header_file=s" => \$headerfile,
-"nb_col=i" => \$nb_col
-) or die("Error in command line arguments\n");
-
-open(HF, $headerfile)  or die("Can't open $headerfile\n");
-while (my $line=<HF>){
-	chomp($line);
-	my @fields = split(/\s+/,$line);
-	my $ref="";
-	my $compt=0;
-	while ($compt<$nb_col){
-		if ($ref){$ref.="\t";}
-		$ref.=$fields[$compt];
-		$compt++;
-	}
-	# my $ref = "$fields[0]\t$fields[1]";
-	$header{$ref}=$line;
-}
-close (HF);
-
-
-open(IF, $inputfile)  or die("Can't open $inputfile\n");
-while (my $line=<IF>){
-	my @fields = split(/\s+/,$line);
-	my $ref="";
-	my $compt=0;
-	while ($compt<$nb_col){
-		if ($ref){$ref.="\t";}
-		$ref.=$fields[$compt];
-		$compt++;
-	}
-	# my $ref = "$fields[0]\t$fields[1]";
-
-	if ($header{$ref}){
-		# print $line;
-		# print $header{$ref},"\n";
-	}
-	else {
-		print $line;
-	}
-	
-}
-close(IF);
-
--- a/rapsodyn/listfiltering.xml	Mon Sep 29 03:02:16 2014 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-<tool id="listfiltering" name="listfiltering" version="0.01">
-<description>Compare listA and listB first X column and remove from listA the elements present in listB</description>
-<command interpreter="perl">
-    listfiltering.pl -input_file $input_listA -header_file $input_listB -nb_col $nb_col > $output_file 
-</command>
-<inputs>
-<param name="input_listA"  type="data" format="pileup" label="Select a suitable input file from your history"/>
-<param name="input_listB"  type="data" format="txt" label="Select a suitable input file from your history"/>
-<param name="nb_col" type="integer" value="2" label="Number of column to compare"/>
-</inputs>
-<outputs>
- <data name="output_file" format="pileup" label="${tool.name} on ${on_string}"/>
-</outputs>
-
-<help>
-
-
-
-</help>
-</tool>
--- a/rapsodyn/mpileupfilterandstat.pl	Mon Sep 29 03:02:16 2014 -0400
+++ b/rapsodyn/mpileupfilterandstat.pl	Tue Oct 07 10:34:34 2014 -0400
@@ -1,4 +1,5 @@
 #!/usr/bin/perl
+#V1.0.0
 use strict;
 use Getopt::Long;
 
@@ -29,6 +30,9 @@
 my $ONLY_UNFILTERED_VARIANT="OFF";
 my $DO_STAT="NO";
 
+my $nb_variant_checked=0;
+my $nb_variant_selected=0;
+
 
 my $STAT_MIN_DEPTH_MIN = 2;
 my $STAT_MIN_DEPTH_MAX = 10;
@@ -83,6 +87,7 @@
 #Extraction des variants
 my $nb_line=0;
 while (my $line=<IF>){
+	$nb_variant_checked++;
 	$nb_line++;
 	if (($nb_line % 1000000 == 0)&&($VERBOSE==1)){
 		print "$nb_line\n";
@@ -151,6 +156,7 @@
 	my $error_code = check_error($tbl_line[$i],$before,$after,\%USR_PARAM);
 	if ($error_code == 0){
 		print $line{"line"};
+		$nb_variant_selected++;
 	}
 	else {
 		push(@error,$error_code,"\t",$line{"line"});
@@ -159,8 +165,12 @@
 
 ### LOG
 open(LF,">$logfile") or die ("Can't open $logfile\n");
-
-if ($DO_STAT eq "YES"){
+print LF "\n####\t MPileup filtering \n";
+print LF "Variant checked  :\t$nb_variant_checked\n";
+if ($DO_STAT eq "NO"){
+	print LF "Variant selected :\t$nb_variant_selected\n";
+}
+elsif ($DO_STAT eq "YES"){
 	for (my $idx_min_depth=$STAT_MIN_DEPTH_MIN;$idx_min_depth<=$STAT_MIN_DEPTH_MAX;$idx_min_depth = $idx_min_depth + $STAT_MIN_DEPTH_STEP ){
 		for (my $idx_max_depth=$STAT_MAX_DEPTH_MIN;$idx_max_depth<=$STAT_MAX_DEPTH_MAX;$idx_max_depth = $idx_max_depth + $STAT_MAX_DEPTH_STEP ){
 			for (my $idx_freq = $STAT_FREQ_MIN;$idx_freq<=$STAT_FREQ_MAX;$idx_freq= $idx_freq+$STAT_FREQ_STEP){ 
@@ -183,9 +193,9 @@
 }
 
 
-for (my $i=0;$i<=$#error;$i++){
-	print LF $error[$i];
-}
+#for (my $i=0;$i<=$#error;$i++){
+#	print LF $error[$i];
+#}
 close (LF);
 
 
--- a/rapsodyn/mpileupfilterandstat.xml	Mon Sep 29 03:02:16 2014 -0400
+++ b/rapsodyn/mpileupfilterandstat.xml	Tue Oct 07 10:34:34 2014 -0400
@@ -1,4 +1,4 @@
-<tool id="mpileupfilterandstat" name="mpileupfilterandstat" version="0.08">
+<tool id="mpileupfilterandstat" name="mpileupfilterandstat" version="1.00">
 <description>Filter mpileup file entry</description>
 <command interpreter="perl">
   #if $stat.do_stat=="YES"
@@ -14,26 +14,26 @@
 </command>
 <inputs>
 <param name="input_file"  type="data" format="pileup" label="Select a suitable input file from your history"/>
-<param name="min_depth" type="integer" value="2" label="Minimum depth at variant position "/>
-<param name="max_depth" type="integer" value="100" label="Maximum depth at variant position "/>
-<param name="min_frequency" type="float" value="1" label="Minimum variant frequency (between 0-1 : 0.5 for 50%) "/>
+<param name="min_depth" type="integer" value="1" label="Minimum depth at variant position "/>
+<param name="max_depth" type="integer" value="500" label="Maximum depth at variant position "/>
+<param name="min_frequency" type="float" value="0" label="Minimum variant frequency (between 0-1 : 0.5 for 50%) "/>
 <param name="min_forward_and_reverse" type="integer" value="0" label="Minimum variant coverage by forward and reverse reads"/>
-<param name="min_distance" type="integer" value="50" label="Minimum physical distance between variant"/>
+<param name="min_distance" type="integer" value="0" label="Minimum physical distance between variant"/>
 <conditional name="stat">
   <param name="do_stat" type="select" label="Compute stats ">
     <option value="NO">NO</option>
     <option value="YES">YES</option>
   </param>
   <when value="YES">
-    <param name="stat_min_depth_min" type="integer" value = "2" label="min_depth - min" />
-    <param name="stat_min_depth_max" type="integer" value = "10" label="min_depth - max" />
-    <param name="stat_min_depth_step" type="integer" value = "2" label="min_depth - step" />
-    <param name="stat_max_depth_min" type="integer" value = "100" label="max_depth - min" />
+    <param name="stat_min_depth_min" type="integer" value = "4" label="min_depth - min" />
+    <param name="stat_min_depth_max" type="integer" value = "20" label="min_depth - max" />
+    <param name="stat_min_depth_step" type="integer" value = "4" label="min_depth - step" />
+    <param name="stat_max_depth_min" type="integer" value = "200" label="max_depth - min" />
     <param name="stat_max_depth_max" type="integer" value = "200" label="max_depth - max" />
     <param name="stat_max_depth_step" type="integer" value = "100" label="max_depth - step" />
     <param name="stat_freq_min" type="float" value = "0.8" label="freq - min" />
     <param name="stat_freq_max" type="float" value = "1" label="freq - max" />
-    <param name="stat_freq_step" type="float" value = "0.1" label="freq - step" />
+    <param name="stat_freq_step" type="float" value = "0.2" label="freq - step" />
     <param name="stat_dist_min" type="integer" value = "0" label="dist - min" />
     <param name="stat_dist_max" type="integer" value = "50" label="dist - max" />
     <param name="stat_dist_step" type="integer" value = "50" label="dist - step" />
--- a/rapsodyn/rapsosnp_stats.pl	Mon Sep 29 03:02:16 2014 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,215 +0,0 @@
-#!/usr/bin/perl
-use strict;
-use warnings;
-
-my $read1_row = $ARGV[0];
-my $read2_row = $ARGV[1];
-
-my $read1_trimmed = $ARGV[2];
-my $read2_trimmed = $ARGV[3];
-
-my $sam_row = $ARGV[4];
-my $sam_filtered = $ARGV[5];
-
-my $mpileup_variant = $ARGV[6];
-
-my $list_filtered = $ARGV[7];
-
-my $blast_filtered = $ARGV[8];
-
-my $snp_selected = $ARGV[9];
-
-
-open(INR1R, $read1_row) or die ("Can't open $read1_row\n");
-my $nbread=0;
-my $nbbase =0;
-while (my $line1=<INR1R>){
-	my $line2 = <INR1R>;
-	my $line3 = <INR1R>;
-	my $line4 = <INR1R>;
-	if ($line1 =~ /^@/){
-		$nbread++;
-		if ($line2=~/([ATGCNX]+)/i){
-			$nbbase += length($1);
-		}
-	}
-}
-print "Row Reads 1\t\tNumber of reads : ",$nbread,"\tnumber of bases : ",$nbbase,"\n";
-close (INR1R);
-
-open(INR2R, $read2_row) or die ("Can't open $read2_row\n");
-$nbread=0;
-$nbbase =0;
-while (my $line1=<INR2R>){
-	my $line2 = <INR2R>;
-	my $line3 = <INR2R>;
-	my $line4 = <INR2R>;
-	if ($line1 =~ /^@/){
-		$nbread++;
-		if ($line2=~/([ATGCNX]+)/i){
-			$nbbase += length($1);
-		}
-	}
-}
-print "Row Reads 2\t\tNumber of reads : ",$nbread,"\tnumber of bases : ",$nbbase,"\n";
-close (INR2R);
-
-open(INR1T, $read1_trimmed) or die ("Can't open $read1_trimmed\n");
-$nbread=0;
-$nbbase =0;
-while (my $line1=<INR1T>){
-	my $line2 = <INR1T>;
-	my $line3 = <INR1T>;
-	my $line4 = <INR1T>;
-	if ($line1 =~ /^@/){
-		$nbread++;
-		if ($line2=~/([ATGCNX]+)/i){
-			$nbbase += length($1);
-		}
-		else {
-			print STDERR "$line1\n$line2\n";
-		}
-	}
-}
-print "Trimmed Reads 1\t\tNumber of reads : ",$nbread,"\tnumber of bases : ",$nbbase,"\n";
-close (INR1T);
-
-open(INR2T, $read2_trimmed) or die ("Can't open $read2_trimmed\n");
-$nbread=0;
-$nbbase =0;
-while (my $line1=<INR2T>){
-	my $line2 = <INR2T>;
-	my $line3 = <INR2T>;
-	my $line4 = <INR2T>;
-	if ($line1 =~ /^@/){
-		$nbread++;
-		if ($line2=~/([ATGCNX]+)/i){
-			$nbbase += length($1);
-		}
-		else {
-			print STDERR "$line1\n$line2\n";
-		}
-	}
-}
-print "Trimmed Reads 2\t\tNumber of reads : ",$nbread,"\tnumber of bases : ",$nbbase,"\n";
-close (INR2T);
-
-print "\nSAM row\n";
-open(SAM, $sam_row) or die ("Can't open $sam_row\n");
-my %bitscore;
-while (my $line=<SAM>){
-	if (($line !~ /^\@SQ/)&&($line !~ /^\@PG/)){
-		my @fields = split(/\s+/,$line);
-		my $bit = $fields[1];
-		if ($bitscore{$bit}){
-			$bitscore{$bit}++;
-		}
-		else {
-			$bitscore{$bit}=1;
-		}
-	}
-}
-
-print "bitscore\t";
-foreach my $key (sort {$bitscore{$b} <=> $bitscore{$a}} keys %bitscore) {
-	print $key,"\t*\t";
-}
-print "\n";
-
-print " number \t";
-foreach my $key (sort {$bitscore{$b} <=> $bitscore{$a}} keys %bitscore) {
-	print $bitscore{$key},"\t*\t";
-}
-print "\n";
-close (SAM);
-
-print "\nSAM filtered\n";
-open(SAMF, $sam_filtered) or die ("Can't open $sam_filtered\n");
-undef %bitscore;
-while (my $line=<SAMF>){
-	if (($line !~ /^\@SQ/)&&($line !~ /^\@PG/)){
-		my @fields = split(/\s+/,$line);
-		my $bit = $fields[1];
-		if ($bitscore{$bit}){
-			$bitscore{$bit}++;
-		}
-		else {
-			$bitscore{$bit}=1;
-		}
-	}
-}
-
-print "bitscore\t";
-foreach my $key (sort {$bitscore{$b} <=> $bitscore{$a}} keys %bitscore) {
-	print $key,"\t*\t";
-}
-print "\n";
-
-print " number \t";
-foreach my $key (sort {$bitscore{$b} <=> $bitscore{$a}} keys %bitscore) {
-	print $bitscore{$key},"\t*\t";
-}
-print "\n";
-close (SAMF);
-
-print "\nMPILEUP variant\n";
-open(MPV, $mpileup_variant) or die ("Can't open $mpileup_variant\n");
-
-my $nbvariant=0;
-while (my $line=<MPV>){
-	my @fields = split(/\s+/,$line);
-	if ($#fields >= 4){
-		my $match = $fields[4];
-		$match =~ s/\$//g; #the read start at this position
-		$match =~ s/\^.//g; #the read end at this position followed by quality char
-		if ($match =~/[ACGTNacgtn]+/){
-			$nbvariant++;
-		}
-	}
-	else {
-		#print STDERR "Erreur : $line\n";
-	}
-}
-
-print "Variant detected :\t$nbvariant\n";
-close (MPV);
-
-
-print "\nMPILEUP filtered without dubious position\n";
-open(LF, $list_filtered) or die ("Can't open $list_filtered\n");
-$nbvariant=0;
-while (my $line=<LF>){
-	$nbvariant++;
-}
-
-print "Variant selected :\t$nbvariant\n";
-close (LF);
-
-print "\nMPILEUP filtered without dubious position and BLAST\n";
-open(BF, $blast_filtered) or die ("Can't open $blast_filtered\n");
-$nbvariant=0;
-while (my $line=<BF>){
-	$nbvariant++;
-}
-
-print "Variant selected :\t$nbvariant\n";
-close (BF);
-
-
-print "\nSNP selected after mpileup filtering : \t";
-open(SNP, $snp_selected) or die ("Can't open $snp_selected\n");
-$nbvariant=0;
-while (my $line=<SNP>){
-	$nbvariant++;
-}
-
-print "$nbvariant\n";
-close (SNP);
-
-
-
-
-
-
-
-
--- a/rapsodyn/rapsosnp_stats.xml	Mon Sep 29 03:02:16 2014 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,26 +0,0 @@
-<tool id="rapsosnp_stats" name="rapsosnp_stats" version="0.01">
-<description>Merge best results from Blast</description>
-<command interpreter="perl">
-    rapsosnp_stats.pl $input_read1_row_file $input_read2_row_file $input_read1_trimmed_file $input_read2_trimmed_file $input_sam_row_file $input_sam_filtered_file $input_mpileup_variant_file $input_list_filtered_file $input_blast_filtered_file $input_snp_selected_file  > $output_file 
-</command>
-<inputs>
-<param name="input_read1_row_file"  type="data" format="fastq,fastqsanger,fastqsolexa,fastqillumina" label="Select a suitable input READ1 ROW file from your history"/>
-<param name="input_read2_row_file"  type="data" format="fastq,fastqsanger,fastqsolexa,fastqillumina" label="Select a suitable input READ2 ROW file from your history"/>
-<param name="input_read1_trimmed_file"  type="data" format="fastq,fastqsanger,fastqsolexa,fastqillumina" label="Select a suitable input READ1 TRIMMED file from your history"/>
-<param name="input_read2_trimmed_file"  type="data" format="fastq,fastqsanger,fastqsolexa,fastqillumina" label="Select a suitable input READ2 TRIMMED file from your history"/>
-<param name="input_sam_row_file"  type="data" format="sam" label="Select a suitable input SAM file from your history"/>
-<param name="input_sam_filtered_file"  type="data" format="sam" label="Select a suitable input SAM FILTERED file from your history"/>
-<param name="input_mpileup_variant_file"  type="data" format="pileup" label="Select a suitable input MPILEUP VARIANT file from your history"/>
-<param name="input_list_filtered_file"  type="data" format="pileup" label="Select a suitable input LIST FILTERED file from your history"/>
-<param name="input_blast_filtered_file"  type="data" format="pileup" label="Select a suitable input BLAST FILTERED file from your history"/>
-<param name="input_snp_selected_file"  type="data" format="pileup" label="Select a suitable input SNP SELECTED file from your history"/>
-</inputs>
-<outputs>
- <data name="output_file" format="txt" label="STATS"/>
-</outputs>
-
-
-<help>
-
-</help>
-</tool>
--- a/rapsodyn/rapsosnp_stats2x.pl	Mon Sep 29 03:02:16 2014 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,307 +0,0 @@
-#!/usr/bin/perl
-use strict;
-use warnings;
-
-my $read1_row = $ARGV[0];
-my $read2_row = $ARGV[1];
-
-my $read1_trimmed_part1 = $ARGV[2];
-my $read1_trimmed_part2 = $ARGV[3];
-my $read2_trimmed_part1 = $ARGV[4];
-my $read2_trimmed_part2 = $ARGV[5];
-
-my $sam_row_part1 = $ARGV[6];
-my $sam_row_part2 = $ARGV[7];
-my $sam_filtered_part1 = $ARGV[8];
-my $sam_filtered_part2 = $ARGV[9];
-
-my $mpileup_variant = $ARGV[10];
-
-my $list_filtered = $ARGV[11];
-
-my $blast_filtered_part1 = $ARGV[12];
-my $blast_filtered_part2 = $ARGV[13];
-
-my $snp_selected = $ARGV[14];
-
-
-open(INR1R, $read1_row) or die ("Can't open $read1_row\n");
-my $nbread=0;
-my $nbbase =0;
-while (my $line1=<INR1R>){
-	my $line2 = <INR1R>;
-	my $line3 = <INR1R>;
-	my $line4 = <INR1R>;
-	if ($line1 =~ /^@/){
-		$nbread++;
-		if ($line2=~/([ATGCNX]+)/i){
-			$nbbase += length($1);
-		}
-	}
-}
-print "Row Reads 1\t\tNumber of reads : ",$nbread,"\tnumber of bases : ",$nbbase,"\n";
-close (INR1R);
-
-
-
-
-open(INR2R, $read2_row) or die ("Can't open $read2_row\n");
-$nbread=0;
-$nbbase =0;
-while (my $line1=<INR2R>){
-	my $line2 = <INR2R>;
-	my $line3 = <INR2R>;
-	my $line4 = <INR2R>;
-	if ($line1 =~ /^@/){
-		$nbread++;
-		if ($line2=~/([ATGCNX]+)/i){
-			$nbbase += length($1);
-		}
-	}
-}
-print "Row Reads 2\t\tNumber of reads : ",$nbread,"\tnumber of bases : ",$nbbase,"\n";
-close (INR2R);
-
-
-
-
-
-open(INR1TP1, $read1_trimmed_part1) or die ("Can't open $read1_trimmed_part1\n");
-$nbread=0;
-$nbbase =0;
-while (my $line1=<INR1TP1>){
-	my $line2 = <INR1TP1>;
-	my $line3 = <INR1TP1>;
-	my $line4 = <INR1TP1>;
-	if ($line1 =~ /^@/){
-		$nbread++;
-		if ($line2=~/([ATGCNX]+)/i){
-			$nbbase += length($1);
-		}
-		else {
-			print STDERR "$line1\n$line2\n";
-		}
-	}
-}
-close (INR1TP1);
-open(INR1TP2, $read1_trimmed_part2) or die ("Can't open $read1_trimmed_part2\n");
-while (my $line1=<INR1TP2>){
-	my $line2 = <INR1TP2>;
-	my $line3 = <INR1TP2>;
-	my $line4 = <INR1TP2>;
-	if ($line1 =~ /^@/){
-		$nbread++;
-		if ($line2=~/([ATGCNX]+)/i){
-			$nbbase += length($1);
-		}
-		else {
-			print STDERR "$line1\n$line2\n";
-		}
-	}
-}
-close (INR1TP2);
-print "Trimmed Reads 1\t\tNumber of reads : ",$nbread,"\tnumber of bases : ",$nbbase,"\n";
-
-
-
-
-open(INR2TP1, $read2_trimmed_part1) or die ("Can't open $read2_trimmed_part1\n");
-$nbread=0;
-$nbbase =0;
-while (my $line1=<INR2TP1>){
-	my $line2 = <INR2TP1>;
-	my $line3 = <INR2TP1>;
-	my $line4 = <INR2TP1>;
-	if ($line1 =~ /^@/){
-		$nbread++;
-		if ($line2=~/([ATGCNX]+)/i){
-			$nbbase += length($1);
-		}
-		else {
-			print STDERR "$line1\n$line2\n";
-		}
-	}
-}
-close (INR2TP2);
-open(INR2TP2, $read2_trimmed_part2) or die ("Can't open $read2_trimmed_part2\n");
-while (my $line1=<INR2TP2>){
-	my $line2 = <INR2TP2>;
-	my $line3 = <INR2TP2>;
-	my $line4 = <INR2TP2>;
-	if ($line1 =~ /^@/){
-		$nbread++;
-		if ($line2=~/([ATGCNX]+)/i){
-			$nbbase += length($1);
-		}
-		else {
-			print STDERR "$line1\n$line2\n";
-		}
-	}
-}
-close (INR2TP2);
-print "Trimmed Reads 2\t\tNumber of reads : ",$nbread,"\tnumber of bases : ",$nbbase,"\n";
-
-
-
-
-print "\nSAM row\n";
-open(SAMP1, $sam_row_part1) or die ("Can't open $sam_row_part1\n");
-my %bitscore;
-while (my $line=<SAMP1>){
-	if (($line !~ /^\@SQ/)&&($line !~ /^\@PG/)){
-		my @fields = split(/\s+/,$line);
-		my $bit = $fields[1];
-		if ($bitscore{$bit}){
-			$bitscore{$bit}++;
-		}
-		else {
-			$bitscore{$bit}=1;
-		}
-	}
-}
-close (SAMP1);
-open(SAMP2, $sam_row_part2) or die ("Can't open $sam_row_part2\n");
-while (my $line=<SAMP2>){
-	if (($line !~ /^\@SQ/)&&($line !~ /^\@PG/)){
-		my @fields = split(/\s+/,$line);
-		my $bit = $fields[1];
-		if ($bitscore{$bit}){
-			$bitscore{$bit}++;
-		}
-		else {
-			$bitscore{$bit}=1;
-		}
-	}
-}
-close (SAMP2);
-print "bitscore\t";
-foreach my $key (sort {$bitscore{$b} <=> $bitscore{$a}} keys %bitscore) {
-	print $key,"\t*\t";
-}
-print "\n";
-print " number \t";
-foreach my $key (sort {$bitscore{$b} <=> $bitscore{$a}} keys %bitscore) {
-	print $bitscore{$key},"\t*\t";
-}
-print "\n";
-
-
-
-
-print "\nSAM filtered\n";
-open(SAMFP1, $sam_filtered_part1) or die ("Can't open $sam_filtered_part1\n");
-undef %bitscore;
-while (my $line=<SAMFP1>){
-	if (($line !~ /^\@SQ/)&&($line !~ /^\@PG/)){
-		my @fields = split(/\s+/,$line);
-		my $bit = $fields[1];
-		if ($bitscore{$bit}){
-			$bitscore{$bit}++;
-		}
-		else {
-			$bitscore{$bit}=1;
-		}
-	}
-}
-close (SAMFP1);
-open(SAMFP2, $sam_filtered_part2) or die ("Can't open $sam_filtered_part2\n");
-while (my $line=<SAMFP2>){
-	if (($line !~ /^\@SQ/)&&($line !~ /^\@PG/)){
-		my @fields = split(/\s+/,$line);
-		my $bit = $fields[1];
-		if ($bitscore{$bit}){
-			$bitscore{$bit}++;
-		}
-		else {
-			$bitscore{$bit}=1;
-		}
-	}
-}
-close (SAMFP2);
-print "bitscore\t";
-foreach my $key (sort {$bitscore{$b} <=> $bitscore{$a}} keys %bitscore) {
-	print $key,"\t*\t";
-}
-print "\n";
-print " number \t";
-foreach my $key (sort {$bitscore{$b} <=> $bitscore{$a}} keys %bitscore) {
-	print $bitscore{$key},"\t*\t";
-}
-print "\n";
-
-
-
-
-print "\nMPILEUP variant\n";
-open(MPV, $mpileup_variant) or die ("Can't open $mpileup_variant\n");
-my $nbvariant=0;
-while (my $line=<MPV>){
-	my @fields = split(/\s+/,$line);
-	if ($#fields >= 4){
-		my $match = $fields[4];
-		$match =~ s/\$//g; #the read start at this position
-		$match =~ s/\^.//g; #the read end at this position followed by quality char
-		if ($match =~/[ACGTNacgtn]+/){
-			$nbvariant++;
-		}
-	}
-	else {
-		#print STDERR "Erreur : $line\n";
-	}
-}
-print "Variant detected :\t$nbvariant\n";
-close (MPV);
-
-
-
-
-
-
-print "\nMPILEUP filtered without dubious position\n";
-open(LF, $list_filtered) or die ("Can't open $list_filtered\n");
-$nbvariant=0;
-while (my $line=<LF>){
-	$nbvariant++;
-}
-print "Variant selected :\t$nbvariant\n";
-close (LF);
-
-
-
-
-
-print "\nMPILEUP filtered without dubious position and BLAST\n";
-open(BFP1, $blast_filtered_part1) or die ("Can't open $blast_filtered_part1\n");
-$nbvariant=0;
-while (my $line=<BFP1>){
-	$nbvariant++;
-}
-close (BFP1);
-open(BFP2, $blast_filtered_part2) or die ("Can't open $blast_filtered_part2\n");
-while (my $line=<BFP2>){
-	$nbvariant++;
-}
-close (BFP2);
-print "Variant selected :\t$nbvariant\n";
-
-
-
-
-
-print "\nSNP selected after mpileup filtering : \t";
-open(SNP, $snp_selected) or die ("Can't open $snp_selected\n");
-$nbvariant=0;
-while (my $line=<SNP>){
-	$nbvariant++;
-}
-
-print "$nbvariant\n";
-close (SNP);
-
-
-
-
-
-
-
-
--- a/rapsodyn/rapsosnp_stats2x.xml	Mon Sep 29 03:02:16 2014 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-<tool id="rapsosnp_stats2x" name="rapsosnp_stats2x" version="0.01">
-<description>Stats for rapsosnp workflow</description>
-<command interpreter="perl">
-    rapsosnp_stats2x.pl $input_read1_row_file $input_read2_row_file $input_read1_part1_trimmed_file $input_read1_part2_trimmed_file $input_read2_part1_trimmed_file $input_read2_part2_trimmed_file $input_sam_row_part1_file $input_sam_row_part2_file $input_sam_filtered_part1_file $input_sam_filtered_part2_file $input_mpileup_variant_file $input_list_filtered_file $input_blast_filtered_part1_file $input_blast_filtered_part2_file $input_snp_selected_file  > $output_file 
-</command>
-<inputs>
-<param name="input_read1_row_file"  type="data" format="fastq,fastqsanger,fastqsolexa,fastqillumina" label="Select a suitable input READ1 ROW file from your history"/>
-<param name="input_read2_row_file"  type="data" format="fastq,fastqsanger,fastqsolexa,fastqillumina" label="Select a suitable input READ2 ROW file from your history"/>
-<param name="input_read1_part1_trimmed_file"  type="data" format="fastq,fastqsanger,fastqsolexa,fastqillumina" label="Select a suitable input READ1 PART1 TRIMMED file from your history"/>
-<param name="input_read1_part2_trimmed_file"  type="data" format="fastq,fastqsanger,fastqsolexa,fastqillumina" label="Select a suitable input READ1 PART2 TRIMMED file from your history"/>
-<param name="input_read2_part1_trimmed_file"  type="data" format="fastq,fastqsanger,fastqsolexa,fastqillumina" label="Select a suitable input READ2 PART1 TRIMMED file from your history"/>
-<param name="input_read2_part2_trimmed_file"  type="data" format="fastq,fastqsanger,fastqsolexa,fastqillumina" label="Select a suitable input READ2 PART2 TRIMMED file from your history"/>
-<param name="input_sam_row_part1_file"  type="data" format="sam" label="Select a suitable input SAM PART1 file from your history"/>
-<param name="input_sam_row_part2_file"  type="data" format="sam" label="Select a suitable input SAM PART2 file from your history"/>
-<param name="input_sam_filtered_part1_file"  type="data" format="sam" label="Select a suitable input SAM PART1 FILTERED file from your history"/>
-<param name="input_sam_filtered_part2_file"  type="data" format="sam" label="Select a suitable input SAM PART2 FILTERED file from your history"/>
-<param name="input_mpileup_variant_file"  type="data" format="pileup" label="Select a suitable input MPILEUP VARIANT file from your history"/>
-<param name="input_list_filtered_file"  type="data" format="pileup" label="Select a suitable input LIST FILTERED file from your history"/>
-<param name="input_blast_filtered_part1_file"  type="data" format="pileup" label="Select a suitable input BLAST FILTERED PART1 file from your history"/>
-<param name="input_blast_filtered_part2_file"  type="data" format="pileup" label="Select a suitable input BLAST FILTERED PART2 file from your history"/>
-<param name="input_snp_selected_file"  type="data" format="pileup" label="Select a suitable input SNP SELECTED file from your history"/>
-</inputs>
-<outputs>
- <data name="output_file" format="txt" label="STATS"/>
-</outputs>
-
-
-<help>
-
-</help>
-</tool>
--- a/rapsodyn/rapsosnp_stats4x.pl	Mon Sep 29 03:02:16 2014 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,447 +0,0 @@
-#!/usr/bin/perl
-use strict;
-use warnings;
-
-my $read1_row = $ARGV[0];
-my $read2_row = $ARGV[1];
-
-my $read1_trimmed_part1 = $ARGV[2];
-my $read1_trimmed_part2 = $ARGV[3];
-my $read1_trimmed_part3 = $ARGV[4];
-my $read1_trimmed_part4 = $ARGV[5];
-my $read2_trimmed_part1 = $ARGV[6];
-my $read2_trimmed_part2 = $ARGV[7];
-my $read2_trimmed_part3 = $ARGV[8];
-my $read2_trimmed_part4 = $ARGV[9];
-
-my $sam_row_part1 = $ARGV[10];
-my $sam_row_part2 = $ARGV[11];
-my $sam_row_part3 = $ARGV[12];
-my $sam_row_part4 = $ARGV[13];
-my $sam_filtered_part1 = $ARGV[14];
-my $sam_filtered_part2 = $ARGV[15];
-my $sam_filtered_part3 = $ARGV[16];
-my $sam_filtered_part4 = $ARGV[17];
-
-my $mpileup_variant = $ARGV[18];
-
-my $list_filtered = $ARGV[19];
-
-my $blast_filtered_part1 = $ARGV[20];
-my $blast_filtered_part2 = $ARGV[21];
-my $blast_filtered_part3 = $ARGV[22];
-my $blast_filtered_part4 = $ARGV[23];
-
-my $snp_selected = $ARGV[24];
-
-
-open(INR1R, $read1_row) or die ("Can't open $read1_row\n");
-my $nbread=0;
-my $nbbase =0;
-while (my $line1=<INR1R>){
-	my $line2 = <INR1R>;
-	my $line3 = <INR1R>;
-	my $line4 = <INR1R>;
-	if ($line1 =~ /^@/){
-		$nbread++;
-		if ($line2=~/([ATGCNX]+)/i){
-			$nbbase += length($1);
-		}
-	}
-}
-print "Row Reads 1\t\tNumber of reads : ",$nbread,"\tnumber of bases : ",$nbbase,"\n";
-close (INR1R);
-
-
-
-
-open(INR2R, $read2_row) or die ("Can't open $read2_row\n");
-$nbread=0;
-$nbbase =0;
-while (my $line1=<INR2R>){
-	my $line2 = <INR2R>;
-	my $line3 = <INR2R>;
-	my $line4 = <INR2R>;
-	if ($line1 =~ /^@/){
-		$nbread++;
-		if ($line2=~/([ATGCNX]+)/i){
-			$nbbase += length($1);
-		}
-	}
-}
-print "Row Reads 2\t\tNumber of reads : ",$nbread,"\tnumber of bases : ",$nbbase,"\n";
-close (INR2R);
-
-
-
-
-
-open(INR1TP1, $read1_trimmed_part1) or die ("Can't open $read1_trimmed_part1\n");
-$nbread=0;
-$nbbase =0;
-while (my $line1=<INR1TP1>){
-	my $line2 = <INR1TP1>;
-	my $line3 = <INR1TP1>;
-	my $line4 = <INR1TP1>;
-	if ($line1 =~ /^@/){
-		$nbread++;
-		if ($line2=~/([ATGCNX]+)/i){
-			$nbbase += length($1);
-		}
-		else {
-			print STDERR "$line1\n$line2\n";
-		}
-	}
-}
-close (INR1TP1);
-open(INR1TP2, $read1_trimmed_part2) or die ("Can't open $read1_trimmed_part2\n");
-while (my $line1=<INR1TP2>){
-	my $line2 = <INR1TP2>;
-	my $line3 = <INR1TP2>;
-	my $line4 = <INR1TP2>;
-	if ($line1 =~ /^@/){
-		$nbread++;
-		if ($line2=~/([ATGCNX]+)/i){
-			$nbbase += length($1);
-		}
-		else {
-			print STDERR "$line1\n$line2\n";
-		}
-	}
-}
-close (INR1TP2);
-open(INR1TP3, $read1_trimmed_part3) or die ("Can't open $read1_trimmed_part3\n");
-while (my $line1=<INR1TP3>){
-	my $line2 = <INR1TP3>;
-	my $line3 = <INR1TP3>;
-	my $line4 = <INR1TP3>;
-	if ($line1 =~ /^@/){
-		$nbread++;
-		if ($line2=~/([ATGCNX]+)/i){
-			$nbbase += length($1);
-		}
-		else {
-			print STDERR "$line1\n$line2\n";
-		}
-	}
-}
-close (INR1TP3);
-open(INR1TP4, $read1_trimmed_part4) or die ("Can't open $read1_trimmed_part4\n");
-while (my $line1=<INR1TP4>){
-	my $line2 = <INR1TP4>;
-	my $line3 = <INR1TP4>;
-	my $line4 = <INR1TP4>;
-	if ($line1 =~ /^@/){
-		$nbread++;
-		if ($line2=~/([ATGCNX]+)/i){
-			$nbbase += length($1);
-		}
-		else {
-			print STDERR "$line1\n$line2\n";
-		}
-	}
-}
-close (INR1TP4);
-print "Trimmed Reads 1\t\tNumber of reads : ",$nbread,"\tnumber of bases : ",$nbbase,"\n";
-
-
-
-
-open(INR2TP1, $read2_trimmed_part1) or die ("Can't open $read2_trimmed_part1\n");
-$nbread=0;
-$nbbase =0;
-while (my $line1=<INR2TP1>){
-	my $line2 = <INR2TP1>;
-	my $line3 = <INR2TP1>;
-	my $line4 = <INR2TP1>;
-	if ($line1 =~ /^@/){
-		$nbread++;
-		if ($line2=~/([ATGCNX]+)/i){
-			$nbbase += length($1);
-		}
-		else {
-			print STDERR "$line1\n$line2\n";
-		}
-	}
-}
-close (INR2TP2);
-open(INR2TP2, $read2_trimmed_part2) or die ("Can't open $read2_trimmed_part2\n");
-while (my $line1=<INR2TP2>){
-	my $line2 = <INR2TP2>;
-	my $line3 = <INR2TP2>;
-	my $line4 = <INR2TP2>;
-	if ($line1 =~ /^@/){
-		$nbread++;
-		if ($line2=~/([ATGCNX]+)/i){
-			$nbbase += length($1);
-		}
-		else {
-			print STDERR "$line1\n$line2\n";
-		}
-	}
-}
-close (INR2TP2);
-open(INR2TP3, $read2_trimmed_part3) or die ("Can't open $read2_trimmed_part3\n");
-while (my $line1=<INR2TP3>){
-	my $line2 = <INR2TP3>;
-	my $line3 = <INR2TP3>;
-	my $line4 = <INR2TP3>;
-	if ($line1 =~ /^@/){
-		$nbread++;
-		if ($line2=~/([ATGCNX]+)/i){
-			$nbbase += length($1);
-		}
-		else {
-			print STDERR "$line1\n$line2\n";
-		}
-	}
-}
-close (INR2TP3);
-open(INR2TP4, $read2_trimmed_part4) or die ("Can't open $read2_trimmed_part4\n");
-while (my $line1=<INR2TP4>){
-	my $line2 = <INR2TP4>;
-	my $line3 = <INR2TP4>;
-	my $line4 = <INR2TP4>;
-	if ($line1 =~ /^@/){
-		$nbread++;
-		if ($line2=~/([ATGCNX]+)/i){
-			$nbbase += length($1);
-		}
-		else {
-			print STDERR "$line1\n$line2\n";
-		}
-	}
-}
-close (INR2TP4);
-print "Trimmed Reads 2\t\tNumber of reads : ",$nbread,"\tnumber of bases : ",$nbbase,"\n";
-
-
-
-
-print "\nSAM row\n";
-open(SAMP1, $sam_row_part1) or die ("Can't open $sam_row_part1\n");
-my %bitscore;
-while (my $line=<SAMP1>){
-	if (($line !~ /^\@SQ/)&&($line !~ /^\@PG/)){
-		my @fields = split(/\s+/,$line);
-		my $bit = $fields[1];
-		if ($bitscore{$bit}){
-			$bitscore{$bit}++;
-		}
-		else {
-			$bitscore{$bit}=1;
-		}
-	}
-}
-close (SAMP1);
-open(SAMP2, $sam_row_part2) or die ("Can't open $sam_row_part2\n");
-while (my $line=<SAMP2>){
-	if (($line !~ /^\@SQ/)&&($line !~ /^\@PG/)){
-		my @fields = split(/\s+/,$line);
-		my $bit = $fields[1];
-		if ($bitscore{$bit}){
-			$bitscore{$bit}++;
-		}
-		else {
-			$bitscore{$bit}=1;
-		}
-	}
-}
-close (SAMP2);
-open(SAMP3, $sam_row_part3) or die ("Can't open $sam_row_part3\n");
-while (my $line=<SAMP3>){
-	if (($line !~ /^\@SQ/)&&($line !~ /^\@PG/)){
-		my @fields = split(/\s+/,$line);
-		my $bit = $fields[1];
-		if ($bitscore{$bit}){
-			$bitscore{$bit}++;
-		}
-		else {
-			$bitscore{$bit}=1;
-		}
-	}
-}
-close (SAMP3);
-open(SAMP4, $sam_row_part4) or die ("Can't open $sam_row_part4\n");
-while (my $line=<SAMP4>){
-	if (($line !~ /^\@SQ/)&&($line !~ /^\@PG/)){
-		my @fields = split(/\s+/,$line);
-		my $bit = $fields[1];
-		if ($bitscore{$bit}){
-			$bitscore{$bit}++;
-		}
-		else {
-			$bitscore{$bit}=1;
-		}
-	}
-}
-close (SAMP4);
-print "bitscore\t";
-foreach my $key (sort {$bitscore{$b} <=> $bitscore{$a}} keys %bitscore) {
-	print $key,"\t*\t";
-}
-print "\n";
-print " number \t";
-foreach my $key (sort {$bitscore{$b} <=> $bitscore{$a}} keys %bitscore) {
-	print $bitscore{$key},"\t*\t";
-}
-print "\n";
-
-
-
-
-print "\nSAM filtered\n";
-open(SAMFP1, $sam_filtered_part1) or die ("Can't open $sam_filtered_part1\n");
-undef %bitscore;
-while (my $line=<SAMFP1>){
-	if (($line !~ /^\@SQ/)&&($line !~ /^\@PG/)){
-		my @fields = split(/\s+/,$line);
-		my $bit = $fields[1];
-		if ($bitscore{$bit}){
-			$bitscore{$bit}++;
-		}
-		else {
-			$bitscore{$bit}=1;
-		}
-	}
-}
-close (SAMFP1);
-open(SAMFP2, $sam_filtered_part2) or die ("Can't open $sam_filtered_part2\n");
-while (my $line=<SAMFP2>){
-	if (($line !~ /^\@SQ/)&&($line !~ /^\@PG/)){
-		my @fields = split(/\s+/,$line);
-		my $bit = $fields[1];
-		if ($bitscore{$bit}){
-			$bitscore{$bit}++;
-		}
-		else {
-			$bitscore{$bit}=1;
-		}
-	}
-}
-close (SAMFP2);
-open(SAMFP3, $sam_filtered_part3) or die ("Can't open $sam_filtered_part3\n");
-while (my $line=<SAMFP3>){
-	if (($line !~ /^\@SQ/)&&($line !~ /^\@PG/)){
-		my @fields = split(/\s+/,$line);
-		my $bit = $fields[1];
-		if ($bitscore{$bit}){
-			$bitscore{$bit}++;
-		}
-		else {
-			$bitscore{$bit}=1;
-		}
-	}
-}
-close (SAMFP3);
-open(SAMFP4, $sam_filtered_part4) or die ("Can't open $sam_filtered_part4\n");
-while (my $line=<SAMFP4>){
-	if (($line !~ /^\@SQ/)&&($line !~ /^\@PG/)){
-		my @fields = split(/\s+/,$line);
-		my $bit = $fields[1];
-		if ($bitscore{$bit}){
-			$bitscore{$bit}++;
-		}
-		else {
-			$bitscore{$bit}=1;
-		}
-	}
-}
-close (SAMFP4);
-print "bitscore\t";
-foreach my $key (sort {$bitscore{$b} <=> $bitscore{$a}} keys %bitscore) {
-	print $key,"\t*\t";
-}
-print "\n";
-print " number \t";
-foreach my $key (sort {$bitscore{$b} <=> $bitscore{$a}} keys %bitscore) {
-	print $bitscore{$key},"\t*\t";
-}
-print "\n";
-
-
-
-
-print "\nMPILEUP variant\n";
-open(MPV, $mpileup_variant) or die ("Can't open $mpileup_variant\n");
-my $nbvariant=0;
-while (my $line=<MPV>){
-	my @fields = split(/\s+/,$line);
-	if ($#fields >= 4){
-		my $match = $fields[4];
-		$match =~ s/\$//g; #the read start at this position
-		$match =~ s/\^.//g; #the read end at this position followed by quality char
-		if ($match =~/[ACGTNacgtn]+/){
-			$nbvariant++;
-		}
-	}
-	else {
-		#print STDERR "Erreur : $line\n";
-	}
-}
-print "Variant detected :\t$nbvariant\n";
-close (MPV);
-
-
-
-
-
-
-print "\nMPILEUP filtered without dubious position\n";
-open(LF, $list_filtered) or die ("Can't open $list_filtered\n");
-$nbvariant=0;
-while (my $line=<LF>){
-	$nbvariant++;
-}
-print "Variant selected :\t$nbvariant\n";
-close (LF);
-
-
-
-
-
-print "\nMPILEUP filtered without dubious position and BLAST\n";
-open(BFP1, $blast_filtered_part1) or die ("Can't open $blast_filtered_part1\n");
-$nbvariant=0;
-while (my $line=<BFP1>){
-	$nbvariant++;
-}
-close (BFP1);
-open(BFP2, $blast_filtered_part2) or die ("Can't open $blast_filtered_part2\n");
-while (my $line=<BFP2>){
-	$nbvariant++;
-}
-close (BFP2);
-open(BFP3, $blast_filtered_part3) or die ("Can't open $blast_filtered_part3\n");
-while (my $line=<BFP3>){
-	$nbvariant++;
-}
-close (BFP3);
-open(BFP4, $blast_filtered_part4) or die ("Can't open $blast_filtered_part4\n");
-while (my $line=<BFP4>){
-	$nbvariant++;
-}
-close (BFP4);
-print "Variant selected :\t$nbvariant\n";
-
-
-
-
-
-print "\nSNP selected after mpileup filtering : \t";
-open(SNP, $snp_selected) or die ("Can't open $snp_selected\n");
-$nbvariant=0;
-while (my $line=<SNP>){
-	$nbvariant++;
-}
-
-print "$nbvariant\n";
-close (SNP);
-
-
-
-
-
-
-
-
--- a/rapsodyn/rapsosnp_stats4x.xml	Mon Sep 29 03:02:16 2014 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,47 +0,0 @@
-<tool id="rapsosnp_stats4x" name="rapsosnp_stats4x" version="0.01">
-<description>Stats for rapsosnp workflow</description>
-<command interpreter="perl">
-    rapsosnp_stats4x.pl $input_read1_row_file $input_read2_row_file $input_read1_part1_trimmed_file $input_read1_part2_trimmed_file $input_read1_part3_trimmed_file $input_read1_part4_trimmed_file $input_read2_part1_trimmed_file $input_read2_part2_trimmed_file $input_read2_part3_trimmed_file $input_read2_part4_trimmed_file $input_sam_row_part1_file $input_sam_row_part2_file $input_sam_row_part3_file $input_sam_row_part4_file $input_sam_filtered_part1_file $input_sam_filtered_part2_file $input_sam_filtered_part3_file $input_sam_filtered_part4_file $input_mpileup_variant_file $input_list_filtered_file $input_blast_filtered_part1_file $input_blast_filtered_part2_file $input_blast_filtered_part3_file $input_blast_filtered_part4_file $input_snp_selected_file  > $output_file 
-</command>
-<inputs>
-<param name="input_read1_row_file"  type="data" format="fastq,fastqsanger,fastqsolexa,fastqillumina" label="Select a suitable input READ1 ROW file from your history"/>
-<param name="input_read2_row_file"  type="data" format="fastq,fastqsanger,fastqsolexa,fastqillumina" label="Select a suitable input READ2 ROW file from your history"/>
-
-<param name="input_read1_part1_trimmed_file"  type="data" format="fastq,fastqsanger,fastqsolexa,fastqillumina" label="Select a suitable input READ1 PART1 TRIMMED file from your history"/>
-<param name="input_read1_part2_trimmed_file"  type="data" format="fastq,fastqsanger,fastqsolexa,fastqillumina" label="Select a suitable input READ1 PART2 TRIMMED file from your history"/>
-<param name="input_read1_part3_trimmed_file"  type="data" format="fastq,fastqsanger,fastqsolexa,fastqillumina" label="Select a suitable input READ1 PART3 TRIMMED file from your history"/>
-<param name="input_read1_part4_trimmed_file"  type="data" format="fastq,fastqsanger,fastqsolexa,fastqillumina" label="Select a suitable input READ1 PART4 TRIMMED file from your history"/>
-<param name="input_read2_part1_trimmed_file"  type="data" format="fastq,fastqsanger,fastqsolexa,fastqillumina" label="Select a suitable input READ2 PART1 TRIMMED file from your history"/>
-<param name="input_read2_part2_trimmed_file"  type="data" format="fastq,fastqsanger,fastqsolexa,fastqillumina" label="Select a suitable input READ2 PART2 TRIMMED file from your history"/>
-<param name="input_read2_part3_trimmed_file"  type="data" format="fastq,fastqsanger,fastqsolexa,fastqillumina" label="Select a suitable input READ2 PART3 TRIMMED file from your history"/>
-<param name="input_read2_part4_trimmed_file"  type="data" format="fastq,fastqsanger,fastqsolexa,fastqillumina" label="Select a suitable input READ2 PART4 TRIMMED file from your history"/>
-
-<param name="input_sam_row_part1_file"  type="data" format="sam" label="Select a suitable input SAM PART1 file from your history"/>
-<param name="input_sam_row_part2_file"  type="data" format="sam" label="Select a suitable input SAM PART2 file from your history"/>
-<param name="input_sam_row_part3_file"  type="data" format="sam" label="Select a suitable input SAM PART3 file from your history"/>
-<param name="input_sam_row_part4_file"  type="data" format="sam" label="Select a suitable input SAM PART4 file from your history"/>
-<param name="input_sam_filtered_part1_file"  type="data" format="sam" label="Select a suitable input SAM PART1 FILTERED file from your history"/>
-<param name="input_sam_filtered_part2_file"  type="data" format="sam" label="Select a suitable input SAM PART2 FILTERED file from your history"/>
-<param name="input_sam_filtered_part3_file"  type="data" format="sam" label="Select a suitable input SAM PART3 FILTERED file from your history"/>
-<param name="input_sam_filtered_part4_file"  type="data" format="sam" label="Select a suitable input SAM PART4 FILTERED file from your history"/>
-
-
-<param name="input_mpileup_variant_file"  type="data" format="pileup" label="Select a suitable input MPILEUP VARIANT file from your history"/>
-<param name="input_list_filtered_file"  type="data" format="pileup" label="Select a suitable input LIST FILTERED file from your history"/>
-
-<param name="input_blast_filtered_part1_file"  type="data" format="pileup" label="Select a suitable input BLAST FILTERED PART1 file from your history"/>
-<param name="input_blast_filtered_part2_file"  type="data" format="pileup" label="Select a suitable input BLAST FILTERED PART2 file from your history"/>
-<param name="input_blast_filtered_part3_file"  type="data" format="pileup" label="Select a suitable input BLAST FILTERED PART3 file from your history"/>
-<param name="input_blast_filtered_part4_file"  type="data" format="pileup" label="Select a suitable input BLAST FILTERED PART4 file from your history"/>
-
-<param name="input_snp_selected_file"  type="data" format="pileup" label="Select a suitable input SNP SELECTED file from your history"/>
-</inputs>
-<outputs>
- <data name="output_file" format="txt" label="STATS"/>
-</outputs>
-
-
-<help>
-
-</help>
-</tool>