changeset 25:39376c7204be draft

Uploaded
author mcharles
date Wed, 10 Sep 2014 05:12:05 -0400
parents e8e6b962c1f2
children 5c0e8f82bbbf
files rapsodyn/Galaxy-Workflow-rapsosnp_v1.13.ga rapsodyn/Galaxy-Workflow-rapsosnp_v1.13_-_2x.ga rapsodyn/Galaxy-Workflow-rapsosnp_v1.13_-_4x.ga rapsodyn/Galaxy-Workflow-rapsosnp_v1.15_-1x.ga rapsodyn/Galaxy-Workflow-rapsosnp_v1.15_-_2x.ga rapsodyn/Galaxy-Workflow-rapsosnp_v1.15_-_4x.ga rapsodyn/ParseBlastForUniqueMatch.pl rapsodyn/ParseBlastForUniqueMatch.xml rapsodyn/mpileupfilterandstat.pl rapsodyn/mpileupfilterandstat.xml
diffstat 10 files changed, 3443 insertions(+), 2928 deletions(-) [+]
line wrap: on
line diff
--- a/rapsodyn/Galaxy-Workflow-rapsosnp_v1.13.ga	Fri Sep 05 06:12:10 2014 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,525 +0,0 @@
-{
-    "a_galaxy_workflow": "true", 
-    "annotation": "", 
-    "format-version": "0.1", 
-    "name": "rapsosnp v1.13", 
-    "steps": {
-        "0": {
-            "annotation": "", 
-            "id": 0, 
-            "input_connections": {}, 
-            "inputs": [
-                {
-                    "description": "", 
-                    "name": "ASSEMBLY"
-                }
-            ], 
-            "name": "Input dataset", 
-            "outputs": [], 
-            "position": {
-                "left": 200, 
-                "top": 297
-            }, 
-            "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": 382
-            }, 
-            "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": 208, 
-                "top": 472
-            }, 
-            "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": 552
-            }, 
-            "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": 297
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/genephys/fastaGroomerForMakeBlastdb/0.01", 
-            "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": 428
-            }, 
-            "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": 297
-            }, 
-            "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": 455
-            }, 
-            "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\\\"\", \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\"}", 
-            "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": 297
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/filtersam_mapped_and_unique/0.01", 
-            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"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": 297
-            }, 
-            "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, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"__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": 1640, 
-                "top": 297
-            }, 
-            "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, \"genotype_likelihood_computation_type\": \"{\\\"genotype_likelihood_computation_type_selector\\\": \\\"do_not_perform_genotype_likelihood_computation\\\", \\\"__current_case__\\\": 1}\", \"__rerun_remap_job_id__\": null, \"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\\\"}\", \"reference_source\": \"{\\\"ref_file\\\": null, \\\"reference_source_selector\\\": \\\"history\\\", \\\"input_bams\\\": [{\\\"__index__\\\": 0, \\\"input_bam\\\": null}], \\\"__current_case__\\\": 1}\", \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\"}", 
-            "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": 1966, 
-                "top": 297
-            }, 
-            "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": 2294, 
-                "top": 297
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/listfiltering/0.01", 
-            "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": 2622, 
-                "top": 297
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/extractseq/0.03", 
-            "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": 2950, 
-                "top": 297
-            }, 
-            "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\\\": \\\"0\\\"}\", \"__rerun_remap_job_id__\": null, \"blast_type\": \"\\\"megablast\\\"\", \"db_opts\": \"{\\\"db_opts_selector\\\": \\\"histdb\\\", \\\"subject\\\": \\\"\\\", \\\"histdb\\\": null, \\\"__current_case__\\\": 1, \\\"database\\\": \\\"\\\"}\", \"output\": \"{\\\"out_format\\\": \\\"5\\\", \\\"__current_case__\\\": 3}\", \"query\": \"null\"}", 
-            "tool_version": "0.1.00", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "15": {
-            "annotation": "", 
-            "id": 15, 
-            "input_connections": {
-                "input_blastxml_file": {
-                    "id": 14, 
-                    "output_name": "output1"
-                }, 
-                "input_variant_file": {
-                    "id": 12, 
-                    "output_name": "output_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "mpileupfilteronblastxml", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "pileup"
-                }
-            ], 
-            "position": {
-                "left": 3252, 
-                "top": 297
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/mpileupfilteronblastxml/0.03", 
-            "tool_state": "{\"input_variant_file\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_blastxml_file\": \"null\", \"window_length\": \"\\\"50\\\"\", \"nb_mismatch_max\": \"\\\"3\\\"\"}", 
-            "tool_version": "0.03", 
-            "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": 3607, 
-                "top": 310.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "mpileupfilterandstat", 
-            "tool_state": "{\"__page__\": 0, \"input_file\": \"null\", \"min_frequency\": \"\\\"0.8\\\"\", \"do_stat\": \"\\\"YES\\\"\", \"min_depth\": \"\\\"2\\\"\", \"__rerun_remap_job_id__\": null, \"min_forward_and_reverse\": \"\\\"0\\\"\", \"max_depth\": \"\\\"100\\\"\", \"min_distance\": \"\\\"0\\\"\"}", 
-            "tool_version": "0.07", 
-            "type": "tool", 
-            "user_outputs": []
-        }
-    }
-}
\ No newline at end of file
--- a/rapsodyn/Galaxy-Workflow-rapsosnp_v1.13_-_2x.ga	Fri Sep 05 06:12:10 2014 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,929 +0,0 @@
-{
-    "a_galaxy_workflow": "true", 
-    "annotation": "", 
-    "format-version": "0.1", 
-    "name": "rapsosnp v1.13 - 2x", 
-    "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": "toolshed.g2.bx.psu.edu/repos/mcharles/genephys/fastaGroomerForMakeBlastdb/0.01", 
-            "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_file": {
-                    "id": 1, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "SplitFile2x", 
-            "outputs": [
-                {
-                    "name": "output_file1", 
-                    "type": "txt"
-                }, 
-                {
-                    "name": "output_file2", 
-                    "type": "txt"
-                }
-            ], 
-            "position": {
-                "left": 428, 
-                "top": 331
-            }, 
-            "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_file": {
-                    "id": 2, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "SplitFile2x", 
-            "outputs": [
-                {
-                    "name": "output_file1", 
-                    "type": "txt"
-                }, 
-                {
-                    "name": "output_file2", 
-                    "type": "txt"
-                }
-            ], 
-            "position": {
-                "left": 428, 
-                "top": 523
-            }, 
-            "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": []
-        }, 
-        "7": {
-            "annotation": "", 
-            "id": 7, 
-            "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": []
-        }, 
-        "8": {
-            "annotation": "", 
-            "id": 8, 
-            "input_connections": {
-                "input_read1_file": {
-                    "id": 5, 
-                    "output_name": "output_file1"
-                }, 
-                "input_read2_file": {
-                    "id": 6, 
-                    "output_name": "output_file1"
-                }
-            }, 
-            "inputs": [], 
-            "name": "PrepareFastqLight", 
-            "outputs": [
-                {
-                    "name": "output_read1_file", 
-                    "type": "fastqsanger"
-                }, 
-                {
-                    "name": "output_read2_file", 
-                    "type": "fastqsanger"
-                }
-            ], 
-            "position": {
-                "left": 756, 
-                "top": 358
-            }, 
-            "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": 5, 
-                    "output_name": "output_file2"
-                }, 
-                "input_read2_file": {
-                    "id": 6, 
-                    "output_name": "output_file2"
-                }
-            }, 
-            "inputs": [], 
-            "name": "PrepareFastqLight", 
-            "outputs": [
-                {
-                    "name": "output_read1_file", 
-                    "type": "fastqsanger"
-                }, 
-                {
-                    "name": "output_read2_file", 
-                    "type": "fastqsanger"
-                }
-            ], 
-            "position": {
-                "left": 756, 
-                "top": 560
-            }, 
-            "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": {
-                "genomeSource|ownFile": {
-                    "id": 0, 
-                    "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": 1084, 
-                "top": 200
-            }, 
-            "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\\\"\", \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\"}", 
-            "tool_version": "1.2.3", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "11": {
-            "annotation": "", 
-            "id": 11, 
-            "input_connections": {
-                "genomeSource|ownFile": {
-                    "id": 0, 
-                    "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": 1084, 
-                "top": 385
-            }, 
-            "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\\\"\", \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\"}", 
-            "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": 1348, 
-                "top": 200
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/filtersam_mapped_and_unique/0.01", 
-            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"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": 1348, 
-                "top": 331
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/filtersam_mapped_and_unique/0.01", 
-            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"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": 0, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "SAM-to-BAM", 
-            "outputs": [
-                {
-                    "name": "output1", 
-                    "type": "bam"
-                }
-            ], 
-            "position": {
-                "left": 1676, 
-                "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, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"__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": 0, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "SAM-to-BAM", 
-            "outputs": [
-                {
-                    "name": "output1", 
-                    "type": "bam"
-                }
-            ], 
-            "position": {
-                "left": 1676, 
-                "top": 341
-            }, 
-            "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, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"__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": 1904, 
-                "top": 200
-            }, 
-            "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\", \"title\": \"\\\"merge bam\\\"\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"mergeSD\": \"\\\"True\\\"\", \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\"}", 
-            "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": 0, 
-                    "output_name": "output"
-                }
-            }, 
-            "inputs": [], 
-            "name": "MPileup", 
-            "outputs": [
-                {
-                    "name": "output_mpileup", 
-                    "type": "pileup"
-                }, 
-                {
-                    "name": "output_log", 
-                    "type": "txt"
-                }
-            ], 
-            "position": {
-                "left": 2132, 
-                "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, \"genotype_likelihood_computation_type\": \"{\\\"genotype_likelihood_computation_type_selector\\\": \\\"do_not_perform_genotype_likelihood_computation\\\", \\\"__current_case__\\\": 1}\", \"__rerun_remap_job_id__\": null, \"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\\\"}\", \"reference_source\": \"{\\\"ref_file\\\": null, \\\"reference_source_selector\\\": \\\"history\\\", \\\"input_bams\\\": [{\\\"__index__\\\": 0, \\\"input_bam\\\": null}], \\\"__current_case__\\\": 1}\", \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\"}", 
-            "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": 2458, 
-                "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": []
-        }, 
-        "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": 2786, 
-                "top": 200
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/listfiltering/0.01", 
-            "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": 3114, 
-                "top": 200
-            }, 
-            "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": 0, 
-                    "output_name": "output"
-                }, 
-                "input_variant_file": {
-                    "id": 20, 
-                    "output_name": "output_file1"
-                }
-            }, 
-            "inputs": [], 
-            "name": "extractseq", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "fasta"
-                }
-            ], 
-            "position": {
-                "left": 3442, 
-                "top": 200
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/extractseq/0.03", 
-            "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": 0, 
-                    "output_name": "output"
-                }, 
-                "input_variant_file": {
-                    "id": 20, 
-                    "output_name": "output_file2"
-                }
-            }, 
-            "inputs": [], 
-            "name": "extractseq", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "fasta"
-                }
-            ], 
-            "position": {
-                "left": 3442, 
-                "top": 375
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/extractseq/0.03", 
-            "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": 7, 
-                    "output_name": "outfile"
-                }, 
-                "query": {
-                    "id": 21, 
-                    "output_name": "output_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "NCBI BLAST+ blastn", 
-            "outputs": [
-                {
-                    "name": "output1", 
-                    "type": "tabular"
-                }
-            ], 
-            "position": {
-                "left": 3770, 
-                "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\\\": \\\"0\\\"}\", \"__rerun_remap_job_id__\": null, \"blast_type\": \"\\\"megablast\\\"\", \"db_opts\": \"{\\\"db_opts_selector\\\": \\\"histdb\\\", \\\"subject\\\": \\\"\\\", \\\"histdb\\\": null, \\\"__current_case__\\\": 1, \\\"database\\\": \\\"\\\"}\", \"output\": \"{\\\"out_format\\\": \\\"5\\\", \\\"__current_case__\\\": 3}\", \"query\": \"null\"}", 
-            "tool_version": "0.1.00", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "24": {
-            "annotation": "", 
-            "id": 24, 
-            "input_connections": {
-                "db_opts|histdb": {
-                    "id": 7, 
-                    "output_name": "outfile"
-                }, 
-                "query": {
-                    "id": 22, 
-                    "output_name": "output_file"
-                }
-            }, 
-            "inputs": [], 
-            "name": "NCBI BLAST+ blastn", 
-            "outputs": [
-                {
-                    "name": "output1", 
-                    "type": "tabular"
-                }
-            ], 
-            "position": {
-                "left": 3770, 
-                "top": 341
-            }, 
-            "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\\\": \\\"0\\\"}\", \"__rerun_remap_job_id__\": null, \"blast_type\": \"\\\"megablast\\\"\", \"db_opts\": \"{\\\"db_opts_selector\\\": \\\"histdb\\\", \\\"subject\\\": \\\"\\\", \\\"histdb\\\": null, \\\"__current_case__\\\": 1, \\\"database\\\": \\\"\\\"}\", \"output\": \"{\\\"out_format\\\": \\\"5\\\", \\\"__current_case__\\\": 3}\", \"query\": \"null\"}", 
-            "tool_version": "0.1.00", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "25": {
-            "annotation": "", 
-            "id": 25, 
-            "input_connections": {
-                "input_blastxml_file": {
-                    "id": 23, 
-                    "output_name": "output1"
-                }, 
-                "input_variant_file": {
-                    "id": 20, 
-                    "output_name": "output_file1"
-                }
-            }, 
-            "inputs": [], 
-            "name": "mpileupfilteronblastxml", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "pileup"
-                }
-            ], 
-            "position": {
-                "left": 4072, 
-                "top": 200
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/mpileupfilteronblastxml/0.03", 
-            "tool_state": "{\"input_variant_file\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_blastxml_file\": \"null\", \"window_length\": \"\\\"50\\\"\", \"nb_mismatch_max\": \"\\\"3\\\"\"}", 
-            "tool_version": "0.03", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "26": {
-            "annotation": "", 
-            "id": 26, 
-            "input_connections": {
-                "input_blastxml_file": {
-                    "id": 24, 
-                    "output_name": "output1"
-                }, 
-                "input_variant_file": {
-                    "id": 20, 
-                    "output_name": "output_file2"
-                }
-            }, 
-            "inputs": [], 
-            "name": "mpileupfilteronblastxml", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "pileup"
-                }
-            ], 
-            "position": {
-                "left": 4072, 
-                "top": 375
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/mpileupfilteronblastxml/0.03", 
-            "tool_state": "{\"input_variant_file\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_blastxml_file\": \"null\", \"window_length\": \"\\\"50\\\"\", \"nb_mismatch_max\": \"\\\"3\\\"\"}", 
-            "tool_version": "0.03", 
-            "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": 4400, 
-                "top": 200
-            }, 
-            "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": 4728, 
-                "top": 200
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "mpileupfilterandstat", 
-            "tool_state": "{\"__page__\": 0, \"input_file\": \"null\", \"min_frequency\": \"\\\"0.8\\\"\", \"do_stat\": \"\\\"YES\\\"\", \"min_depth\": \"\\\"2\\\"\", \"__rerun_remap_job_id__\": null, \"min_forward_and_reverse\": \"\\\"0\\\"\", \"max_depth\": \"\\\"100\\\"\", \"min_distance\": \"\\\"0\\\"\"}", 
-            "tool_version": "0.07", 
-            "type": "tool", 
-            "user_outputs": []
-        }
-    }
-}
\ No newline at end of file
--- a/rapsodyn/Galaxy-Workflow-rapsosnp_v1.13_-_4x.ga	Fri Sep 05 06:12:10 2014 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1439 +0,0 @@
-{
-    "a_galaxy_workflow": "true", 
-    "annotation": "", 
-    "format-version": "0.1", 
-    "name": "rapsosnp v1.13 - 4x", 
-    "steps": {
-        "0": {
-            "annotation": "", 
-            "id": 0, 
-            "input_connections": {}, 
-            "inputs": [
-                {
-                    "description": "", 
-                    "name": "READ1"
-                }
-            ], 
-            "name": "Input dataset", 
-            "outputs": [], 
-            "position": {
-                "left": 214.76666259765625, 
-                "top": 518.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": 219.76666259765625, 
-                "top": 900.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": 2639.7666015625, 
-                "top": 382.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": "DUBIUS"
-                }
-            ], 
-            "name": "Input dataset", 
-            "outputs": [], 
-            "position": {
-                "left": 2449.7666015625, 
-                "top": 1200.5
-            }, 
-            "tool_errors": null, 
-            "tool_id": null, 
-            "tool_state": "{\"name\": \"DUBIUS\"}", 
-            "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": 516.7666625976562, 
-                "top": 398
-            }, 
-            "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": 519.7666625976562, 
-                "top": 716
-            }, 
-            "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": 2796.7666015625, 
-                "top": 200
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/genephys/fastaGroomerForMakeBlastdb/0.01", 
-            "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": 891.7666625976562, 
-                "top": 277
-            }, 
-            "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": 900.7666625976562, 
-                "top": 518
-            }, 
-            "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": 890.7666625976562, 
-                "top": 743
-            }, 
-            "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": 894.7666625976562, 
-                "top": 971
-            }, 
-            "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": 3514.2666015625, 
-                "top": 223
-            }, 
-            "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": 1355.7666015625, 
-                "top": 358.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\\\"\", \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\"}", 
-            "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": 1349.7666015625, 
-                "top": 540.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\\\"\", \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\"}", 
-            "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": 1349.7666015625, 
-                "top": 709.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\\\"\", \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\"}", 
-            "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": 1349.7666015625, 
-                "top": 889.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\\\"\", \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\"}", 
-            "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": 1628.7666015625, 
-                "top": 506.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/filtersam_mapped_and_unique/0.01", 
-            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"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": 1628.7666015625, 
-                "top": 651.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/filtersam_mapped_and_unique/0.01", 
-            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"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": 1633.7666015625, 
-                "top": 790.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/filtersam_mapped_and_unique/0.01", 
-            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"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": 1632.7666015625, 
-                "top": 944.5
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/filtersam_mapped_and_unique/0.01", 
-            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"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": 1952.7666015625, 
-                "top": 551.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, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"__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": 1948.7666015625, 
-                "top": 698.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, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"__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": 1948.7666015625, 
-                "top": 836.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, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"__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": 1948.7666015625, 
-                "top": 988.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, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"__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": 2265.7666015625, 
-                "top": 833.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\": \"[{\\\"__index__\\\": 0, \\\"input\\\": null}, {\\\"__index__\\\": 1, \\\"input\\\": null}]\", \"input1\": \"null\", \"title\": \"\\\"merge bam\\\"\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"mergeSD\": \"\\\"True\\\"\", \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\"}", 
-            "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": 2401.7666015625, 
-                "top": 559.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, \"genotype_likelihood_computation_type\": \"{\\\"genotype_likelihood_computation_type_selector\\\": \\\"do_not_perform_genotype_likelihood_computation\\\", \\\"__current_case__\\\": 1}\", \"__rerun_remap_job_id__\": null, \"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\\\"}\", \"reference_source\": \"{\\\"ref_file\\\": null, \\\"reference_source_selector\\\": \\\"history\\\", \\\"input_bams\\\": [{\\\"__index__\\\": 0, \\\"input_bam\\\": null}], \\\"__current_case__\\\": 1}\", \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\"}", 
-            "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": 2694.7666015625, 
-                "top": 1060
-            }, 
-            "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": 2778.7666015625, 
-                "top": 752
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/listfiltering/0.01", 
-            "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": 3154, 
-                "top": 702.38330078125
-            }, 
-            "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": 3512, 
-                "top": 507.3833312988281
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/extractseq/0.03", 
-            "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": 3517, 
-                "top": 676.38330078125
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/extractseq/0.03", 
-            "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": 3518, 
-                "top": 845.38330078125
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/extractseq/0.03", 
-            "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": 3525, 
-                "top": 1012.38330078125
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/extractseq/0.03", 
-            "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": 3959.7666015625, 
-                "top": 491
-            }, 
-            "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\\\": \\\"0\\\"}\", \"__rerun_remap_job_id__\": null, \"blast_type\": \"\\\"megablast\\\"\", \"db_opts\": \"{\\\"db_opts_selector\\\": \\\"histdb\\\", \\\"subject\\\": \\\"\\\", \\\"histdb\\\": null, \\\"__current_case__\\\": 1, \\\"database\\\": \\\"\\\"}\", \"output\": \"{\\\"out_format\\\": \\\"5\\\", \\\"__current_case__\\\": 3}\", \"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": 3955.7666015625, 
-                "top": 675
-            }, 
-            "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\\\": \\\"0\\\"}\", \"__rerun_remap_job_id__\": null, \"blast_type\": \"\\\"megablast\\\"\", \"db_opts\": \"{\\\"db_opts_selector\\\": \\\"histdb\\\", \\\"subject\\\": \\\"\\\", \\\"histdb\\\": null, \\\"__current_case__\\\": 1, \\\"database\\\": \\\"\\\"}\", \"output\": \"{\\\"out_format\\\": \\\"5\\\", \\\"__current_case__\\\": 3}\", \"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": 3965.7666015625, 
-                "top": 848
-            }, 
-            "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\\\": \\\"0\\\"}\", \"__rerun_remap_job_id__\": null, \"blast_type\": \"\\\"megablast\\\"\", \"db_opts\": \"{\\\"db_opts_selector\\\": \\\"histdb\\\", \\\"subject\\\": \\\"\\\", \\\"histdb\\\": null, \\\"__current_case__\\\": 1, \\\"database\\\": \\\"\\\"}\", \"output\": \"{\\\"out_format\\\": \\\"5\\\", \\\"__current_case__\\\": 3}\", \"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": 3971.7666015625, 
-                "top": 1016
-            }, 
-            "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\\\": \\\"0\\\"}\", \"__rerun_remap_job_id__\": null, \"blast_type\": \"\\\"megablast\\\"\", \"db_opts\": \"{\\\"db_opts_selector\\\": \\\"histdb\\\", \\\"subject\\\": \\\"\\\", \\\"histdb\\\": null, \\\"__current_case__\\\": 1, \\\"database\\\": \\\"\\\"}\", \"output\": \"{\\\"out_format\\\": \\\"5\\\", \\\"__current_case__\\\": 3}\", \"query\": \"null\"}", 
-            "tool_version": "0.1.00", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "37": {
-            "annotation": "", 
-            "id": 37, 
-            "input_connections": {
-                "input_blastxml_file": {
-                    "id": 33, 
-                    "output_name": "output1"
-                }, 
-                "input_variant_file": {
-                    "id": 28, 
-                    "output_name": "output_file1"
-                }
-            }, 
-            "inputs": [], 
-            "name": "mpileupfilteronblastxml", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "pileup"
-                }
-            ], 
-            "position": {
-                "left": 4260.5, 
-                "top": 478.3833312988281
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/mpileupfilteronblastxml/0.03", 
-            "tool_state": "{\"input_variant_file\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_blastxml_file\": \"null\", \"window_length\": \"\\\"50\\\"\", \"nb_mismatch_max\": \"\\\"3\\\"\"}", 
-            "tool_version": "0.03", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "38": {
-            "annotation": "", 
-            "id": 38, 
-            "input_connections": {
-                "input_blastxml_file": {
-                    "id": 34, 
-                    "output_name": "output1"
-                }, 
-                "input_variant_file": {
-                    "id": 28, 
-                    "output_name": "output_file2"
-                }
-            }, 
-            "inputs": [], 
-            "name": "mpileupfilteronblastxml", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "pileup"
-                }
-            ], 
-            "position": {
-                "left": 4262.5, 
-                "top": 656.38330078125
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/mpileupfilteronblastxml/0.03", 
-            "tool_state": "{\"input_variant_file\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_blastxml_file\": \"null\", \"window_length\": \"\\\"50\\\"\", \"nb_mismatch_max\": \"\\\"3\\\"\"}", 
-            "tool_version": "0.03", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "39": {
-            "annotation": "", 
-            "id": 39, 
-            "input_connections": {
-                "input_blastxml_file": {
-                    "id": 35, 
-                    "output_name": "output1"
-                }, 
-                "input_variant_file": {
-                    "id": 28, 
-                    "output_name": "output_file3"
-                }
-            }, 
-            "inputs": [], 
-            "name": "mpileupfilteronblastxml", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "pileup"
-                }
-            ], 
-            "position": {
-                "left": 4264.5, 
-                "top": 832.38330078125
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/mpileupfilteronblastxml/0.03", 
-            "tool_state": "{\"input_variant_file\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_blastxml_file\": \"null\", \"window_length\": \"\\\"50\\\"\", \"nb_mismatch_max\": \"\\\"3\\\"\"}", 
-            "tool_version": "0.03", 
-            "type": "tool", 
-            "user_outputs": []
-        }, 
-        "40": {
-            "annotation": "", 
-            "id": 40, 
-            "input_connections": {
-                "input_blastxml_file": {
-                    "id": 36, 
-                    "output_name": "output1"
-                }, 
-                "input_variant_file": {
-                    "id": 28, 
-                    "output_name": "output_file4"
-                }
-            }, 
-            "inputs": [], 
-            "name": "mpileupfilteronblastxml", 
-            "outputs": [
-                {
-                    "name": "output_file", 
-                    "type": "pileup"
-                }
-            ], 
-            "position": {
-                "left": 4267.5, 
-                "top": 1005.38330078125
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/mpileupfilteronblastxml/0.03", 
-            "tool_state": "{\"input_variant_file\": \"null\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"input_blastxml_file\": \"null\", \"window_length\": \"\\\"50\\\"\", \"nb_mismatch_max\": \"\\\"3\\\"\"}", 
-            "tool_version": "0.03", 
-            "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": 4700, 
-                "top": 637.38330078125
-            }, 
-            "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": 5056, 
-                "top": 682.38330078125
-            }, 
-            "post_job_actions": {}, 
-            "tool_errors": null, 
-            "tool_id": "mpileupfilterandstat", 
-            "tool_state": "{\"__page__\": 0, \"input_file\": \"null\", \"min_frequency\": \"\\\"0.8\\\"\", \"do_stat\": \"\\\"YES\\\"\", \"min_depth\": \"\\\"2\\\"\", \"__rerun_remap_job_id__\": null, \"min_forward_and_reverse\": \"\\\"0\\\"\", \"max_depth\": \"\\\"100\\\"\", \"min_distance\": \"\\\"0\\\"\"}", 
-            "tool_version": "0.07", 
-            "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.15_-1x.ga	Wed Sep 10 05:12:05 2014 -0400
@@ -0,0 +1,590 @@
+{
+    "a_galaxy_workflow": "true", 
+    "annotation": "", 
+    "format-version": "0.1", 
+    "name": "rapsosnp v1.15 -1x", 
+    "steps": {
+        "0": {
+            "annotation": "", 
+            "id": 0, 
+            "input_connections": {}, 
+            "inputs": [
+                {
+                    "description": "", 
+                    "name": "ASSEMBLY"
+                }
+            ], 
+            "name": "Input dataset", 
+            "outputs": [], 
+            "position": {
+                "left": 200, 
+                "top": 319.48333740234375
+            }, 
+            "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": 404.48333740234375
+            }, 
+            "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": 489.48333740234375
+            }, 
+            "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": 574.4833374023438
+            }, 
+            "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": 319.48333740234375
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/genephys/fastaGroomerForMakeBlastdb/0.01", 
+            "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": 450.48333740234375
+            }, 
+            "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": 319.48333740234375
+            }, 
+            "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": 477.48333740234375
+            }, 
+            "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\\\"\", \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\"}", 
+            "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": 319.48333740234375
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/filtersam_mapped_and_unique/0.01", 
+            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"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": 1411.9998779296875, 
+                "top": 319.48333740234375
+            }, 
+            "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, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"__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": 1639.9998779296875, 
+                "top": 319.48333740234375
+            }, 
+            "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, \"genotype_likelihood_computation_type\": \"{\\\"genotype_likelihood_computation_type_selector\\\": \\\"do_not_perform_genotype_likelihood_computation\\\", \\\"__current_case__\\\": 1}\", \"__rerun_remap_job_id__\": null, \"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\\\"}\", \"reference_source\": \"{\\\"ref_file\\\": null, \\\"reference_source_selector\\\": \\\"history\\\", \\\"input_bams\\\": [{\\\"__index__\\\": 0, \\\"input_bam\\\": null}], \\\"__current_case__\\\": 1}\", \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\"}", 
+            "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": 1965.9998779296875, 
+                "top": 319.48333740234375
+            }, 
+            "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": 2293.9999389648438, 
+                "top": 319.48333740234375
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/listfiltering/0.01", 
+            "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": 2621.9999389648438, 
+                "top": 319.48333740234375
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/extractseq/0.03", 
+            "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": 2949.9999389648438, 
+                "top": 319.48333740234375
+            }, 
+            "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": 3251.9999237060547, 
+                "top": 319.48333740234375
+            }, 
+            "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": 3579.9999389648438, 
+                "top": 319.48333740234375
+            }, 
+            "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\\\"\", \"do_stat\": \"\\\"YES\\\"\", \"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": []
+        }, 
+        "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": 3907.9999389648438, 
+                "top": 319.48333740234375
+            }, 
+            "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.15_-_2x.ga	Wed Sep 10 05:12:05 2014 -0400
@@ -0,0 +1,1014 @@
+{
+    "a_galaxy_workflow": "true", 
+    "annotation": "", 
+    "format-version": "0.1", 
+    "name": "rapsosnp v1.15 - 2x", 
+    "steps": {
+        "0": {
+            "annotation": "", 
+            "id": 0, 
+            "input_connections": {}, 
+            "inputs": [
+                {
+                    "description": "", 
+                    "name": "ASSEMBLY"
+                }
+            ], 
+            "name": "Input dataset", 
+            "outputs": [], 
+            "position": {
+                "left": 200.000244140625, 
+                "top": 211
+            }, 
+            "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.000244140625, 
+                "top": 296
+            }, 
+            "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.000244140625, 
+                "top": 381
+            }, 
+            "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.000244140625, 
+                "top": 466
+            }, 
+            "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.000244140625, 
+                "top": 211
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/genephys/fastaGroomerForMakeBlastdb/0.01", 
+            "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_file": {
+                    "id": 1, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "SplitFile2x", 
+            "outputs": [
+                {
+                    "name": "output_file1", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file2", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 428.000244140625, 
+                "top": 342
+            }, 
+            "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_file": {
+                    "id": 2, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "SplitFile2x", 
+            "outputs": [
+                {
+                    "name": "output_file1", 
+                    "type": "txt"
+                }, 
+                {
+                    "name": "output_file2", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 428.000244140625, 
+                "top": 534
+            }, 
+            "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": []
+        }, 
+        "7": {
+            "annotation": "", 
+            "id": 7, 
+            "input_connections": {
+                "input_file": {
+                    "id": 4, 
+                    "output_name": "output_fasta"
+                }
+            }, 
+            "inputs": [], 
+            "name": "NCBI BLAST+ makeblastdb", 
+            "outputs": [
+                {
+                    "name": "outfile", 
+                    "type": "data"
+                }
+            ], 
+            "position": {
+                "left": 756.000244140625, 
+                "top": 615.0000305175781
+            }, 
+            "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": []
+        }, 
+        "8": {
+            "annotation": "", 
+            "id": 8, 
+            "input_connections": {
+                "input_read1_file": {
+                    "id": 5, 
+                    "output_name": "output_file1"
+                }, 
+                "input_read2_file": {
+                    "id": 6, 
+                    "output_name": "output_file1"
+                }
+            }, 
+            "inputs": [], 
+            "name": "PrepareFastqLight", 
+            "outputs": [
+                {
+                    "name": "output_read1_file", 
+                    "type": "fastqsanger"
+                }, 
+                {
+                    "name": "output_read2_file", 
+                    "type": "fastqsanger"
+                }
+            ], 
+            "position": {
+                "left": 756.000244140625, 
+                "top": 211
+            }, 
+            "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": 5, 
+                    "output_name": "output_file2"
+                }, 
+                "input_read2_file": {
+                    "id": 6, 
+                    "output_name": "output_file2"
+                }
+            }, 
+            "inputs": [], 
+            "name": "PrepareFastqLight", 
+            "outputs": [
+                {
+                    "name": "output_read1_file", 
+                    "type": "fastqsanger"
+                }, 
+                {
+                    "name": "output_read2_file", 
+                    "type": "fastqsanger"
+                }
+            ], 
+            "position": {
+                "left": 756.000244140625, 
+                "top": 413
+            }, 
+            "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": {
+                "genomeSource|ownFile": {
+                    "id": 0, 
+                    "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": 1084.000244140625, 
+                "top": 211
+            }, 
+            "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\\\"\", \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\"}", 
+            "tool_version": "1.2.3", 
+            "type": "tool", 
+            "user_outputs": []
+        }, 
+        "11": {
+            "annotation": "", 
+            "id": 11, 
+            "input_connections": {
+                "genomeSource|ownFile": {
+                    "id": 0, 
+                    "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": 1084.000244140625, 
+                "top": 396
+            }, 
+            "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\\\"\", \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\"}", 
+            "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": 1348.000244140625, 
+                "top": 211
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/filtersam_mapped_and_unique/0.01", 
+            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"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": 1348.000244140625, 
+                "top": 342
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/filtersam_mapped_and_unique/0.01", 
+            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"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": 0, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "SAM-to-BAM", 
+            "outputs": [
+                {
+                    "name": "output1", 
+                    "type": "bam"
+                }
+            ], 
+            "position": {
+                "left": 1676.000244140625, 
+                "top": 211
+            }, 
+            "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, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"__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": 0, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "SAM-to-BAM", 
+            "outputs": [
+                {
+                    "name": "output1", 
+                    "type": "bam"
+                }
+            ], 
+            "position": {
+                "left": 1676.000244140625, 
+                "top": 352
+            }, 
+            "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, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"__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": 1904.000244140625, 
+                "top": 211
+            }, 
+            "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\", \"title\": \"\\\"merge bam\\\"\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"mergeSD\": \"\\\"True\\\"\", \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\"}", 
+            "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": 0, 
+                    "output_name": "output"
+                }
+            }, 
+            "inputs": [], 
+            "name": "MPileup", 
+            "outputs": [
+                {
+                    "name": "output_mpileup", 
+                    "type": "pileup"
+                }, 
+                {
+                    "name": "output_log", 
+                    "type": "txt"
+                }
+            ], 
+            "position": {
+                "left": 2132.000244140625, 
+                "top": 211
+            }, 
+            "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, \"genotype_likelihood_computation_type\": \"{\\\"genotype_likelihood_computation_type_selector\\\": \\\"do_not_perform_genotype_likelihood_computation\\\", \\\"__current_case__\\\": 1}\", \"__rerun_remap_job_id__\": null, \"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\\\"}\", \"reference_source\": \"{\\\"ref_file\\\": null, \\\"reference_source_selector\\\": \\\"history\\\", \\\"input_bams\\\": [{\\\"__index__\\\": 0, \\\"input_bam\\\": null}], \\\"__current_case__\\\": 1}\", \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\"}", 
+            "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": 2458.000244140625, 
+                "top": 211
+            }, 
+            "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": 2786.000244140625, 
+                "top": 211
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/listfiltering/0.01", 
+            "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": 3114.000244140625, 
+                "top": 211
+            }, 
+            "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": 0, 
+                    "output_name": "output"
+                }, 
+                "input_variant_file": {
+                    "id": 20, 
+                    "output_name": "output_file1"
+                }
+            }, 
+            "inputs": [], 
+            "name": "extractseq", 
+            "outputs": [
+                {
+                    "name": "output_file", 
+                    "type": "fasta"
+                }
+            ], 
+            "position": {
+                "left": 3442.000244140625, 
+                "top": 211
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/extractseq/0.03", 
+            "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": 0, 
+                    "output_name": "output"
+                }, 
+                "input_variant_file": {
+                    "id": 20, 
+                    "output_name": "output_file2"
+                }
+            }, 
+            "inputs": [], 
+            "name": "extractseq", 
+            "outputs": [
+                {
+                    "name": "output_file", 
+                    "type": "fasta"
+                }
+            ], 
+            "position": {
+                "left": 3442.000244140625, 
+                "top": 386
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/extractseq/0.03", 
+            "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": 7, 
+                    "output_name": "outfile"
+                }, 
+                "query": {
+                    "id": 21, 
+                    "output_name": "output_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "NCBI BLAST+ blastn", 
+            "outputs": [
+                {
+                    "name": "output1", 
+                    "type": "tabular"
+                }
+            ], 
+            "position": {
+                "left": 3770.000244140625, 
+                "top": 211
+            }, 
+            "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": 7, 
+                    "output_name": "outfile"
+                }, 
+                "query": {
+                    "id": 22, 
+                    "output_name": "output_file"
+                }
+            }, 
+            "inputs": [], 
+            "name": "NCBI BLAST+ blastn", 
+            "outputs": [
+                {
+                    "name": "output1", 
+                    "type": "tabular"
+                }
+            ], 
+            "position": {
+                "left": 3770.000244140625, 
+                "top": 352
+            }, 
+            "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\\\": \\\"0\\\"}\", \"__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": 4072.000228881836, 
+                "top": 211
+            }, 
+            "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": 4072.000228881836, 
+                "top": 420
+            }, 
+            "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": 4400.000228881836, 
+                "top": 211
+            }, 
+            "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": 4728.000244140625, 
+                "top": 211
+            }, 
+            "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\\\"\", \"do_stat\": \"\\\"YES\\\"\", \"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": 8, 
+                    "output_name": "output_read1_file"
+                }, 
+                "input_read1_part2_trimmed_file": {
+                    "id": 9, 
+                    "output_name": "output_read1_file"
+                }, 
+                "input_read1_row_file": {
+                    "id": 1, 
+                    "output_name": "output"
+                }, 
+                "input_read2_part1_trimmed_file": {
+                    "id": 8, 
+                    "output_name": "output_read2_file"
+                }, 
+                "input_read2_part2_trimmed_file": {
+                    "id": 9, 
+                    "output_name": "output_read2_file"
+                }, 
+                "input_read2_row_file": {
+                    "id": 2, 
+                    "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": 5056.000244140625, 
+                "top": 211
+            }, 
+            "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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rapsodyn/Galaxy-Workflow-rapsosnp_v1.15_-_4x.ga	Wed Sep 10 05:12:05 2014 -0400
@@ -0,0 +1,1564 @@
+{
+    "a_galaxy_workflow": "true", 
+    "annotation": "", 
+    "format-version": "0.1", 
+    "name": "rapsosnp v1.15 - 4x", 
+    "steps": {
+        "0": {
+            "annotation": "", 
+            "id": 0, 
+            "input_connections": {}, 
+            "inputs": [
+                {
+                    "description": "", 
+                    "name": "READ1"
+                }
+            ], 
+            "name": "Input dataset", 
+            "outputs": [], 
+            "position": {
+                "left": 214.7666015625, 
+                "top": 723
+            }, 
+            "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": 219.7666015625, 
+                "top": 1105
+            }, 
+            "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": 2639.7666015625, 
+                "top": 587
+            }, 
+            "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": "DUBIUS"
+                }
+            ], 
+            "name": "Input dataset", 
+            "outputs": [], 
+            "position": {
+                "left": 2449.7666015625, 
+                "top": 1405
+            }, 
+            "tool_errors": null, 
+            "tool_id": null, 
+            "tool_state": "{\"name\": \"DUBIUS\"}", 
+            "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": 516.7666015625, 
+                "top": 602.5
+            }, 
+            "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": 519.7666015625, 
+                "top": 920.5
+            }, 
+            "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": 2796.7666015625, 
+                "top": 404.5
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/genephys/fastaGroomerForMakeBlastdb/0.01", 
+            "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": 891.7666015625, 
+                "top": 481.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": 900.7666015625, 
+                "top": 722.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_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": 890.7666015625, 
+                "top": 947.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": []
+        }, 
+        "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": 894.7666015625, 
+                "top": 1175.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": []
+        }, 
+        "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": 3514.2666625976562, 
+                "top": 427.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": 1355.7666015625, 
+                "top": 563
+            }, 
+            "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\\\"\", \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\"}", 
+            "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": 1349.7666015625, 
+                "top": 745
+            }, 
+            "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\\\"\", \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\"}", 
+            "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": 1349.7666015625, 
+                "top": 914
+            }, 
+            "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\\\"\", \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\"}", 
+            "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": 1349.7666015625, 
+                "top": 1094
+            }, 
+            "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\\\"\", \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\"}", 
+            "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": 1628.7666015625, 
+                "top": 711
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/filtersam_mapped_and_unique/0.01", 
+            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"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": 1628.7666015625, 
+                "top": 856
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/filtersam_mapped_and_unique/0.01", 
+            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"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": 1633.7666015625, 
+                "top": 995
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/filtersam_mapped_and_unique/0.01", 
+            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"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": 1632.7666015625, 
+                "top": 1149
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/filtersam_mapped_and_unique/0.01", 
+            "tool_state": "{\"__page__\": 0, \"__rerun_remap_job_id__\": null, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"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": 1952.7666015625, 
+                "top": 756
+            }, 
+            "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, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"__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": 1948.7666015625, 
+                "top": 903
+            }, 
+            "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, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"__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": 1948.7666015625, 
+                "top": 1041
+            }, 
+            "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, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"__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": 1948.7666015625, 
+                "top": 1193
+            }, 
+            "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, \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\", \"__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": 2265.7666015625, 
+                "top": 1038
+            }, 
+            "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\", \"title\": \"\\\"merge bam\\\"\", \"__page__\": 0, \"__rerun_remap_job_id__\": null, \"mergeSD\": \"\\\"True\\\"\", \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\"}", 
+            "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": 2401.7666015625, 
+                "top": 764
+            }, 
+            "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, \"genotype_likelihood_computation_type\": \"{\\\"genotype_likelihood_computation_type_selector\\\": \\\"do_not_perform_genotype_likelihood_computation\\\", \\\"__current_case__\\\": 1}\", \"__rerun_remap_job_id__\": null, \"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\\\"}\", \"reference_source\": \"{\\\"ref_file\\\": null, \\\"reference_source_selector\\\": \\\"history\\\", \\\"input_bams\\\": [{\\\"__index__\\\": 0, \\\"input_bam\\\": null}], \\\"__current_case__\\\": 1}\", \"chromInfo\": \"\\\"/home/galaxy/galaxy/galaxy-dist/tool-data/shared/ucsc/chrom/?.len\\\"\"}", 
+            "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": 2694.7666015625, 
+                "top": 1264.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": 2778.7666015625, 
+                "top": 956.5
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/listfiltering/0.01", 
+            "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": 3154, 
+                "top": 906.88330078125
+            }, 
+            "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": 3512, 
+                "top": 711.8833312988281
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/extractseq/0.03", 
+            "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": 3517, 
+                "top": 880.8833312988281
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/extractseq/0.03", 
+            "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": 3518, 
+                "top": 1049.88330078125
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/extractseq/0.03", 
+            "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": 3525, 
+                "top": 1216.88330078125
+            }, 
+            "post_job_actions": {}, 
+            "tool_errors": null, 
+            "tool_id": "toolshed.g2.bx.psu.edu/repos/mcharles/rapsodyn/extractseq/0.03", 
+            "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": 3959.7666625976562, 
+                "top": 695.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": 3961.7666625976562, 
+                "top": 886.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": []
+        }, 
+        "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": 3965.7666625976562, 
+                "top": 1052.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": []
+        }, 
+        "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": 3971.7666625976562, 
+                "top": 1220.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": []
+        }, 
+        "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": 4286.5, 
+                "top": 705
+            }, 
+            "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": 4284.5, 
+                "top": 904
+            }, 
+            "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": 4287.5, 
+                "top": 1103
+            }, 
+            "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": 4281.5, 
+                "top": 1305
+            }, 
+            "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": 4700, 
+                "top": 841.8833312988281
+            }, 
+            "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": 5056, 
+                "top": 886.8833312988281
+            }, 
+            "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\\\"\", \"do_stat\": \"\\\"YES\\\"\", \"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": 5447.5, 
+                "top": 211
+            }, 
+            "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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rapsodyn/ParseBlastForUniqueMatch.pl	Wed Sep 10 05:12:05 2014 -0400
@@ -0,0 +1,176 @@
+#!/usr/bin/perl
+use strict;
+use warnings;
+
+
+my $input_variant_file = $ARGV[0];
+my $input_blast_file = $ARGV[1];
+my $window_length = $ARGV[2];
+my $nb_mismatch_max = $ARGV[3];
+
+my %hash_name;
+
+open(INB, $input_blast_file) or die ("Can't open $input_blast_file\n");
+while (my $line =<INB>){
+	my @fields = split (/\s+/,$line);
+	# print $#fields,"\n";
+	# print $line;
+	# exit(0);
+	my $query_name;
+	my $query_start;
+	my $query_stop;
+	my $query_aln;
+	my $subject_aln;
+	my $compt_mismatch_5p=0;
+	my $compt_mismatch_3p=0;
+	
+	if ($#fields == 24){
+		$query_name = $fields[0];
+		$query_start = $fields[6];
+		$query_stop = $fields[7];
+		$query_aln = $fields[20];
+		$subject_aln = $fields[21];
+	}
+	elsif ($#fields == 4){
+		$query_name = $fields[0];
+		$query_start = $fields[1];
+		$query_stop = $fields[2];
+		$query_aln = $fields[3];
+		$subject_aln = $fields[4];
+	}
+	else {
+		print STDERR "Unrecongnized tabular format for blast result\nScript works with 25 column or 5 custom column(qseqid,qstart,qend,ssseq,sseq)\n";
+		exit(0);
+	}
+	
+	
+	my @field_name = split (/\_/,$query_name);
+	my $name = $field_name[0]."_".$field_name[1];
+	if ($query_name =~ /random/){
+		$name .= "_".$field_name[2];
+		# print $name."\n";
+	
+	}
+	if (!$hash_name{$name}){
+		$hash_name{$name}=0;
+	}
+	elsif ($hash_name{$name}>1){
+		next;
+	}
+	# if ($query_name eq "chrUnn_random_8279117_1_M1_a"){
+		# print "READ : $query_name\n$name\n";
+		# print "HASH : ",$hash_name{$name},"\n";
+		# # exit(0);
+	# }
+	
+	
+	
+	chomp($query_aln);
+	chomp($subject_aln);
+	
+	my $nb_gap_query=0;
+	
+	if (length($query_aln) == length($subject_aln)){
+		if (length($query_aln)<$window_length-$nb_mismatch_max){
+		}
+		else {
+			my @q = split(//,$query_aln);
+			my @s = split(//,$subject_aln);
+			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){
+						$compt_mismatch_5p++;
+					}
+					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){
+							$compt_mismatch_5p++;
+						}
+						elsif ($global_idx > $window_length){
+							$compt_mismatch_3p++;
+						}
+					}
+				}
+			}
+			$compt_mismatch_5p += $query_start-1;
+			$compt_mismatch_3p += $window_length *2 + 1 - $query_stop;
+			
+			# for (my $i=0;$i<$window_length;$i++){
+				# if ($tbl_q_aln[$i] eq "#"){
+					# $compt_mismatch_5p++;
+				# }
+				# elsif ($tbl_q_aln[$i] ne $tbl_s_aln[$i]){
+					# $compt_mismatch_5p++;
+				# }
+				# else {
+				# }
+
+			# }
+			# for (my $i=$window_length+1;$i<=$window_length*2;$i++){
+				# if ($tbl_q_aln[$i] eq "#"){
+					# $compt_mismatch_3p++;
+				# }
+				# elsif ($tbl_q_aln[$i] ne $tbl_s_aln[$i]){
+					# $compt_mismatch_3p++;
+				# }
+				# else {
+				# }
+			# }
+			if (($compt_mismatch_5p <= $nb_mismatch_max)||($compt_mismatch_3p <= $nb_mismatch_max)){
+				$hash_name{$name}++;
+			}
+			
+		}
+	}
+	else {
+		print STDERR "incompatible subject and query alignement length\n $query_aln\n$subject_aln\n";
+	}
+	
+	# if ($line=~/chrCnn_random_49828229/){
+		# print $line;
+		# print $query_aln,"\n";
+		# print $subject_aln,"\n";
+		# print $compt_mismatch_5p,"\t",$compt_mismatch_3p,"\n";
+		# print $hash_name{"chrCnn_random_49828229"},"\n";
+		# print "\n";
+	# }
+	
+	
+	
+}
+# exit(0);
+	
+close (INB);
+
+open(INV, $input_variant_file) or die ("Can't open $input_variant_file\n");
+
+while (my $ligne = <INV>) {
+	
+	my @champs = split (/\s+/,$ligne);
+	my $header = $champs[0]."_".$champs[1];
+
+	if ($hash_name{$header}){
+		if ($hash_name{$header}==1){
+			print $ligne;
+		}
+	}
+	else {
+		#print STDERR "No blast result for ",$header,"\n";
+	}
+
+	
+}
+
+close(INV);
+
+
+# foreach my $key (sort keys %hash_name){
+	# print $key,"\t",$hash_name{$key},"\n";
+	
+# }
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rapsodyn/ParseBlastForUniqueMatch.xml	Wed Sep 10 05:12:05 2014 -0400
@@ -0,0 +1,21 @@
+<tool id="ParseBlastForUniqueMatch" name="ParseBlastForUniqueMatch" version="0.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 
+</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"/>
+</inputs>
+<outputs>
+ <data name="output_file" format="pileup" label="${tool.name} on ${on_string}"/>
+</outputs>
+
+<help>
+
+
+
+</help>
+</tool>
--- a/rapsodyn/mpileupfilterandstat.pl	Fri Sep 05 06:12:10 2014 -0400
+++ b/rapsodyn/mpileupfilterandstat.pl	Wed Sep 10 05:12:05 2014 -0400
@@ -29,19 +29,19 @@
 my $ONLY_UNFILTERED_VARIANT="OFF";
 my $DO_STAT="NO";
 
-if ($#ARGV<0){
-	print "\n";
-	print "perl 020_FilterPileupv6 -input_file <mpileup_file> [OPTION]\n";
-	print "-input_file \tinputfile in mpileup format\n";
-	print "-log_file \tlogfile containing discarded mpileup lines and the errorcode associated\n";
-	print "-min_depth \tminimum depth required [1]\n";
-	print "-max_depth \tmaximim depth (position with more coverage will be discarded) [100]\n";
-	print "-min_frequency \tminimum variant frequency (0->1) [1] (default 1 => 100% reads show the variant at this position)\n";
-	print "-min_distance \tminimum distance between variant [0]\n";
-	print "-min_forward_and_reverse \tminimum number of reads in forward and reverse covering the variant required [0]\n";
-	print "\n";
-	exit(0);
-}
+
+my $STAT_MIN_DEPTH_MIN = 2;
+my $STAT_MIN_DEPTH_MAX = 10;
+my $STAT_MIN_DEPTH_STEP = 2;
+my $STAT_MAX_DEPTH_MIN = 100;
+my $STAT_MAX_DEPTH_MAX = 200;
+my $STAT_MAX_DEPTH_STEP = 100;
+my $STAT_FREQ_MIN = 0.8;
+my $STAT_FREQ_MAX = 1;
+my $STAT_FREQ_STEP = 0.1;
+my $STAT_DIST_MIN = 0;
+my $STAT_DIST_MAX = 50;
+my $STAT_DIST_STEP = 50;
 
 GetOptions (
 "input_file=s" => \$inputfile,
@@ -53,10 +53,21 @@
 "min_forward_and_reverse=i" => \$MIN_FORWARDREVERSE,
 "variant_only=s" => \$ONLY_UNFILTERED_VARIANT,
 "v=i" => \$VERBOSE,
-"do_stat=s" => \$DO_STAT
+"do_stat=s" => \$DO_STAT,
+"stat_min_depth_min=i" => \$STAT_MIN_DEPTH_MIN,
+"stat_min_depth_max=i" => \$STAT_MIN_DEPTH_MAX,
+"stat_min_depth_step=i" => \$STAT_MIN_DEPTH_STEP,
+"stat_max_depth_min=i" => \$STAT_MAX_DEPTH_MIN,
+"stat_max_depth_max=i" => \$STAT_MAX_DEPTH_MAX,
+"stat_max_depth_step=i" => \$STAT_MAX_DEPTH_STEP,
+"stat_freq_min=f" => \$STAT_FREQ_MIN,
+"stat_freq_max=f" => \$STAT_FREQ_MAX,
+"stat_freq_step=f" => \$STAT_FREQ_STEP,
+"stat_dist_min=i" => \$STAT_DIST_MIN,
+"stat_dist_max=i" => \$STAT_DIST_MAX,
+"stat_dist_step=i" => \$STAT_DIST_STEP
 ) or die("Error in command line arguments\n");
 
-
 open(IF, $inputfile)  or die("Can't open $inputfile\n");
 
 my @tbl_line;
@@ -150,22 +161,24 @@
 open(LF,">$logfile") or die ("Can't open $logfile\n");
 
 if ($DO_STAT eq "YES"){
-	for (my $idx_min_depth=2;$idx_min_depth<=32;$idx_min_depth = $idx_min_depth*2){
-		for (my $idx_freq = 0.5;$idx_freq<=1;$idx_freq= $idx_freq+0.1){ 
-			for (my $idx_dist=0;$idx_dist<=50;$idx_dist = $idx_dist + 50){
-				for (my $idx_fr=0;$idx_fr<=1;$idx_fr++){
-					my %stat_param;
-					$stat_param{"min_depth"}=$idx_min_depth;
-					$stat_param{"max_depth"}=250;
-					$stat_param{"min_freq"}=$idx_freq;
-					$stat_param{"min_fr"}=$idx_fr;
-					$stat_param{"min_dist"}=$idx_dist;
+	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){ 
+				for (my $idx_dist=$STAT_DIST_MIN;$idx_dist<=$STAT_DIST_MAX;$idx_dist = $idx_dist + $STAT_DIST_STEP){
+					for (my $idx_fr=0;$idx_fr<=1;$idx_fr++){
+						my %stat_param;
+						$stat_param{"min_depth"}=$idx_min_depth;
+						$stat_param{"max_depth"}=$idx_max_depth;
+						$stat_param{"min_freq"}=$idx_freq;
+						$stat_param{"min_fr"}=$idx_fr;
+						$stat_param{"min_dist"}=$idx_dist;
 
-					print LF "#SNP = ",&test_check(\@tbl_line,\%stat_param),"\tdepth (min/max) = ",$stat_param{"min_depth"}," / ",$stat_param{"max_depth"},"\tmin_dist=",$stat_param{"min_dist"},"\tmin_freq=",$stat_param{"min_freq"},"\tmin_forwardreverse = ",$stat_param{"min_fr"},"\n";
-				}
-			}	
+						print LF "#SNP = ",&test_check(\@tbl_line,\%stat_param),"\tdepth (min/max) = ",$stat_param{"min_depth"}," / ",$stat_param{"max_depth"},"\tmin_dist=",$stat_param{"min_dist"},"\tmin_freq=",$stat_param{"min_freq"},"\tmin_forwardreverse = ",$stat_param{"min_fr"},"\n";
+					}
+				}	
+			}
+			print "\n";
 		}
-		print "\n";
 	}
 }
 
--- a/rapsodyn/mpileupfilterandstat.xml	Fri Sep 05 06:12:10 2014 -0400
+++ b/rapsodyn/mpileupfilterandstat.xml	Wed Sep 10 05:12:05 2014 -0400
@@ -1,7 +1,16 @@
-<tool id="mpileupfilterandstat" name="mpileupfilterandstat" version="0.07">
+<tool id="mpileupfilterandstat" name="mpileupfilterandstat" version="0.08">
 <description>Filter mpileup file entry</description>
 <command interpreter="perl">
-    mpileupfilterandstat.pl -input_file $input_file -log_file $log_file -min_depth $min_depth -min_frequency $min_frequency -min_distance $min_distance -min_forward_and_reverse $min_forward_and_reverse -max_depth $max_depth -do_stat $do_stat> $output_file 
+  #if $stat.do_stat=="YES"
+        mpileupfilterandstat.pl -input_file $input_file -log_file $log_file -min_depth $min_depth -min_frequency $min_frequency -min_distance $min_distance -min_forward_and_reverse $min_forward_and_reverse -max_depth $max_depth -do_stat $stat.do_stat 
+-stat_min_depth_min $stat.stat_min_depth_min -stat_min_depth_max $stat.stat_min_depth_max -stat_min_depth_step $stat.stat_min_depth_step 
+-stat_max_depth_min $stat.stat_max_depth_min -stat_max_depth_max $stat.stat_max_depth_max -stat_max_depth_step $stat.stat_max_depth_step 
+-stat_freq_min $stat.stat_freq_min -stat_freq_max $stat.stat_freq_max -stat_freq_step $stat.stat_freq_step 
+-stat_dist_min $stat.stat_dist_min -stat_dist_max $stat.stat_dist_max -stat_dist_step $stat.stat_dist_step > $output_file 
+  #else
+        mpileupfilterandstat.pl -input_file $input_file -log_file $log_file -min_depth $min_depth -min_frequency $min_frequency -min_distance $min_distance -min_forward_and_reverse $min_forward_and_reverse -max_depth $max_depth -do_stat $stat.do_stat > $output_file 
+  #end if
+
 </command>
 <inputs>
 <param name="input_file"  type="data" format="pileup" label="Select a suitable input file from your history"/>
@@ -10,10 +19,31 @@
 <param name="min_frequency" type="float" value="1" 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="do_stat" type="select" label="Compute stats ">
-	<option value="NO">NO</option>
-	<option value="YES">YES</option>
-</param>
+<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_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_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" />
+  </when>
+  <when value="NO">
+    
+  </when>
+</conditional> 
+
+
 
 </inputs>
 <outputs>