SV calling using multiple software tools with results evaluated using the Jaccard Index Measure

public public 1yr ago 0 bookmarks

Description

Multi-stage Snakemake pipeline that combines python and BASH scripts for Structural Variant (SV) calling with multiple third-party long-read and assembly alignment-based SV calling tools. In addition, this pipeline evaluates all SV results produced based on their consistency with other tools using the Jacccard index measure and Truvari. This workflow simplifies the generation of a comprehensive evidence-based SV result set and to aid SV studies that require well-supported SV results.

Supported formats

SV-JIM requires genome assemblies from both a reference and query sample in FASTA format and a long-reads FASTQ file containing reads that belongs to query sample. The input genome assembly files must be pre-downloaded by the user and the path information must be updated in the configuration file prior to execution. Similarly, the read file can also be provided before execution; however, the pipeline also supports prefetching read data with SRATools based on the accession information added to the config file.

After execution, SV-JIM produces multiple SV result files in Variant Call Format (VCF), including the original outputs, intersections for specific tool combinations, and aggregated SV results on the basis of minimum supporting callers (Ex: minTwo or minThree).

Dependencies

SV-JIM is a Snakemake pipeline that utilizes multiple third party software tools. Many of these tools are installable as conda package so the pipeline includes a conda configuration file for user convenience.

The full list of required software is provided below and includes version information for the software versions that were used during testing:

Dependencies installed through the provided conda configuration file

  • biopython (1.80)

  • cutesv (2.0.2)

  • svim (1.4.2)

  • svim-asm (1.0.3)

  • intervaltree (3.0.2)

  • scipy (1.10.0)

  • mamba (1.2.0)

  • numpy (1.24.2)

  • snakemake (7.21.0)

  • pysam (0.20.0)

  • sniffles=2.0 (2.0.7)

  • pandas (1.5.3)

  • matplotlib (3.6.3)

  • matplotlib-venn (0.11.7)

  • truvari (3.5.0)

Other dependencies

  • SRA-Tools (3.0.2)

  • Minimap2 (2.24-r1122)

  • SAMTools (1.16.1)

  • BCFTools (1.16)

  • BEDTools (2.30.0)

  • PAV (2.2.1)

Additionally, the pipeline must be launched from an environment with Snakemake installed.

Installation

As a Snakemake workflow that employs external tools, the installation only involves cloning this repository:

git clone https://github.com/CMalcolmTodd/SV-JIM

After cloning the SV-JIM repository, the conda dependencies will be loaded by Snakemake automatically during execution based on the included conda env configuration file. For the remaining dependencies please consult the installation instructions provided by each tool's github/manual and ensure these tools are added to your PATH variable.

Configuration

For configuration, SV-JIM provides a config file template used by Snakemake to specify the required input files, conda environments, options, and directory information to enable execution. The provided template config file features many default values that utilize the provided working directory structure; however, these values are configurable if the preference is to use alternative directories. Further details on each of the available parameters is provided in later in this section.

Finally, SV-JIM includes a conda environment file that permits Snakemake to install many of the pipeline's dependencies; however, the provided pipeline config file can also be updated to use alternative conda environment files if using separate conda environments with specific/non-conflicting software versions is required.

If an alternative conda environment is preferable, a conda environment file can be generated as follows:

conda env export -n <condaEnvName> -f <fileName>.yaml --from-history

Any additional conda files created must be placed in the Rules directory to allow for access by Snakemake during execution and please provide updated file name information for each tool's conda file in the pipeline's config file.

Configuration file options:

Input File Configurations Section

Reference Sequence Information
  • refSampleName : Short ID for user to distinguish files (EX: "NI100")

  • refAssembly : Path to Reference Fenome fasta file (EX: "./Genomes/Bnigra_NI100.fasta")

  • refSeqsFile : File of regions in the reference genome to include. For example, the chromosomes only. (EX:"./Genomes/RefSeqsToInclude.txt")

    • Contents of the target file should contain one region per line.

    • This type of file can be created with:

      • grep ">[Chrom_Prefix]" [genomeFasta] | tr -d ">" > [refSeqListFile]
Query Sequence Information
  • qrySampleName : Short ID for user to distinguish files (EX: "C2")

  • qryAssembly : Path to Reference Fenome fasta file (EX: "./Genomes/Bnigra_NI100.fasta")

  • qrySeqsFile : File of regions/contigs in the query assembly to be included. (EX:"./Genomes/QrySeqsToInclude.txt")

    • Contents of the target file should contain one region per line.

    • This type of file can be created quickly with:

      • grep ">[Chrom_Prefix]" [genomeFasta] | tr -d ">" > [qrySeqListFile]
Read Input Information
  • readFilesList : "../Arabidopsis_Data/ReadAccessions.txt" # List of Accession numbers (one per line) for Long-reads to be included during execution (EX: "SRR11906206")

  • firstLRAccession : "ERR3415826" # Accession number for first file in the readFilesList (to check if requiring download from SRA)

Environment and Working Directory Configurations

Environment Information
  • threads : Desired number of threads to use during execution based on hardware available (EX: 30)
Working Directory Information

Default options can be created easily using the 'build-workspace.sh' script provided in home directory of this repo.

  • genomesFolder : Path to target directory containing the reference and query fasta files.

    • (EX: "./Genomes")
  • longReadsFolder : Path to target directory containing the long read data (in fastq) applicable to the query sample.

    • (EX: "./Long_Reads")
  • qualimapReportsFolder : Path to target directory into which Qualimap reports will be written.

    • (EX: "./Qualimap_Reports")
  • alignResultsFolder : Path to target directory into which minimap2 alignment results will be written.

    • (EX: "./Alignments")
  • svResultsFolder : Path to parent directory into which all SV caller results will be written.

    • (EX: "./SV_Calls")
  • intersectResultsFolder : Path to parent directory into which all BEDTools intersect results will be written.

    • (EX: "./Intersections")
  • truvariResultsFolder : Path to parent directory into which all Truvari bench results will be written.

    • (EX:"./Truvari_Results")
  • aggregatedResultsFolder : Path to parent directory into which SV results supported by a minimum number of SV callers for each tool will be written.

    • (EX:"./Aggregated_SV_Results")
Conda Environment Information

This repo includes a YAML env file provided that contains all conda related dependency programs for user convenience. Additionally, using a single environment file with all of the required software reduces pipeline execution time since snakemake will regenerate it's own copies of each environment automatically. However, the following separate options are available should the user require/prefer to use separate environments. Any YAML files to be used should be placed in the Rules subdirectory for Snakemake to access.

To use a single conda environment, please specify the same target YAML file for all five parameters.

  • cuteSVCondaEnvYAML : Path to YAML file for conda env that CuteSV is installed in. (EX: "All-Env.yaml")

  • sniffles2CondaEnvYAML : Path to YAML file for conda env that Sniffles2 is installed in. (EX: "All-Env.yaml")

  • svimCondaEnvYAML : Path to YAML file for conda env that SVIM is installed in. (EX:"All-Env.yaml")

  • svimASMCondaEnvYAML : Path to YAML file for conda env that SVIM-ASM is installed in. (EX: "All-Env.yaml")

  • pavCondaEnvYAML : Path to YAML file for conda environment with PAV dependencies installed. (EX: "All-Env.yaml")

Software Configurations

SRATools Configurations

For context, the default value provided is based on the size of the read data files used during initial testing

  • prefetchMaxSize : Maximum file size that will downloaded during prefetch operation. (EX: "50G")
Minimap2 Aligner Configurations (for more details see minimap2 --help)

For context, the default settings taken from the supplementary information of the orginal CuteSV and SVIM-ASM publications since these publications compared the performance of similar software that is used in the pipeline. Additional details and options for each setting can also be found in the minimap2 --help menu.

  • presetForLR : Predefined settings based on sequencing tech.

    • (EX: "map-ont" OR "map-pb" OR "map-hifi", etc.)
  • presetForAssemblies : Predefined settings for query assembly to ref alignment based on maximum allowable sequence divergence.

    • (EX: asm5 OR asm10 OR asm20)
  • minimapZDropForLR : Z drop score and Inversion Z drop score parameter in minimap (EX: "600,200")

SAMTools Configurations

For context, these default settings were taken from the supplementary information from the original SVIM-ASM publication since this parameter value was successfully used in their testing.

  • memSettingForAssemblySort : Memory required for sorting minimap2's assembly-to-ref alignment output. (EX: "4G")
General SV Caller Configurations

For context, these default settings were taken from the supplementary information of the CuteSV publication since this publication demonstrated high quality performance rates when comparing the outputs of similar read-based SV Callers used in the pipeline.

  • minMAPQForSVs : PHRED-scaled quality score for the probability of error for an aligned base (EX: 20)

    • PHRED scores typically range from 4-60 with 10 representing 10% error, 20 representing 1%, 30 representing 0.1%, and 40 representing 0.01%

    • Additional details on PHRED-scaled quality scores can be found in the Phred-scaled quality scores article.

  • minSuppReadsForSVs : Min number of reads that support/indicate the presence of an SV. (EX: 10)

  • minSizeForSVs : Min size of SVs to be detected [50 is the common definition in literature]. (EX: 50)

  • maxSizeForSVs : Filtering maximum size for SV detectable by tools (EX: 300000)

CuteSV Configurations

As with the general SV configurations above, the default settings are taken from the CuteSV publication. Please see the CuteSV repo for more details on the significance of these settings.

  • maxClusterBias : 100

  • diffRatio : 0.3

Truvari Bench Configurations

Default settings inspired by thresholds used in published literature and in the SVIM-ASM publications' supplementary information. See truvari bench --help menu for more details on settings.

  • overlapThreshold : Rate of similarity required in the sizes of the SVs locations being compared. (EX: 0.5 [or 50% which is a commonly used threshold in literature])

  • maxRefDistance : Maximum distance (in number of bases) permitted when comparing the reference sequence index reported for the SV locations being compared (EX: 1000)

Pipeline Benchmarking Configurations
  • benchmarkDir: Path information for where to write benchmarking files.

    • (EX: "./Benchmarking")
  • repeatsForBench: Frequency for how many times to repeat a task as part of benchmarking. (EX: 1)

    • Note, increasing this parameter will significantly increase execution time. So unless benchmarking, recommended to be left at 1

Usage

A) Set Up/Pre-work

  1. Update the provided SV-JIM config file to reflect the target input sequence information and update any setting values you wish to change from the defaults

  2. Create the files for the refSeqsFile and qrySeqsFile to specify only the target genome/assembly chroms/contigs to be considered during the pipeline's execution

    • See grep command suggestion in the Configuration section above for assistance
  3. Create the file for the readFilesList to specify which read accessions are to be included during execution.

    • Note: If any of input read files cannot/won't be fetched from SRA, please preprocess the file name to ensure the read's fastq file is unzipped and renamed to '.fastq' to prevent unnecessary prefetching using SRATools.

B) Perform a dry run:

Recommended first step to confirm configuration/settings prior to executions. Performing a dry run (-np) Builds the directed acyclic graph representing the outstanding tasks of the workflow and prints the applicable commands to be run at each stage of pipeline to allow for review, but doesn't execute any of the related commands. Dry runs are also useful as they can identify errors that may occur based on current configurations and pre-work completed.

  1. cd to SV-JIM home directory

  2. Update configuration file to reflect inputs to be processed

  3. Run: snakemake -np

C) Execute SV-JIM once configuration is prepared:

Builds the directed acyclic graph representing the outstanding tasks of the workflow and begins execution of the underlying software. Note: the order of execution for the outstanding tasks can vary between executions.

  1. cd to SV-JIM home directory

  2. Run: snakemake --use-conda --cores <# threads>

Note:

  • Adding --rerun-incompletes to the command may be necessary if the pipeline terminates unexpectedly during execution to restart tasks that were in progress at the time.

  • Unexpected termination may also result in a locked working directory; however, this lock can be removed by either running snakemake --unlock in the SV-JIM home directory or by deleting the contents of the <PAV_Directory>/.snakemake/locks/ directory if the reported lock was applied by PAV's Snakemake pipeline.

Pipeline Test Example (Arabidopsis thaliana)

Input data

Due to size, the experiment's input sequence data should be obtained from the publicly accessible resources below:

Experiment set up

The provided config file should already contain many of the necessary configurations, but please make the following updates:

  1. Update the chromosome header information in the TAIR10 reference genome to be more concise/clear within the output and to match the Ler chrom IDs

    • Ex: change longer chromosome 1 header in TAIR10 to >chr1

    • Repeat for all chromosomes by searching for the '>' characters that begin each header

  2. Generate a RefSeqsToInclude.txt and QrySeqsToInclude.txt using the grep instructions in the Config section to identify the sequences to be included from both genomes.

  3. Unzip and rename the downloaded ERR3415826 reads FASTQ file to ERR3415826.fastq to be consistent with the config file value provided.

  4. Update provided config file's refAssembly , refSeqsFile , qryAssembly , and qrySeqsFile values to reflect the user's local path information for where the input data files are stored

Running the experiment

Once configured the pipeline can be executed similar to the usage instructions above:

  1. Run: snakemake --use-conda --cores <# threads>

Note: For additional execution stats, Snakemake supports a --stat <statsFile> if further execution statistics prove helpful to the user.

Known issues

List of current issues

Getting help

If you have questions, concerns, bug reports, etc, please file an issue in this repository's Issue Tracker or e-mail [email protected] .

Future work

Have suggestions on how the software can be improved? Please contact [email protected] with your suggestions/recommendations!

Current worklist:

  • Update Rules and Scripts to use zipped data inputs to improve memory footprint

  • Research parallelization options/caps for each tool and refine threads argument for each rule

  • Add Docstrings to Snakemake Rules files to improve internal documentation for users

MIT licensing info

  1. LICENSE

Code Snippets

16
17
shell:
        "bash ./Scripts/align_reads_w_minimap2.sh {threads} {params.zDrop} {params.mnmp2Preset} {params.refGenome} {output} {params.alignOutDir} {params.readsDir} {input.readFilesList}"
33
34
shell:
        "mkdir -p {params.alignOutDir};\n"
18
19
20
21
shell:
        "mkdir -p {params.svOutDir};\n"
        "svim-asm haploid --min_mapq {params.minMAPQ} --min_sv_size {params.minSize} --max_sv_size {params.maxSize} {params.svOutDir} {input.inputFile} {params.refGenome};"
        "mv {params.svOutDir}/variants.vcf {output}"
37
38
39
shell:
        "mkdir -p {params.svOutDir};\n"
        "bash ./Scripts/run-PAV-SnakeMake-pipe.sh {threads} {params.svOutDir} {input} {params.qryID}"
51
52
shell:
       "gunzip -c {input} > {output};"
36
37
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
74
75
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
112
113
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
150
151
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
188
189
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
279
280
281
282
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPCallALL} {params.callTPCallSSm} {params.callTPCallSml} {params.callTPCallMed} {params.callTPCallLrg};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPBaseALL} {params.callTPBaseSSm} {params.callTPBaseSml} {params.callTPBaseMed} {params.callTPBaseLrg};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.baseTPCallALL} {params.baseTPCallSSm} {params.baseTPCallSml} {params.baseTPCallMed} {params.baseTPCallLrg}"
345
346
347
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallSSm} {params.tpCallSml} {params.tpCallMed} {params.tpCallLrg};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseSSm} {params.tpBaseSml} {params.tpBaseMed} {params.tpBaseLrg}"
384
385
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
422
423
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
460
461
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
498
499
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
536
537
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
574
575
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
638
639
640
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallSSm} {params.tpCallSml} {params.tpCallMed} {params.tpCallLrg};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseSSm} {params.tpBaseSml} {params.tpBaseMed} {params.tpBaseLrg}"
703
704
705
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallSSm} {params.tpCallSml} {params.tpCallMed} {params.tpCallLrg};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseSSm} {params.tpBaseSml} {params.tpBaseMed} {params.tpBaseLrg}"
768
769
770
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallSSm} {params.tpCallSml} {params.tpCallMed} {params.tpCallLrg};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseSSm} {params.tpBaseSml} {params.tpBaseMed} {params.tpBaseLrg}"
833
834
835
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallSSm} {params.tpCallSml} {params.tpCallMed} {params.tpCallLrg};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseSSm} {params.tpBaseSml} {params.tpBaseMed} {params.tpBaseLrg}"
898
899
900
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallSSm} {params.tpCallSml} {params.tpCallMed} {params.tpCallLrg};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseSSm} {params.tpBaseSml} {params.tpBaseMed} {params.tpBaseLrg}"
963
964
965
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallSSm} {params.tpCallSml} {params.tpCallMed} {params.tpCallLrg};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseSSm} {params.tpBaseSml} {params.tpBaseMed} {params.tpBaseLrg}"
1028
1029
1030
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallSSm} {params.tpCallSml} {params.tpCallMed} {params.tpCallLrg};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseSSm} {params.tpBaseSml} {params.tpBaseMed} {params.tpBaseLrg}"
1093
1094
1095
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallSSm} {params.tpCallSml} {params.tpCallMed} {params.tpCallLrg};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseSSm} {params.tpBaseSml} {params.tpBaseMed} {params.tpBaseLrg}"
1158
1159
1160
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallSSm} {params.tpCallSml} {params.tpCallMed} {params.tpCallLrg};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseSSm} {params.tpBaseSml} {params.tpBaseMed} {params.tpBaseLrg}"
1249
1250
1251
1252
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPCallALL} {params.callTPCallSSm} {params.callTPCallSml} {params.callTPCallMed} {params.callTPCallLrg};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPBaseALL} {params.callTPBaseSSm} {params.callTPBaseSml} {params.callTPBaseMed} {params.callTPBaseLrg};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.baseTPCallALL} {params.baseTPCallSSm} {params.baseTPCallSml} {params.baseTPCallMed} {params.baseTPCallLrg}"
1341
1342
1343
1344
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPCallALL} {params.callTPCallSSm} {params.callTPCallSml} {params.callTPCallMed} {params.callTPCallLrg};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPBaseALL} {params.callTPBaseSSm} {params.callTPBaseSml} {params.callTPBaseMed} {params.callTPBaseLrg};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.baseTPCallALL} {params.baseTPCallSSm} {params.baseTPCallSml} {params.baseTPCallMed} {params.baseTPCallLrg}"
1433
1434
1435
1436
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPCallALL} {params.callTPCallSSm} {params.callTPCallSml} {params.callTPCallMed} {params.callTPCallLrg};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPBaseALL} {params.callTPBaseSSm} {params.callTPBaseSml} {params.callTPBaseMed} {params.callTPBaseLrg};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.baseTPCallALL} {params.baseTPCallSSm} {params.baseTPCallSml} {params.baseTPCallMed} {params.baseTPCallLrg}"
1527
1528
1529
1530
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPCallALL} {params.callTPCallSSm} {params.callTPCallSml} {params.callTPCallMed} {params.callTPCallLrg};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPBaseALL} {params.callTPBaseSSm} {params.callTPBaseSml} {params.callTPBaseMed} {params.callTPBaseLrg};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.baseTPCallALL} {params.baseTPCallSSm} {params.baseTPCallSml} {params.baseTPCallMed} {params.baseTPCallLrg}"
19
20
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
40
41
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
61
62
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
82
83
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
103
104
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
152
153
154
155
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPCallALL} {params.callTPCallDEL} {params.callTPCallINS} {params.callTPCallDUP} {params.callTPCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPBaseALL} {params.callTPBaseDEL} {params.callTPBaseINS} {params.callTPBaseDUP} {params.callTPBaseINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.baseTPCallALL} {params.baseTPCallDEL} {params.baseTPCallINS} {params.baseTPCallDUP} {params.baseTPCallINV}"
190
191
192
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallDUP} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseDUP} {params.tpBaseINV}"
214
215
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
237
238
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
260
261
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
283
284
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
306
307
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
329
330
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
361
362
363
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseINV}"
394
395
396
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseINV}"
427
428
429
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseINV}"
460
461
462
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseINV}"
493
494
495
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseINV}"
526
527
528
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseINV}"
563
564
565
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallDUP} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseDUP} {params.tpBaseINV}"
600
601
602
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallDUP} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseDUP} {params.tpBaseINV}"
639
640
641
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallDUP} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseDUP} {params.tpBaseINV}"
683
684
685
686
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPCallALL} {params.callTPCallDEL} {params.callTPCallINS} {params.callTPCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPBaseALL} {params.callTPBaseDEL} {params.callTPBaseINS} {params.callTPBaseINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.baseTPCallALL} {params.baseTPCallDEL} {params.baseTPCallINS} {params.baseTPCallINV}"
728
729
730
731
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPCallALL} {params.callTPCallDEL} {params.callTPCallINS} {params.callTPCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPBaseALL} {params.callTPBaseDEL} {params.callTPBaseINS} {params.callTPBaseINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.baseTPCallALL} {params.baseTPCallDEL} {params.baseTPCallINS} {params.baseTPCallINV}"
773
774
775
776
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPCallALL} {params.callTPCallDEL} {params.callTPCallINS} {params.callTPCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPBaseALL} {params.callTPBaseDEL} {params.callTPBaseINS} {params.callTPBaseINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.baseTPCallALL} {params.baseTPCallDEL} {params.baseTPCallINS} {params.baseTPCallINV}"
820
821
822
823
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPCallALL} {params.callTPCallDEL} {params.callTPCallINS} {params.callTPCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPBaseALL} {params.callTPBaseDEL} {params.callTPBaseINS} {params.callTPBaseINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.baseTPCallALL} {params.baseTPCallDEL} {params.baseTPCallINS} {params.baseTPCallINV}"
19
20
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
40
41
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
61
62
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
82
83
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
103
104
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
152
153
154
155
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPCallALL} {params.callTPCallDEL} {params.callTPCallINS} {params.callTPCallDUP} {params.callTPCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPBaseALL} {params.callTPBaseDEL} {params.callTPBaseINS} {params.callTPBaseDUP} {params.callTPBaseINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.baseTPCallALL} {params.baseTPCallDEL} {params.baseTPCallINS} {params.baseTPCallDUP} {params.baseTPCallINV}"
190
191
192
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallDUP} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseDUP} {params.tpBaseINV}"
214
215
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
237
238
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
260
261
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
283
284
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
306
307
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
329
330
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
361
362
363
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseINV}"
394
395
396
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseINV}"
427
428
429
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseINV}"
460
461
462
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseINV}"
493
494
495
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseINV}"
526
527
528
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseINV}"
563
564
565
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallDUP} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseDUP} {params.tpBaseINV}"
600
601
602
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallDUP} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseDUP} {params.tpBaseINV}"
639
640
641
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallDUP} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseDUP} {params.tpBaseINV}"
683
684
685
686
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPCallALL} {params.callTPCallDEL} {params.callTPCallINS} {params.callTPCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPBaseALL} {params.callTPBaseDEL} {params.callTPBaseINS} {params.callTPBaseINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.baseTPCallALL} {params.baseTPCallDEL} {params.baseTPCallINS} {params.baseTPCallINV}"
728
729
730
731
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPCallALL} {params.callTPCallDEL} {params.callTPCallINS} {params.callTPCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPBaseALL} {params.callTPBaseDEL} {params.callTPBaseINS} {params.callTPBaseINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.baseTPCallALL} {params.baseTPCallDEL} {params.baseTPCallINS} {params.baseTPCallINV}"
773
774
775
776
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPCallALL} {params.callTPCallDEL} {params.callTPCallINS} {params.callTPCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPBaseALL} {params.callTPBaseDEL} {params.callTPBaseINS} {params.callTPBaseINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.baseTPCallALL} {params.baseTPCallDEL} {params.baseTPCallINS} {params.baseTPCallINV}"
820
821
822
823
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPCallALL} {params.callTPCallDEL} {params.callTPCallINS} {params.callTPCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPBaseALL} {params.callTPBaseDEL} {params.callTPBaseINS} {params.callTPBaseINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.baseTPCallALL} {params.baseTPCallDEL} {params.baseTPCallINS} {params.baseTPCallINV}"
19
20
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
40
41
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
61
62
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
82
83
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
103
104
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
152
153
154
155
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPCallALL} {params.callTPCallDEL} {params.callTPCallINS} {params.callTPCallDUP} {params.callTPCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPBaseALL} {params.callTPBaseDEL} {params.callTPBaseINS} {params.callTPBaseDUP} {params.callTPBaseINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.baseTPCallALL} {params.baseTPCallDEL} {params.baseTPCallINS} {params.baseTPCallDUP} {params.baseTPCallINV}"
190
191
192
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallDUP} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseDUP} {params.tpBaseINV}"
214
215
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
237
238
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
260
261
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
283
284
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
306
307
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
329
330
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
361
362
363
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseINV}"
394
395
396
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseINV}"
427
428
429
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseINV}"
460
461
462
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseINV}"
493
494
495
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseINV}"
526
527
528
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseINV}"
563
564
565
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallDUP} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseDUP} {params.tpBaseINV}"
600
601
602
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallDUP} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseDUP} {params.tpBaseINV}"
639
640
641
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallDUP} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseDUP} {params.tpBaseINV}"
683
684
685
686
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPCallALL} {params.callTPCallDEL} {params.callTPCallINS} {params.callTPCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPBaseALL} {params.callTPBaseDEL} {params.callTPBaseINS} {params.callTPBaseINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.baseTPCallALL} {params.baseTPCallDEL} {params.baseTPCallINS} {params.baseTPCallINV}"
728
729
730
731
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPCallALL} {params.callTPCallDEL} {params.callTPCallINS} {params.callTPCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPBaseALL} {params.callTPBaseDEL} {params.callTPBaseINS} {params.callTPBaseINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.baseTPCallALL} {params.baseTPCallDEL} {params.baseTPCallINS} {params.baseTPCallINV}"
773
774
775
776
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPCallALL} {params.callTPCallDEL} {params.callTPCallINS} {params.callTPCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPBaseALL} {params.callTPBaseDEL} {params.callTPBaseINS} {params.callTPBaseINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.baseTPCallALL} {params.baseTPCallDEL} {params.baseTPCallINS} {params.baseTPCallINV}"
820
821
822
823
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPCallALL} {params.callTPCallDEL} {params.callTPCallINS} {params.callTPCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPBaseALL} {params.callTPBaseDEL} {params.callTPBaseINS} {params.callTPBaseINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.baseTPCallALL} {params.baseTPCallDEL} {params.baseTPCallINS} {params.baseTPCallINV}"
19
20
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
40
41
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
61
62
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
82
83
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
103
104
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
158
159
160
161
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPCallALL} {params.callTPCallDEL} {params.callTPCallINS} {params.callTPCallDUP} {params.callTPCallINV} {params.callTPCallBND};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPBaseALL} {params.callTPBaseDEL} {params.callTPBaseINS} {params.callTPBaseDUP} {params.callTPBaseINV} {params.callTPBaseBND};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.baseTPCallALL} {params.baseTPCallDEL} {params.baseTPCallINS} {params.baseTPCallDUP} {params.baseTPCallINV} {params.baseTPCallBND}"
200
201
202
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallDUP} {params.tpCallINV} {params.tpCallBND};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseDUP} {params.tpBaseINV} {params.tpBaseBND}"
226
227
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
251
252
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
276
277
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
301
302
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
326
327
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
351
352
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params}"
383
384
385
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseINV}"
416
417
418
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseINV}"
449
450
451
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseINV}"
482
483
484
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseINV}"
515
516
517
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseINV}"
548
549
550
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseINV}"
589
590
591
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallDUP} {params.tpCallINV} {params.tpCallBND};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseDUP} {params.tpBaseINV} {params.tpBaseBND}"
630
631
632
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallDUP} {params.tpCallINV} {params.tpCallBND};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseDUP} {params.tpBaseINV} {params.tpBaseBND}"
671
672
673
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpCallALL} {params.tpCallDEL} {params.tpCallINS} {params.tpCallDUP} {params.tpCallINV} {params.tpCallBND};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.tpBaseALL} {params.tpBaseDEL} {params.tpBaseINS} {params.tpBaseDUP} {params.tpBaseINV} {params.tpBaseBND}"
715
716
717
718
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPCallALL} {params.callTPCallDEL} {params.callTPCallINS} {params.callTPCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPBaseALL} {params.callTPBaseDEL} {params.callTPBaseINS} {params.callTPBaseINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.baseTPCallALL} {params.baseTPCallDEL} {params.baseTPCallINS} {params.baseTPCallINV}"
760
761
762
763
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPCallALL} {params.callTPCallDEL} {params.callTPCallINS} {params.callTPCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPBaseALL} {params.callTPBaseDEL} {params.callTPBaseINS} {params.callTPBaseINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.baseTPCallALL} {params.baseTPCallDEL} {params.baseTPCallINS} {params.baseTPCallINV}"
805
806
807
808
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPCallALL} {params.callTPCallDEL} {params.callTPCallINS} {params.callTPCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPBaseALL} {params.callTPBaseDEL} {params.callTPBaseINS} {params.callTPBaseINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.baseTPCallALL} {params.baseTPCallDEL} {params.baseTPCallINS} {params.baseTPCallINV}"
852
853
854
855
shell:
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPCallALL} {params.callTPCallDEL} {params.callTPCallINS} {params.callTPCallINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.callTPBaseALL} {params.callTPBaseDEL} {params.callTPBaseINS} {params.callTPBaseINV};\n"
        "bash ./Scripts/combine_vcf_files_basic.sh {params.baseTPCallALL} {params.baseTPCallDEL} {params.baseTPCallINS} {params.baseTPCallINV}"
15
16
shell:
        "bash ./Scripts/aggregate_truvari_tp_files_no_dups.sh {params} {input}"
32
33
shell:
        "bash ./Scripts/aggregate_truvari_tp_files_no_dups.sh {params} {input}"
49
50
shell:
        "bash ./Scripts/aggregate_truvari_tp_files_no_dups.sh {params} {input}"
66
67
shell:
        "bash ./Scripts/aggregate_truvari_tp_files_no_dups.sh {params} {input}"
83
84
shell:
        "bash ./Scripts/aggregate_truvari_tp_files_no_dups.sh {params} {input}"
102
103
shell:
        "bash ./Scripts/aggregate_truvari_tp_files_no_dups.sh {params} {input}"
121
122
shell:
        "bash ./Scripts/aggregate_truvari_tp_files_no_dups.sh {params} {input}"
140
141
shell:
        "bash ./Scripts/aggregate_truvari_tp_files_no_dups.sh {params} {input}"
159
160
shell:
        "bash ./Scripts/aggregate_truvari_tp_files_no_dups.sh {params} {input}"
178
179
shell:
        "bash ./Scripts/aggregate_truvari_tp_files_no_dups.sh {params} {input}"
195
196
shell:
        "bash ./Scripts/aggregate_truvari_tp_files_no_dups.sh {params} {input}"
212
213
shell:
        "bash ./Scripts/aggregate_truvari_tp_files_no_dups.sh {params} {input}"
229
230
shell:
        "bash ./Scripts/aggregate_truvari_tp_files_no_dups.sh {params} {input}"
246
247
shell:
        "bash ./Scripts/aggregate_truvari_tp_files_no_dups.sh {params} {input}"
263
264
shell:
        "bash ./Scripts/aggregate_truvari_tp_files_no_dups.sh {params} {input}"
12
13
14
shell:
        "mkdir -p {params.genomesDir};\n"
        "bash ./Scripts/filter_genome_fasta.sh {input} {params.seqNames} {output}"
27
28
29
shell:
        "mkdir -p {params.genomesDir};\n"
        "bash ./Scripts/filter_genome_fasta.sh {input} {params.seqNames} {output}"
28
29
30
31
32
33
34
shell:
        "bash ./Scripts/summarize_SV_counts.sh W DEL {output} {input.allVCFs} {input.ssmDEL} {input.smlDEL} {input.medDEL} {input.lrgDEL};\n"
        "bash ./Scripts/summarize_SV_counts.sh A INS {output} {input.allVCFs} {input.ssmINS} {input.smlINS} {input.medINS} {input.lrgINS};\n"
        "bash ./Scripts/summarize_SV_counts.sh A DUP {output} {input.allVCFs} {input.ssmDUP} {input.smlDUP} {input.medDUP} {input.lrgDUP};\n"
        "bash ./Scripts/summarize_SV_counts.sh A INV {output} {input.allVCFs} {input.ssmINV} {input.smlINV} {input.medINV} {input.lrgINV};\n"
        "bash ./Scripts/summarize_SV_counts.sh A BND {output} {input.allVCFs};\n"
        "bash ./Scripts/total_SV_counts.sh {output}"
63
64
65
66
67
68
69
shell:
        "bash ./Scripts/summarize_SV_counts.sh W DEL {output} {input.allVCFs} {input.ssmDEL} {input.smlDEL} {input.medDEL} {input.lrgDEL};\n"
        "bash ./Scripts/summarize_SV_counts.sh A INS {output} {input.allVCFs} {input.ssmINS} {input.smlINS} {input.medINS} {input.lrgINS};\n"
        "bash ./Scripts/summarize_SV_counts.sh A DUP {output} {input.allVCFs} {input.ssmDUP} {input.smlDUP} {input.medDUP} {input.lrgDUP};\n"
        "bash ./Scripts/summarize_SV_counts.sh A INV {output} {input.allVCFs} {input.ssmINV} {input.smlINV} {input.medINV} {input.lrgINV};\n"
        "bash ./Scripts/summarize_SV_counts.sh A BND {output} {input.allVCFs};\n"
        "bash ./Scripts/total_SV_counts.sh {output}"
 98
 99
100
101
102
103
104
shell:
        "bash ./Scripts/summarize_SV_counts.sh W DEL {output} {input.allVCFs} {input.ssmDEL} {input.smlDEL} {input.medDEL} {input.lrgDEL};\n"
        "bash ./Scripts/summarize_SV_counts.sh A INS {output} {input.allVCFs} {input.ssmINS} {input.smlINS} {input.medINS} {input.lrgINS};\n"
        "bash ./Scripts/summarize_SV_counts.sh A DUP {output} {input.allVCFs} {input.ssmDUP} {input.smlDUP} {input.medDUP} {input.lrgDUP};\n"
        "bash ./Scripts/summarize_SV_counts.sh A INV {output} {input.allVCFs} {input.ssmINV} {input.smlINV} {input.medINV} {input.lrgINV};\n"
        "bash ./Scripts/summarize_SV_counts.sh A BND {output} {input.allVCFs};\n"
        "bash ./Scripts/total_SV_counts.sh {output}"
133
134
135
136
137
138
139
shell:
        "bash ./Scripts/summarize_SV_counts.sh W DEL {output} {input.allVCFs} {input.ssmDEL} {input.smlDEL} {input.medDEL} {input.lrgDEL};\n"
        "bash ./Scripts/summarize_SV_counts.sh A INS {output} {input.allVCFs} {input.ssmINS} {input.smlINS} {input.medINS} {input.lrgINS};\n"
        "bash ./Scripts/summarize_SV_counts.sh A DUP {output} {input.allVCFs} {input.ssmDUP} {input.smlDUP} {input.medDUP} {input.lrgDUP};\n"
        "bash ./Scripts/summarize_SV_counts.sh A INV {output} {input.allVCFs} {input.ssmINV} {input.smlINV} {input.medINV} {input.lrgINV};\n"
        "bash ./Scripts/summarize_SV_counts.sh A BND {output} {input.allVCFs};\n"
        "bash ./Scripts/total_SV_counts.sh {output}"
163
164
165
166
167
shell:
        "bash ./Scripts/summarize_SV_counts.sh W DEL {output} {input.allVCFs} {input.ssmDEL} {input.smlDEL} {input.medDEL} {input.lrgDEL};\n"
        "bash ./Scripts/summarize_SV_counts.sh A INS {output} {input.allVCFs} {input.ssmINS} {input.smlINS} {input.medINS} {input.lrgINS};\n"
        "bash ./Scripts/summarize_SV_counts.sh A INV {output} {input.allVCFs} {input.ssmINV} {input.smlINV} {input.medINV} {input.lrgINV};\n"
        "bash ./Scripts/total_SV_counts.sh {output}"
181
182
shell:
        "bash ./Scripts/total_intersection_with_pav_counts.sh {output} {input}"
196
197
shell:
        "bash ./Scripts/total_intersection_no_pav_counts.sh {output} {input}"
211
212
shell:
        "bash ./Scripts/total_intersection_no_pav_counts.sh {output} {input}"
226
227
shell:
        "bash ./Scripts/total_intersection_no_pav_counts.sh {output} {input}"
241
242
shell:
        "bash ./Scripts/total_intersection_with_pav_counts.sh {output} {input}"
256
257
shell:
        "bash ./Scripts/total_intersection_with_pav_counts.sh {output} {input}"
271
272
shell:
        "bash ./Scripts/total_intersection_with_pav_counts.sh {output} {input}"
286
287
shell:
        "bash ./Scripts/total_intersection_no_pav_counts.sh {output} {input}"
301
302
shell:
        "bash ./Scripts/total_intersection_no_pav_counts.sh {output} {input}"
316
317
shell:
        "bash ./Scripts/total_intersection_no_pav_counts.sh {output} {input}"
331
332
shell:
        "bash ./Scripts/total_intersection_with_pav_counts.sh {output} {input}"
346
347
shell:
        "bash ./Scripts/total_intersection_with_pav_counts.sh {output} {input}"
361
362
shell:
        "bash ./Scripts/total_intersection_with_pav_counts.sh {output} {input}"
376
377
shell:
        "bash ./Scripts/total_intersection_no_pav_counts.sh {output} {input}"
391
392
shell:
        "bash ./Scripts/total_intersection_no_pav_counts.sh {output} {input}"
406
407
shell:
        "bash ./Scripts/total_intersection_no_pav_counts.sh {output} {input}"
421
422
shell:
        "bash ./Scripts/total_intersection_with_pav_counts.sh {output} {input}"
436
437
shell:
        "bash ./Scripts/total_intersection_with_pav_counts.sh {output} {input}"
451
452
shell:
        "bash ./Scripts/total_intersection_with_pav_counts.sh {output} {input}"
466
467
shell:
        "bash ./Scripts/total_intersection_no_pav_counts.sh {output} {input}"
481
482
shell:
        "bash ./Scripts/total_intersection_with_pav_counts.sh {output} {input}"
496
497
shell:
        "bash ./Scripts/total_intersection_with_pav_counts.sh {output} {input}"
511
512
shell:
        "bash ./Scripts/total_intersection_with_pav_counts.sh {output} {input}"
526
527
shell:
        "bash ./Scripts/total_intersection_no_pav_counts.sh {output} {input}"
541
542
shell:
        "bash ./Scripts/total_intersection_with_pav_counts.sh {output} {input}"
556
557
shell:
        "bash ./Scripts/total_intersection_with_pav_counts.sh {output} {input}"
20
21
22
23
24
shell:
        "mkdir -p {params.svOutDir};\n"
        "cuteSV --min_size {params.minSize} --max_size {params.maxSize} -s {params.minSupp} --max_cluster_bias_INS {params.clusterBias} "
        "--diff_ratio_merging_INS {params.diffRatio} --max_cluster_bias_DEL {params.clusterBias} --diff_ratio_merging_DEL {params.diffRatio} {input.inputFile} "
        "{params.refGenome} {output} {params.svOutDir}"
43
44
45
46
shell:
        "mkdir -p {params.svOutDir};\n"
        "sniffles --threads {threads} --mapq {params.minMAPQ} --minsupport {params.minSupp} --minsvlen {params.minSize} "
        "--reference {params.refGenome} -i {input.inputFile} -v {output}"
66
67
68
69
shell:
        "mkdir -p {params.svOutDir};\n"
        "svim alignment --min_sv_size {params.minSize} --max_sv_size {params.maxSize} --min_mapq {params.minMAPQ}  {params.svOutDir} {input.inputFile} {params.refGenome};"
        "mv {params.svOutDir}/variants.vcf {params.svOutDir}/{params.refName}.svim.ALL.unfiltered.vcf"
12
13
shell:
        "bash Scripts/prefetch_read_files_list.sh {params.readsOutDir} {params.maxFileSize} {input}"
29
30
shell:
        "bash ./Scripts/fasterq_dump_read_files.sh {threads} {params.readsOutDir} {input.readFilesList} {params.maxFileSize}"
13
14
15
16
shell:
        "uniq {input.minTwo} > {output.uniqueTwo};\n"
        "uniq {input.minThree} > {output.uniqueThree};\n"
        "uniq {input.minFour} > {output.uniqueFour}"
30
31
32
33
shell:
        "uniq {input.minTwo} > {output.uniqueTwo};\n"
        "uniq {input.minThree} > {output.uniqueThree};\n"
        "uniq {input.minFour} > {output.uniqueFour}"
47
48
49
50
shell:
        "uniq {input.minTwo} > {output.uniqueTwo};\n"
        "uniq {input.minThree} > {output.uniqueThree};\n"
        "uniq {input.minFour} > {output.uniqueFour}"
64
65
66
67
shell:
        "uniq {input.minTwo} > {output.uniqueTwo};\n"
        "uniq {input.minThree} > {output.uniqueThree};\n"
        "uniq {input.minFour} > {output.uniqueFour}"
81
82
83
84
shell:
        "uniq {input.minTwo} > {output.uniqueTwo};\n"
        "uniq {input.minThree} > {output.uniqueThree};\n"
        "uniq {input.minFour} > {output.uniqueFour}"
32
33
shell:
        "bash ./Scripts/segment_sv_types_w_bcftools.sh {input} {params}"
66
67
shell:
        "bash ./Scripts/segment_sv_types_w_bcftools.sh {input} {params}"
100
101
shell:
        "bash ./Scripts/segment_sv_types_w_bcftools.sh {input} {params}"
134
135
shell:
        "bash ./Scripts/segment_sv_types_w_bcftools.sh {input} {params}"
161
162
shell:
        "bash ./Scripts/segment_pav_w_bcftools.sh {input} {params}"
11
12
shell:
        "samtools sort -m{params} -@ {threads} -o {output} {input}"
22
23
shell:
        "samtools index -@ {threads} {input}"
35
36
shell:
        "samtools sort -m{params} -@ {threads} -o {output} {input}"
46
47
shell:
        "samtools index -@ {threads} {input}"
32
33
34
35
36
37
38
shell:
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DEL {output} W {input.summaryDELSSm} {input.summaryDELSml} {input.summaryDELMed} {input.summaryDELLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INS {output} A {input.summaryINSSSm} {input.summaryINSSml} {input.summaryINSMed} {input.summaryINSLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DUP {output} A {input.summaryDUPSSm} {input.summaryDUPSml} {input.summaryDUPMed} {input.summaryDUPLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INV {output} A {input.summaryINVSSm} {input.summaryINVSml} {input.summaryINVMed} {input.summaryINVLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} BND {output} A {input.summaryBND};\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
71
72
73
74
75
76
77
shell:
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DEL {output} W {input.summaryDELSSm} {input.summaryDELSml} {input.summaryDELMed} {input.summaryDELLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INS {output} A {input.summaryINSSSm} {input.summaryINSSml} {input.summaryINSMed} {input.summaryINSLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DUP {output} A {input.summaryDUPSSm} {input.summaryDUPSml} {input.summaryDUPMed} {input.summaryDUPLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INV {output} A {input.summaryINVSSm} {input.summaryINVSml} {input.summaryINVMed} {input.summaryINVLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} BND {output} A {input.summaryBND};\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
110
111
112
113
114
115
116
shell:
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DEL {output} W {input.summaryDELSSm} {input.summaryDELSml} {input.summaryDELMed} {input.summaryDELLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INS {output} A {input.summaryINSSSm} {input.summaryINSSml} {input.summaryINSMed} {input.summaryINSLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DUP {output} A {input.summaryDUPSSm} {input.summaryDUPSml} {input.summaryDUPMed} {input.summaryDUPLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INV {output} A {input.summaryINVSSm} {input.summaryINVSml} {input.summaryINVMed} {input.summaryINVLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} BND {output} A {input.summaryBND};\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
149
150
151
152
153
154
155
shell:
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DEL {output} W {input.summaryDELSSm} {input.summaryDELSml} {input.summaryDELMed} {input.summaryDELLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INS {output} A {input.summaryINSSSm} {input.summaryINSSml} {input.summaryINSMed} {input.summaryINSLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DUP {output} A {input.summaryDUPSSm} {input.summaryDUPSml} {input.summaryDUPMed} {input.summaryDUPLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INV {output} A {input.summaryINVSSm} {input.summaryINVSml} {input.summaryINVMed} {input.summaryINVLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} BND {output} A {input.summaryBND};\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
188
189
190
191
192
193
194
shell:
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DEL {output} W {input.summaryDELSSm} {input.summaryDELSml} {input.summaryDELMed} {input.summaryDELLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INS {output} A {input.summaryINSSSm} {input.summaryINSSml} {input.summaryINSMed} {input.summaryINSLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DUP {output} A {input.summaryDUPSSm} {input.summaryDUPSml} {input.summaryDUPMed} {input.summaryDUPLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INV {output} A {input.summaryINVSSm} {input.summaryINVSml} {input.summaryINVMed} {input.summaryINVLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} BND {output} A {input.summaryBND};\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
227
228
229
230
231
232
233
shell:
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DEL {output} W {input.summaryDELSSm} {input.summaryDELSml} {input.summaryDELMed} {input.summaryDELLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INS {output} A {input.summaryINSSSm} {input.summaryINSSml} {input.summaryINSMed} {input.summaryINSLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DUP {output} A {input.summaryDUPSSm} {input.summaryDUPSml} {input.summaryDUPMed} {input.summaryDUPLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INV {output} A {input.summaryINVSSm} {input.summaryINVSml} {input.summaryINVMed} {input.summaryINVLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} BND {output} A {input.summaryBND};\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
259
260
261
262
263
shell:
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DEL {output} W {input.summaryDELSSm} {input.summaryDELSml} {input.summaryDELMed} {input.summaryDELLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INS {output} A {input.summaryINSSSm} {input.summaryINSSml} {input.summaryINSMed} {input.summaryINSLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INV {output} A {input.summaryINVSSm} {input.summaryINVSml} {input.summaryINVMed} {input.summaryINVLrg};\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
289
290
291
292
293
shell:
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DEL {output} W {input.summaryDELSSm} {input.summaryDELSml} {input.summaryDELMed} {input.summaryDELLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INS {output} A {input.summaryINSSSm} {input.summaryINSSml} {input.summaryINSMed} {input.summaryINSLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INV {output} A {input.summaryINVSSm} {input.summaryINVSml} {input.summaryINVMed} {input.summaryINVLrg};\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
319
320
321
322
323
shell:
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DEL {output} W {input.summaryDELSSm} {input.summaryDELSml} {input.summaryDELMed} {input.summaryDELLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INS {output} A {input.summaryINSSSm} {input.summaryINSSml} {input.summaryINSMed} {input.summaryINSLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INV {output} A {input.summaryINVSSm} {input.summaryINVSml} {input.summaryINVMed} {input.summaryINVLrg};\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
349
350
351
352
353
shell:
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DEL {output} W {input.summaryDELSSm} {input.summaryDELSml} {input.summaryDELMed} {input.summaryDELLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INS {output} A {input.summaryINSSSm} {input.summaryINSSml} {input.summaryINSMed} {input.summaryINSLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INV {output} A {input.summaryINVSSm} {input.summaryINVSml} {input.summaryINVMed} {input.summaryINVLrg};\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
386
387
388
389
390
391
392
shell:
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DEL {output} W {input.summaryDELSSm} {input.summaryDELSml} {input.summaryDELMed} {input.summaryDELLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INS {output} A {input.summaryINSSSm} {input.summaryINSSml} {input.summaryINSMed} {input.summaryINSLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DUP {output} A {input.summaryDUPSSm} {input.summaryDUPSml} {input.summaryDUPMed} {input.summaryDUPLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INV {output} A {input.summaryINVSSm} {input.summaryINVSml} {input.summaryINVMed} {input.summaryINVLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} BND {output} A {input.summaryBND};\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
418
419
420
421
422
shell:
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DEL {output} W {input.summaryDELSSm} {input.summaryDELSml} {input.summaryDELMed} {input.summaryDELLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INS {output} A {input.summaryINSSSm} {input.summaryINSSml} {input.summaryINSMed} {input.summaryINSLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INV {output} A {input.summaryINVSSm} {input.summaryINVSml} {input.summaryINVMed} {input.summaryINVLrg};\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
448
449
450
451
452
shell:
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DEL {output} W {input.summaryDELSSm} {input.summaryDELSml} {input.summaryDELMed} {input.summaryDELLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INS {output} A {input.summaryINSSSm} {input.summaryINSSml} {input.summaryINSMed} {input.summaryINSLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INV {output} A {input.summaryINVSSm} {input.summaryINVSml} {input.summaryINVMed} {input.summaryINVLrg};\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
478
479
480
481
482
shell:
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DEL {output} W {input.summaryDELSSm} {input.summaryDELSml} {input.summaryDELMed} {input.summaryDELLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INS {output} A {input.summaryINSSSm} {input.summaryINSSml} {input.summaryINSMed} {input.summaryINSLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INV {output} A {input.summaryINVSSm} {input.summaryINVSml} {input.summaryINVMed} {input.summaryINVLrg};\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
508
509
510
511
512
shell:
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DEL {output} W {input.summaryDELSSm} {input.summaryDELSml} {input.summaryDELMed} {input.summaryDELLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INS {output} A {input.summaryINSSSm} {input.summaryINSSml} {input.summaryINSMed} {input.summaryINSLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INV {output} A {input.summaryINVSSm} {input.summaryINVSml} {input.summaryINVMed} {input.summaryINVLrg};\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
538
539
540
541
542
shell:
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DEL {output} W {input.summaryDELSSm} {input.summaryDELSml} {input.summaryDELMed} {input.summaryDELLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INS {output} A {input.summaryINSSSm} {input.summaryINSSml} {input.summaryINSMed} {input.summaryINSLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INV {output} A {input.summaryINVSSm} {input.summaryINVSml} {input.summaryINVMed} {input.summaryINVLrg};\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
568
569
570
571
572
shell:
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DEL {output} W {input.summaryDELSSm} {input.summaryDELSml} {input.summaryDELMed} {input.summaryDELLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INS {output} A {input.summaryINSSSm} {input.summaryINSSml} {input.summaryINSMed} {input.summaryINSLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INV {output} A {input.summaryINVSSm} {input.summaryINVSml} {input.summaryINVMed} {input.summaryINVLrg};\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
605
606
607
608
609
610
611
shell:
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DEL {output} W {input.summaryDELSSm} {input.summaryDELSml} {input.summaryDELMed} {input.summaryDELLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INS {output} A {input.summaryINSSSm} {input.summaryINSSml} {input.summaryINSMed} {input.summaryINSLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DUP {output} A {input.summaryDUPSSm} {input.summaryDUPSml} {input.summaryDUPMed} {input.summaryDUPLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INV {output} A {input.summaryINVSSm} {input.summaryINVSml} {input.summaryINVMed} {input.summaryINVLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} BND {output} A {input.summaryBND};\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
644
645
646
647
648
649
650
shell:
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DEL {output} W {input.summaryDELSSm} {input.summaryDELSml} {input.summaryDELMed} {input.summaryDELLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INS {output} A {input.summaryINSSSm} {input.summaryINSSml} {input.summaryINSMed} {input.summaryINSLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DUP {output} A {input.summaryDUPSSm} {input.summaryDUPSml} {input.summaryDUPMed} {input.summaryDUPLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INV {output} A {input.summaryINVSSm} {input.summaryINVSml} {input.summaryINVMed} {input.summaryINVLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} BND {output} A {input.summaryBND};\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
683
684
685
686
687
688
689
shell:
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DEL {output} W {input.summaryDELSSm} {input.summaryDELSml} {input.summaryDELMed} {input.summaryDELLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INS {output} A {input.summaryINSSSm} {input.summaryINSSml} {input.summaryINSMed} {input.summaryINSLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DUP {output} A {input.summaryDUPSSm} {input.summaryDUPSml} {input.summaryDUPMed} {input.summaryDUPLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INV {output} A {input.summaryINVSSm} {input.summaryINVSml} {input.summaryINVMed} {input.summaryINVLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} BND {output} A {input.summaryBND};\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
722
723
724
725
726
727
728
shell:
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DEL {output} W {input.summaryDELSSm} {input.summaryDELSml} {input.summaryDELMed} {input.summaryDELLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INS {output} A {input.summaryINSSSm} {input.summaryINSSml} {input.summaryINSMed} {input.summaryINSLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DUP {output} A {input.summaryDUPSSm} {input.summaryDUPSml} {input.summaryDUPMed} {input.summaryDUPLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INV {output} A {input.summaryINVSSm} {input.summaryINVSml} {input.summaryINVMed} {input.summaryINVLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} BND {output} A {input.summaryBND};\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
754
755
756
757
758
shell:
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DEL {output} W {input.summaryDELSSm} {input.summaryDELSml} {input.summaryDELMed} {input.summaryDELLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INS {output} A {input.summaryINSSSm} {input.summaryINSSml} {input.summaryINSMed} {input.summaryINSLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INV {output} A {input.summaryINVSSm} {input.summaryINVSml} {input.summaryINVMed} {input.summaryINVLrg};\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
784
785
786
787
788
shell:
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DEL {output} W {input.summaryDELSSm} {input.summaryDELSml} {input.summaryDELMed} {input.summaryDELLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INS {output} A {input.summaryINSSSm} {input.summaryINSSml} {input.summaryINSMed} {input.summaryINSLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INV {output} A {input.summaryINVSSm} {input.summaryINVSml} {input.summaryINVMed} {input.summaryINVLrg};\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
814
815
816
817
818
shell:
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DEL {output} W {input.summaryDELSSm} {input.summaryDELSml} {input.summaryDELMed} {input.summaryDELLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INS {output} A {input.summaryINSSSm} {input.summaryINSSml} {input.summaryINSMed} {input.summaryINSLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INV {output} A {input.summaryINVSSm} {input.summaryINVSml} {input.summaryINVMed} {input.summaryINVLrg};\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
844
845
846
847
848
shell:
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DEL {output} W {input.summaryDELSSm} {input.summaryDELSml} {input.summaryDELMed} {input.summaryDELLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INS {output} A {input.summaryINSSSm} {input.summaryINSSml} {input.summaryINSMed} {input.summaryINSLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INV {output} A {input.summaryINVSSm} {input.summaryINVSml} {input.summaryINVMed} {input.summaryINVLrg};\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
874
875
876
877
878
shell:
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} DEL {output} W {input.summaryDELSSm} {input.summaryDELSml} {input.summaryDELMed} {input.summaryDELLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INS {output} A {input.summaryINSSSm} {input.summaryINSSml} {input.summaryINSMed} {input.summaryINSLrg};\n"
        "bash ./Scripts/calculate_iou_from_truvari_list.sh {params.toolA} {params.toolB} INV {output} A {input.summaryINVSSm} {input.summaryINVSml} {input.summaryINVMed} {input.summaryINVLrg};\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
15
16
17
18
19
20
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
36
37
38
39
40
41
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
57
58
59
60
61
62
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
78
79
80
81
82
83
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
 99
100
101
102
103
104
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
120
121
122
123
124
125
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
140
141
142
143
144
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
159
160
161
162
163
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
178
179
180
181
182
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
197
198
199
200
201
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
217
218
219
220
221
222
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
237
238
239
240
241
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
256
257
258
259
260
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
275
276
277
278
279
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
294
295
296
297
298
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
313
314
315
316
317
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
332
333
334
335
336
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
352
353
354
355
356
357
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
373
374
375
376
377
378
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
394
395
396
397
398
399
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
415
416
417
418
419
420
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
435
436
437
438
439
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
454
455
456
457
458
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
473
474
475
476
477
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
492
493
494
495
496
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
514
515
516
517
518
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
15
16
17
18
19
20
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
36
37
38
39
40
41
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
57
58
59
60
61
62
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
78
79
80
81
82
83
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
 99
100
101
102
103
104
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
120
121
122
123
124
125
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
140
141
142
143
144
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
159
160
161
162
163
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
178
179
180
181
182
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
197
198
199
200
201
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
217
218
219
220
221
222
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
237
238
239
240
241
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
256
257
258
259
260
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
275
276
277
278
279
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
294
295
296
297
298
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
313
314
315
316
317
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
332
333
334
335
336
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
352
353
354
355
356
357
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
373
374
375
376
377
378
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
394
395
396
397
398
399
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
415
416
417
418
419
420
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
435
436
437
438
439
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
454
455
456
457
458
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
473
474
475
476
477
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
492
493
494
495
496
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
514
515
516
517
518
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
15
16
17
18
19
20
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
36
37
38
39
40
41
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
57
58
59
60
61
62
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
78
79
80
81
82
83
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
 99
100
101
102
103
104
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
120
121
122
123
124
125
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
140
141
142
143
144
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
159
160
161
162
163
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
178
179
180
181
182
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
197
198
199
200
201
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
217
218
219
220
221
222
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
237
238
239
240
241
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
256
257
258
259
260
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
275
276
277
278
279
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
294
295
296
297
298
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
313
314
315
316
317
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
332
333
334
335
336
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
352
353
354
355
356
357
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
373
374
375
376
377
378
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
394
395
396
397
398
399
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
415
416
417
418
419
420
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
435
436
437
438
439
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
454
455
456
457
458
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
473
474
475
476
477
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
492
493
494
495
496
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
514
515
516
517
518
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
16
17
18
19
20
21
22
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} BND {input.summaryBND} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
39
40
41
42
43
44
45
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} BND {input.summaryBND} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
62
63
64
65
66
67
68
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} BND {input.summaryBND} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
85
86
87
88
89
90
91
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} BND {input.summaryBND} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
108
109
110
111
112
113
114
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} BND {input.summaryBND} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
131
132
133
134
135
136
137
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} BND {input.summaryBND} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
152
153
154
155
156
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
171
172
173
174
175
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
190
191
192
193
194
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
209
210
211
212
213
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
230
231
232
233
234
235
236
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} BND {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
251
252
253
254
255
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
270
271
272
273
274
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
289
290
291
292
293
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
308
309
310
311
312
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
327
328
329
330
331
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
346
347
348
349
350
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
367
368
369
370
371
372
373
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} BND {input.summaryBND} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
390
391
392
393
394
395
396
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} BND {input.summaryBND} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
413
414
415
416
417
418
419
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} BND {input.summaryBND} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
436
437
438
439
440
441
442
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DUP {input.summaryDUP} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} BND {input.summaryBND} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
457
458
459
460
461
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
476
477
478
479
480
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
495
496
497
498
499
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
514
515
516
517
518
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
536
537
538
539
540
shell:
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} DEL {input.summaryDEL} {output} W;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INS {input.summaryINS} {output} A;\n"
        "bash ./Scripts/calculate_iou_from_truvari_pair.sh {params.toolA} {params.toolB} INV {input.summaryINV} {output} A;\n"
        "bash ./Scripts/calculate_total_from_tsv.sh {output} {params.toolA} {params.toolB}"
35
36
37
38
39
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.snifflesDEL} {input.svimDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.snifflesINS} {input.svimINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_pairs.sh {input.snifflesDUP} {input.svimDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.snifflesINV} {input.svimINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Lrg;\n"
75
76
77
78
79
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVDEL} {input.snifflesDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVINS} {input.snifflesINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_pairs.sh {input.cuteSVDUP} {input.snifflesDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVINV} {input.snifflesINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Lrg;\n"
111
112
113
114
115
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVDEL} {input.svimDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVINS} {input.svimINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_pairs.sh {input.cuteSVDUP} {input.svimDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVINV} {input.svimINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Lrg;\n"
151
152
153
154
155
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVDEL} {input.svimASMDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVINS} {input.svimASMINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_pairs.sh {input.cuteSVDUP} {input.svimASMDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Lrg;\n"
        "bash ./Scripts/compare_breakends_w_truvari_pairs.sh {input.cuteSVINV} {input.svimASMINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Lrg;\n"
191
192
193
194
195
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.snifflesDEL} {input.svimASMDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.snifflesINS} {input.svimASMINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_pairs.sh {input.snifflesDUP} {input.svimASMDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Lrg;\n"
        "bash ./Scripts/compare_breakends_w_truvari_pairs.sh {input.snifflesINV} {input.svimASMINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Lrg;\n"
231
232
233
234
235
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.svimDEL} {input.svimASMDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.svimINS} {input.svimASMINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_pairs.sh {input.svimDUP} {input.svimASMDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Lrg;\n"
        "bash ./Scripts/compare_breakends_w_truvari_pairs.sh {input.svimINV} {input.svimASMINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Lrg;\n"
266
267
268
269
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVDEL} {input.pavDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVINS} {input.pavINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVINV} {input.pavINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Lrg"
300
301
302
303
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.pavDEL} {input.snifflesDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.pavINS} {input.snifflesINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.pavINV} {input.snifflesINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Lrg"
334
335
336
337
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.pavDEL} {input.svimDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.pavINS} {input.svimINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.pavINV} {input.svimINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Lrg"
368
369
370
371
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.pavDEL} {input.svimASMDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.pavINS} {input.svimASMINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Lrg;\n"
        "bash ./Scripts/compare_breakends_w_truvari_pairs.sh {input.pavINV} {input.svimASMINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Lrg"
427
428
429
430
431
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_trips.sh {input.setOneDUP} {params.setTwoDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Lrg;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Lrg;\n"
477
478
479
480
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Lrg;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Lrg"
526
527
528
529
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Lrg;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Lrg"
575
576
577
578
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Lrg;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Lrg"
624
625
626
627
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Lrg"
673
674
675
676
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Lrg;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Lrg"
722
723
724
725
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Lrg;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Lrg"
781
782
783
784
785
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_trips.sh {input.setOneDUP} {params.setTwoDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Lrg;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Lrg;\n"
841
842
843
844
845
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_trips.sh {input.setOneDUP} {params.setTwoDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Lrg;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Lrg;\n"
901
902
903
904
905
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_trips.sh {input.setOneDUP} {params.setTwoDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Lrg;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Lrg;\n"
981
982
983
984
985
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_quads.sh {params.setOneDUP} {params.setTwoDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Lrg;\n"
        "bash ./Scripts/compare_breakends_w_truvari_quads.sh {params.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Lrg;\n"
1046
1047
1048
1049
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Lrg;\n"
        "bash ./Scripts/compare_breakends_w_truvari_quads.sh {params.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Lrg"
1110
1111
1112
1113
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Lrg;\n"
        "bash ./Scripts/compare_breakends_w_truvari_quads.sh {params.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Lrg"
1174
1175
1176
1177
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Lrg;\n"
        "bash ./Scripts/compare_breakends_w_truvari_quads.sh {params.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Lrg"
1238
1239
1240
1241
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Lrg;\n"
        "bash ./Scripts/compare_breakends_w_truvari_quads.sh {params.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Lrg"
1319
1320
1321
1322
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_all.sh {params.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Lrg;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_all.sh {params.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Lrg;\n"
        "bash ./Scripts/compare_breakends_w_truvari_all.sh {params.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Lrg"
35
36
37
38
39
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.snifflesDEL} {input.svimDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.snifflesINS} {input.svimINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_pairs.sh {input.snifflesDUP} {input.svimDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.snifflesINV} {input.svimINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Med;\n"
75
76
77
78
79
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVDEL} {input.snifflesDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVINS} {input.snifflesINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_pairs.sh {input.cuteSVDUP} {input.snifflesDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVINV} {input.snifflesINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Med;\n"
111
112
113
114
115
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVDEL} {input.svimDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVINS} {input.svimINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_pairs.sh {input.cuteSVDUP} {input.svimDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVINV} {input.svimINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Med;\n"
151
152
153
154
155
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVDEL} {input.svimASMDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVINS} {input.svimASMINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_pairs.sh {input.cuteSVDUP} {input.svimASMDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Med;\n"
        "bash ./Scripts/compare_breakends_w_truvari_pairs.sh {input.cuteSVINV} {input.svimASMINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Med;\n"
191
192
193
194
195
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.snifflesDEL} {input.svimASMDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.snifflesINS} {input.svimASMINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_pairs.sh {input.snifflesDUP} {input.svimASMDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Med;\n"
        "bash ./Scripts/compare_breakends_w_truvari_pairs.sh {input.snifflesINV} {input.svimASMINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Med;\n"
231
232
233
234
235
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.svimDEL} {input.svimASMDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.svimINS} {input.svimASMINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_pairs.sh {input.svimDUP} {input.svimASMDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Med;\n"
        "bash ./Scripts/compare_breakends_w_truvari_pairs.sh {input.svimINV} {input.svimASMINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Med;\n"
266
267
268
269
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVDEL} {input.pavDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVINS} {input.pavINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVINV} {input.pavINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Med"
300
301
302
303
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.pavDEL} {input.snifflesDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.pavINS} {input.snifflesINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.pavINV} {input.snifflesINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Med"
334
335
336
337
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.pavDEL} {input.svimDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.pavINS} {input.svimINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.pavINV} {input.svimINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Med"
368
369
370
371
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.pavDEL} {input.svimASMDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.pavINS} {input.svimASMINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Med;\n"
        "bash ./Scripts/compare_breakends_w_truvari_pairs.sh {input.pavINV} {input.svimASMINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Med"
427
428
429
430
431
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_trips.sh {input.setOneDUP} {params.setTwoDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Med;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Med;\n"
477
478
479
480
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Med;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Med"
526
527
528
529
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Med;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Med"
575
576
577
578
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Med;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Med"
624
625
626
627
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Med"
673
674
675
676
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Med;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Med"
722
723
724
725
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Med;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Med"
781
782
783
784
785
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_trips.sh {input.setOneDUP} {params.setTwoDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Med;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Med;\n"
841
842
843
844
845
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_trips.sh {input.setOneDUP} {params.setTwoDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Med;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Med;\n"
901
902
903
904
905
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_trips.sh {input.setOneDUP} {params.setTwoDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Med;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Med;\n"
981
982
983
984
985
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_quads.sh {params.setOneDUP} {params.setTwoDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Med;\n"
        "bash ./Scripts/compare_breakends_w_truvari_quads.sh {params.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Med;\n"
1046
1047
1048
1049
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Med;\n"
        "bash ./Scripts/compare_breakends_w_truvari_quads.sh {params.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Med"
1110
1111
1112
1113
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Med;\n"
        "bash ./Scripts/compare_breakends_w_truvari_quads.sh {params.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Med"
1174
1175
1176
1177
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Med;\n"
        "bash ./Scripts/compare_breakends_w_truvari_quads.sh {params.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Med"
1238
1239
1240
1241
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Med;\n"
        "bash ./Scripts/compare_breakends_w_truvari_quads.sh {params.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Med"
1319
1320
1321
1322
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_all.sh {params.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Med;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_all.sh {params.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Med;\n"
        "bash ./Scripts/compare_breakends_w_truvari_all.sh {params.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Med"
35
36
37
38
39
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.snifflesDEL} {input.svimDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.snifflesINS} {input.svimINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_pairs.sh {input.snifflesDUP} {input.svimDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.snifflesINV} {input.svimINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Sml;\n"
75
76
77
78
79
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVDEL} {input.snifflesDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVINS} {input.snifflesINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_pairs.sh {input.cuteSVDUP} {input.snifflesDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVINV} {input.snifflesINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Sml;\n"
111
112
113
114
115
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVDEL} {input.svimDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVINS} {input.svimINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_pairs.sh {input.cuteSVDUP} {input.svimDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVINV} {input.svimINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Sml;\n"
151
152
153
154
155
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVDEL} {input.svimASMDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVINS} {input.svimASMINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_pairs.sh {input.cuteSVDUP} {input.svimASMDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Sml;\n"
        "bash ./Scripts/compare_breakends_w_truvari_pairs.sh {input.cuteSVINV} {input.svimASMINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Sml;\n"
191
192
193
194
195
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.snifflesDEL} {input.svimASMDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.snifflesINS} {input.svimASMINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_pairs.sh {input.snifflesDUP} {input.svimASMDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Sml;\n"
        "bash ./Scripts/compare_breakends_w_truvari_pairs.sh {input.snifflesINV} {input.svimASMINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Sml;\n"
231
232
233
234
235
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.svimDEL} {input.svimASMDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.svimINS} {input.svimASMINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_pairs.sh {input.svimDUP} {input.svimASMDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Sml;\n"
        "bash ./Scripts/compare_breakends_w_truvari_pairs.sh {input.svimINV} {input.svimASMINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Sml;\n"
266
267
268
269
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVDEL} {input.pavDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVINS} {input.pavINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.cuteSVINV} {input.pavINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Sml"
300
301
302
303
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.pavDEL} {input.snifflesDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.pavINS} {input.snifflesINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.pavINV} {input.snifflesINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Sml"
334
335
336
337
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.pavDEL} {input.svimDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.pavINS} {input.svimINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.pavINV} {input.svimINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Sml"
368
369
370
371
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.pavDEL} {input.svimASMDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_pairs.sh {input.pavINS} {input.svimASMINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Sml;\n"
        "bash ./Scripts/compare_breakends_w_truvari_pairs.sh {input.pavINV} {input.svimASMINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Sml"
427
428
429
430
431
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_trips.sh {input.setOneDUP} {params.setTwoDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Sml;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Sml;\n"
477
478
479
480
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Sml;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Sml"
526
527
528
529
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Sml;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Sml"
575
576
577
578
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Sml;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Sml"
624
625
626
627
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Sml"
673
674
675
676
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Sml;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Sml"
722
723
724
725
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Sml;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Sml"
781
782
783
784
785
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_trips.sh {input.setOneDUP} {params.setTwoDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Sml;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Sml;\n"
841
842
843
844
845
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_trips.sh {input.setOneDUP} {params.setTwoDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Sml;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Sml;\n"
901
902
903
904
905
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_trips.sh {input.setOneDUP} {params.setTwoDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Sml;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Sml;\n"
981
982
983
984
985
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_quads.sh {params.setOneDUP} {params.setTwoDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/Sml;\n"
        "bash ./Scripts/compare_breakends_w_truvari_quads.sh {params.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Sml;\n"
1046
1047
1048
1049
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Sml;\n"
        "bash ./Scripts/compare_breakends_w_truvari_quads.sh {params.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Sml"
1110
1111
1112
1113
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Sml;\n"
        "bash ./Scripts/compare_breakends_w_truvari_quads.sh {params.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Sml"
1174
1175
1176
1177
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Sml;\n"
        "bash ./Scripts/compare_breakends_w_truvari_quads.sh {params.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Sml"
1238
1239
1240
1241
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Sml;\n"
        "bash ./Scripts/compare_breakends_w_truvari_quads.sh {params.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Sml"
1319
1320
1321
1322
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_all.sh {params.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/Sml;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_all.sh {params.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/Sml;\n"
        "bash ./Scripts/compare_breakends_w_truvari_all.sh {params.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/Sml"
492
493
494
495
496
497
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/SSm;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/SSm;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_trips.sh {input.setOneDUP} {params.setTwoDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/SSm;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/SSm;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneBND} {params.setTwoBND} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/BND"
543
544
545
546
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/SSm;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/SSm;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/SSm"
592
593
594
595
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/SSm;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/SSm;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/SSm"
641
642
643
644
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/SSm;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/SSm;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/SSm"
690
691
692
693
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/SSm;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/SSm;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/SSm"
739
740
741
742
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/SSm;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/SSm;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/SSm"
788
789
790
791
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/SSm;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/SSm;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/SSm"
857
858
859
860
861
862
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/SSm;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/SSm;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_trips.sh {input.setOneDUP} {params.setTwoDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/SSm;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/SSm;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneBND} {params.setTwoBND} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/BND"
928
929
930
931
932
933
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/SSm;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/SSm;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_trips.sh {input.setOneDUP} {params.setTwoDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/SSm;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/SSm;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneBND} {params.setTwoBND} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/BND"
 999
1000
1001
1002
1003
1004
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/SSm;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_trips.sh {input.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/SSm;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_ignore_type_trips.sh {input.setOneDUP} {params.setTwoDUP} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DUP/SSm;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/SSm;\n"
        "bash ./Scripts/compare_breakends_w_truvari_trips.sh {input.setOneBND} {params.setTwoBND} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/BND"
1162
1163
1164
1165
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/SSm;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/SSm;\n"
        "bash ./Scripts/compare_breakends_w_truvari_quads.sh {params.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/SSm"
1226
1227
1228
1229
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/SSm;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/SSm;\n"
        "bash ./Scripts/compare_breakends_w_truvari_quads.sh {params.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/SSm"
1290
1291
1292
1293
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/SSm;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/SSm;\n"
        "bash ./Scripts/compare_breakends_w_truvari_quads.sh {params.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/SSm"
1354
1355
1356
1357
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/SSm;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_quads.sh {params.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/SSm;\n"
        "bash ./Scripts/compare_breakends_w_truvari_quads.sh {params.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/SSm"
1435
1436
1437
1438
shell:
        "bash ./Scripts/compare_sv_files_w_truvari_all.sh {params.setOneDEL} {params.setTwoDEL} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/DEL/SSm;\n"
        "bash ./Scripts/compare_sv_files_w_truvari_all.sh {params.setOneINS} {params.setTwoINS} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INS/SSm;\n"
        "bash ./Scripts/compare_breakends_w_truvari_all.sh {params.setOneINV} {params.setTwoINV} {params.refGenome} {params.minSize} {params.maxSize} {params.minOverlap} {params.maxRefDist} {params.truvariDir}/{params.toolsPrefix}/INV/SSm"
15
16
17
shell:
        "bcftools filter -e \'REF ~ \"NNN*\" || ALT ~ \"NNN*\"\' -o {output.removedNs} {input};\n"
        "bcftools filter -e \'INFO/SVLEN<-{params.maxSize} || INFO/SVLEN>{params.maxSize} || INFO/RE<{params.minSupp}\' -o {output.finalFilter} {output.removedNs}"
33
34
35
shell:
        "bcftools filter -e \'REF ~ \"NNN*\" || ALT ~ \"NNN*\"\' -o {output.removedNs} {input};\n"
        "bcftools filter -e \'QUAL<{params.minMAPQ} || INFO/SVLEN<-{params.maxSize} || INFO/SVLEN>{params.maxSize} || INFO/SUPPORT<{params.minSupp}\' -o {output.finalFilter} {output.removedNs}"
51
52
53
shell:
        "bcftools filter -e \'SVTYPE == \"INV\" && ((INFO/END-POS)<-{params.maxSize} || (INFO/END-POS)>{params.maxSize})\' -o {output.filteredInv} {input};\n"
        "bcftools filter -e \'QUAL<{params.minMAPQ} || INFO/SVLEN<-{params.maxSize} || INFO/SVLEN>{params.maxSize} || (INFO/END-POS)<-{params.maxSize} || (INFO/END-POS)>{params.maxSize} || INFO/SUPPORT<{params.minSupp}\' -o {output.finalFilter} {output.filteredInv}"
70
71
72
73
shell:
        "bcftools filter -e \'REF ~ \"NNN*\" || ALT ~ \"NNN*\"\' -o {output.removedNs} {input};\n"
        "bcftools filter -e \'SVTYPE == \"INV\" && ((INFO/END-POS)<-{params.maxSize} || (INFO/END-POS)>{params.maxSize})\' -o {output.filteredInv} {output.removedNs};\n"
        "bcftools filter -e \'INFO/SVLEN<-{params.maxSize} || INFO/SVLEN>{params.maxSize}\' -o {output.finalFilter} {output.filteredInv}"
89
90
91
92
93
94
shell:
        "bcftools filter -e \'INFO/SVTYPE == \"SNV\"\' -o {params.tempFile1} {input};\n"
        "bcftools filter -e \'INFO/SVLEN<{params.minSize} && INFO/SVLEN>-{params.minSize}\' -o {params.tempFile2} {params.tempFile1};\n"
        "bcftools filter -e \'REF ~ \"NNN*\" || ALT ~ \"NNN*\"\' -o {output.removedNs} {params.tempFile2};\n"
        "bcftools filter -e \'INFO/SVLEN<-{params.maxSize} || INFO/SVLEN>{params.maxSize}\' -o {output.finalFilter} {output.removedNs};\n"
        "rm {params.tempFile1} {params.tempFile2}"
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
SV_DIR=$1
shift #remove output file as first arg so remainder can be added to bcftools command (concats all files provided after output)
COMBO_EXTENT=$1
shift

TP_FILEs=""
for FILE in $*
do
	#bcftools sort -o $DIR/tp.sorted.vcf $DIR/tp.vcf
	bgzip -c $FILE > $FILE.gz
	tabix $FILE.gz
	TP_FILES="$FILE.gz $TP_FILES"
done

#Ensure parent directories set up before bcftools execution
mkdir -p $SV_DIR

#Aggregate and sort remaining input files
echo "Combining VCF files for each type to $OUTPUT_FILE!.."
bcftools concat --allow-overlaps --remove-duplicates -o $SV_DIR/tp.$COMBO_EXTENT.vcf -O v `echo $TP_FILES`
bcftools sort -o $SV_DIR/tp.$COMBO_EXTENT.sorted.vcf $SV_DIR/tp.$COMBO_EXTENT.vcf
echo "Job's done!.."
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
THREADS=$1
Z_DROP=$2
PRESET_VAL=$3
REF_GENOME=$4
OUTPUT_FILE=$5
ALIGN_DIR=$6
READS_DIR=$7
READS_LIST=$8

echo "Starting Minimap2 Alignment..."
mkdir -p $ALIGN_DIR

#Extract all target read files' Accessions from provided list file
READ_INPUT_FILES=""
readarray ACCESSIONS_ARRAY < $READS_LIST
for ACCESSION in "${ACCESSIONS_ARRAY[@]}"
do
	READ_INPUT_FILES="${READS_DIR}/$(echo $ACCESSION | tr -d "\n").fastq $READ_INPUT_FILES"
done

minimap2 -t $THREADS --MD -a -z $Z_DROP -x $PRESET_VAL -Y $REF_GENOME $READ_INPUT_FILES > $OUTPUT_FILE
echo "Alignment complete!.."
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
TOOL_A=$1
shift
TOOL_B=$1
shift
SV_TYPE=$1
shift
OUTPUT_FILE=$1
shift
WRITE_MODE=$1 #"W" for overwrite or "A" for append
shift

INTERSECTION_SIZE="0"
TOOL_A_SIZE="0"
TOOL_B_SIZE="0"
TOOL_A_UNIQUE="0"
TOOL_B_UNIQUE="0"

for TRUVARI_SUMMARY in $*
do
	#Confirm existance of Truvari result file before running calculations
	if [ ! -f "$TRUVARI_SUMMARY" ]; then
		echo "Error reading $TRUVARI_SUMMARY! Terminating..."
	fi

	#Get size of each set contained in files (extract the numeric value in truvari summary.txt from a specific line containing an identifier)
	#Shared/Common values
	INTERSECTION_SIZE=$(( INTERSECTION_SIZE+$(cat $TRUVARI_SUMMARY | grep "TP-base.:" | tr -cd [0-9.]) ))

	#Tool A's values
	TOOL_A_SIZE=$(( TOOL_A_SIZE +  $(cat $TRUVARI_SUMMARY | grep "base cnt" | tr -cd [0-9.]) ))
	TOOL_A_UNIQUE=$(( TOOL_A_UNIQUE + $(cat $TRUVARI_SUMMARY | grep "FN.:" | tr -cd [0-9.]) ))

	#Tool B's values
	TOOL_B_SIZE=$(( TOOL_B_SIZE + $(cat $TRUVARI_SUMMARY | grep "call cnt" | tr -cd [0-9.]) ))
	TOOL_B_UNIQUE=$(( TOOL_B_UNIQUE + $(cat $TRUVARI_SUMMARY | grep "FP.:" | tr -cd [0-9.]) ))
done

#Calculate Precision rates for pair of tools based on sums produced
#TOOL_A_PRECISION=$(awk -v INTERSECT="$INTERSECTION_SIZE" -v ASIZE="$TOOL_A_SIZE" 'BEGIN { printf "%.2f", INTERSECT/ASIZE*100 }' </dev/null)
TOOL_A_PRECISION=$(awk -v INTERSECT="$INTERSECTION_SIZE" -v ASIZE="$TOOL_A_SIZE" 'BEGIN { printf "%.2f", (ASIZE>0) ? INTERSECT/ASIZE*100 : 0.0 }' </dev/null)
if [ -z ${TOOL_A_PRECISION} ]; then
	TOOL_A_PRECISION="0.0"
fi

#TOOL_B_PRECISION=$(awk -v INTERSECT="$INTERSECTION_SIZE" -v BSIZE="$TOOL_B_SIZE" 'BEGIN { printf "%.2f", INTERSECT/BSIZE*100 }' </dev/null)
TOOL_B_PRECISION=$(awk -v INTERSECT="$INTERSECTION_SIZE" -v BSIZE="$TOOL_B_SIZE" 'BEGIN { printf "%.2f", (BSIZE>0)? INTERSECT/BSIZE*100 : 0.0 }' </dev/null)
if [ -z ${TOOL_B_PRECISION} ]; then
	TOOL_B_PRECISION="0.0"
fi

#Calculate union size and Jaccard Index value for the provided pair of tools
UNION_SIZE=$((INTERSECTION_SIZE+TOOL_A_UNIQUE+TOOL_B_UNIQUE))
if [ -z ${UNION_SIZE} ]; then
	UNION_SIZE="0.0"
fi

#JACCARD=$(awk -v INTERSECT="$INTERSECTION_SIZE" -v UNION="$UNION_SIZE" 'BEGIN { printf "%.2f", INTERSECT/UNION*100 }' </dev/null)
JACCARD=$(awk -v INTERSECT="$INTERSECTION_SIZE" -v UNION="$UNION_SIZE" 'BEGIN { printf "%.2f",  (UNION>0)? INTERSECT/UNION*100 : 0.0 }' </dev/null)
if [ -z ${JACCARD} ]; then
	JACCARD="0.0"
fi

#Check if script should write/overwrite a file with the new header info (should only be done for first pair of tools compared)
if [ "$WRITE_MODE" = "W" ] || [ "$WRITE_MODE" = "w" ]
then
       #echo "#ToolA    ToolB   Type    Jaccard%        PrecA        PrecB        Union# SizeA   SizeB   UniqueA Intersect       UniqueB" > $OUTPUT_FILE
	echo -e "ToolA\tToolB\tType\tSizeA\tSizeB\tUniqueA\tUniqueB\tIntersect\tUnion\tOverlapA\tOverlapB\tJaccard" > "$OUTPUT_FILE"
fi

#Append the entry for the pair of tools designated by arguments
#echo "$TOOL_A   $TOOL_B $SV_TYPE        ${JACCARD}%        ${TOOL_A_PRECISION}%       ${TOOL_B_PRECISION}%       $UNION_SIZE     $TOOL_A_SIZE    $TOOL_B_SIZE    $TOOL_A_UNIQUE  $INTERSECTION_SIZE      $TOOL_B_UNIQUE" >> "$OUTPUT_FILE"
echo -e "$TOOL_A\t$TOOL_B\t$SV_TYPE\t$TOOL_A_SIZE\t$TOOL_B_SIZE\t$TOOL_A_UNIQUE\t$TOOL_B_UNIQUE\t$INTERSECTION_SIZE\t$UNION_SIZE\t${TOOL_A_PRECISION}%\t${TOOL_B_PRECISION}%\t${JACCARD}%" >> "$OUTPUT_FILE"
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
TOOL_A=$1
TOOL_B=$2
SV_TYPE=$3
TRUVARI_SUMMARY=$4
OUTPUT_FILE=$5
WRITE_MODE=$6 #"W" for overwrite or "A" for append

#Confirm existance of Truvari result file before running calculations
if [ ! -f "$TRUVARI_SUMMARY" ]; then
	echo "Error reading $TRUVARI_SUMMARY! Terminating..."
fi

#Get size of each set contained in files (extract the numeric value in truvari summary.txt from a specific line containing an identifier)
#Shared/Common values
INTERSECTION_SIZE=$(cat $TRUVARI_SUMMARY | grep "TP-base.:" | tr -cd [0-9.])

#Tool A's values
TOOL_A_SIZE=$(cat $TRUVARI_SUMMARY | grep "base cnt" | tr -cd [0-9.])
TOOL_A_PRECISION=$(cat $TRUVARI_SUMMARY | grep "recall" | tr -cd [0-9.])
TOOL_A_PRECISION=$(awk -v APRECISION="$TOOL_A_PRECISION" 'BEGIN { printf "%.2f", APRECISION*100 }' </dev/null)
if [ -z ${TOOL_A_PRECISION} ]; then
        TOOL_A_PRECISION="0.0"
fi
TOOL_A_UNIQUE=$(cat $TRUVARI_SUMMARY | grep "FN.:" | tr -cd [0-9.])

#Tool B's values
TOOL_B_SIZE=$(cat $TRUVARI_SUMMARY | grep "call cnt" | tr -cd [0-9.])
TOOL_B_PRECISION=$(cat $TRUVARI_SUMMARY | grep "precision" | tr -cd [0-9.])
TOOL_B_PRECISION=$(awk -v BPRECISION="$TOOL_B_PRECISION" 'BEGIN { printf "%.2f", BPRECISION*100 }' </dev/null)
if [ -z ${TOOL_B_PRECISION} ]; then
        TOOL_B_PRECISION="0.0"
fi
TOOL_B_UNIQUE=$(cat $TRUVARI_SUMMARY | grep "FP.:" | tr -cd [0-9.])

#Calculate union size and Jaccard Index value for the provided pair of tools
UNION_SIZE=$((INTERSECTION_SIZE+TOOL_A_UNIQUE+TOOL_B_UNIQUE))
if [ -z ${UNION_SIZE} ]; then
	UNION_SIZE="0.0"
fi

#JACCARD=$(awk -v INTERSECT="$INTERSECTION_SIZE" -v UNION="$UNION_SIZE" 'BEGIN { printf "%.2f", INTERSECT/UNION*100 }' </dev/null)
JACCARD=$(awk -v INTERSECT="$INTERSECTION_SIZE" -v UNION="$UNION_SIZE" 'BEGIN { printf "%.2f",  (UNION>0)? INTERSECT/UNION*100 : 0.0 }' </dev/null)
if [ -z ${JACCARD} ]; then
        JACCARD="0.0"
fi

#Check if script should write/overwrite a file with the new header info (should only be done for first pair of tools compared)
if [ "$WRITE_MODE" = "W" ] || [ "$WRITE_MODE" = "w" ]
then
       #echo "#ToolA    ToolB   Type    Jaccard%        PrecA        PrecB        Union# SizeA   SizeB   UniqueA Intersect       UniqueB" > $OUTPUT_FILE
        echo -e "ToolA\tToolB\tType\tSizeA\tSizeB\tUniqueA\tUniqueB\tIntersect\tUnion\tOverlapA\tOverlapB\tJaccard" > "$OUTPUT_FILE"
fi

#Append the entry for the pair of tools designated by arguments
#echo "$TOOL_A   $TOOL_B $SV_TYPE        ${JACCARD}%        ${TOOL_A_PRECISION}%       ${TOOL_B_PRECISION}%       $UNION_SIZE     $TOOL_A_SIZE    $TOOL_B_SIZE    $TOOL_A_UNIQUE  $INTERSECTION_SIZE      $TOOL_B_UNIQUE" >> "$OUTPUT_FILE"
echo -e "$TOOL_A\t$TOOL_B\t$SV_TYPE\t$TOOL_A_SIZE\t$TOOL_B_SIZE\t$TOOL_A_UNIQUE\t$TOOL_B_UNIQUE\t$INTERSECTION_SIZE\t$UNION_SIZE\t${TOOL_A_PRECISION}%\t${TOOL_B_PRECISION}%\t${JACCARD}%" >> "$OUTPUT_FILE"
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
INPUT_FILE=$1
TOOL_A=$2
TOOL_B=$3
SV_TYPE="ALL"

#ToolA   ToolB   Type    SizeA   SizeB   UniqueA UniqueB Intersect       Union   OverlapA        OverlapB        Jaccard

#Get size of each set contained in rows
#Shared/Common values
INTERSECTION_SIZE=$(awk '{sum+=$8;} END{print sum;}' $INPUT_FILE)

#Tool A's values
TOOL_A_SIZE=$(awk '{sum+=$4;} END{print sum;}' $INPUT_FILE)
#TOOL_A_PRECISION=$(awk -v INTERSECT="$INTERSECTION_SIZE" -v ASIZE="$TOOL_A_SIZE" 'BEGIN { printf "%.2f", INTERSECT/ASIZE*100 }' </dev/null)
TOOL_A_PRECISION=$(awk -v INTERSECT="$INTERSECTION_SIZE" -v ASIZE="$TOOL_A_SIZE" 'BEGIN { printf "%.2f", (ASIZE>0) ? INTERSECT/ASIZE*100 : 0.0 }' </dev/null)
if [ -z ${TOOL_A_PRECISION} ]; then
	echo "Precision A missing"
        TOOL_A_PRECISION="0.0"
fi
TOOL_A_UNIQUE=$(awk '{sum+=$6;} END{print sum;}' $INPUT_FILE)

#Tool B's values
TOOL_B_SIZE=$(awk '{sum+=$5;} END{print sum;}' $INPUT_FILE)
#TOOL_B_PRECISION=$(awk -v INTERSECT="$INTERSECTION_SIZE" -v BSIZE="$TOOL_B_SIZE" 'BEGIN { printf "%.2f", INTERSECT/BSIZE*100 }' </dev/null)
TOOL_B_PRECISION=$(awk -v INTERSECT="$INTERSECTION_SIZE" -v BSIZE="$TOOL_B_SIZE" 'BEGIN { printf "%.2f", (BSIZE>0) ? INTERSECT/BSIZE*100 : 0.0 }' </dev/null)
if [ -z ${TOOL_B_PRECISION} ]; then
	echo "Precision B missing"
        TOOL_B_PRECISION="0.0"
fi
TOOL_B_UNIQUE=$(awk '{sum+=$7;} END{print sum;}' $INPUT_FILE)

#Calculate union size and Jaccard Index value for the provided pair of tools
UNION_SIZE=$((INTERSECTION_SIZE+TOOL_A_UNIQUE+TOOL_B_UNIQUE))
if [ -z ${UNION_SIZE} ]; then
	echo "Union missing"
	UNION_SIZE="0.0"
fi

#JACCARD=$(awk -v INTERSECT="$INTERSECTION_SIZE" -v UNION="$UNION_SIZE" 'BEGIN { printf "%.2f", INTERSECT/UNION*100 }' </dev/null)
JACCARD=$(awk -v INTERSECT="$INTERSECTION_SIZE" -v UNION="$UNION_SIZE" 'BEGIN { printf "%.2f", (UNION>0) ? INTERSECT/UNION*100 : 0.0 }' </dev/null)
if [ -z ${JACCARD} ]; then
	echo "Jaccard missing"
        JACCARD="0.0"
fi

#Append the entry for the pair of tools designated by arguments
#echo "$TOOL_A	$TOOL_B	$SV_TYPE	${JACCARD}%	${TOOL_A_PRECISION}%	${TOOL_B_PRECISION}%	$UNION_SIZE	$TOOL_A_SIZE	$TOOL_B_SIZE	$TOOL_A_UNIQUE	$INTERSECTION_SIZE	$TOOL_B_UNIQUE" >> $INPUT_FILE
echo -e "$TOOL_A\t$TOOL_B\t$SV_TYPE\t$TOOL_A_SIZE\t$TOOL_B_SIZE\t$TOOL_A_UNIQUE\t$TOOL_B_UNIQUE\t$INTERSECTION_SIZE\t$UNION_SIZE\t${TOOL_A_PRECISION}%\t${TOOL_B_PRECISION}%\t${JACCARD}%" >> "$INPUT_FILE"
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
TRUVARI_DIR=$1
shift #remove output file as first arg so remainder can be added to bcftools command (concats all files provided after output)

TP_CALL_FILES=""
TP_BASE_FILES=""
FP_FILES=""
FN_FILES=""
for DIR in $*
do
	bcftools sort -o $DIR/tp-call.sorted.vcf $DIR/tp-call.vcf
	bgzip -c $DIR/tp-call.sorted.vcf > $DIR/tp-call.sorted.vcf.gz
	tabix $DIR/tp-call.sorted.vcf.gz
	TP_CALL_FILES="$DIR/tp-call.sorted.vcf.gz $TP_CALL_FILES"

        bcftools sort -o $DIR/tp-base.sorted.vcf $DIR/tp-base.vcf
        bgzip -c $DIR/tp-base.sorted.vcf > $DIR/tp-base.sorted.vcf.gz
        tabix $DIR/tp-base.sorted.vcf.gz
        TP_BASE_FILES="$DIR/tp-base.sorted.vcf.gz $TP_BASE_FILES"

        bcftools sort -o $DIR/fp.sorted.vcf $DIR/fp.vcf
        bgzip -c $DIR/fp.sorted.vcf > $DIR/fp.sorted.vcf.gz
        tabix $DIR/fp.sorted.vcf.gz
        FP_FILES="$DIR/fp.sorted.vcf.gz $FP_FILES"

        bcftools sort -o $DIR/fn.sorted.vcf $DIR/fn.vcf
        bgzip -c $DIR/fn.sorted.vcf > $DIR/fn.sorted.vcf.gz
        tabix $DIR/fn.sorted.vcf.gz
        FN_FILES="$DIR/fn.sorted.vcf.gz $FN_FILES"
done

echo "Combining VCF files for each type to $OUTPUT_FILE!.."
bcftools concat --allow-overlaps -o $TRUVARI_DIR/tp-call.vcf -O v `echo $TP_CALL_FILES`
bcftools sort -o $TRUVARI_DIR/tp-call.sorted.vcf $TRUVARI_DIR/tp-call.vcf
bcftools concat --allow-overlaps -o $TRUVARI_DIR/tp-base.vcf -O v `echo $TP_BASE_FILES`
bcftools sort -o $TRUVARI_DIR/tp-base.sorted.vcf $TRUVARI_DIR/tp-base.vcf
bcftools concat --allow-overlaps -o $TRUVARI_DIR/fp.vcf -O v `echo $FP_FILES`
bcftools sort -o $TRUVARI_DIR/fp.sorted.vcf $TRUVARI_DIR/fp.vcf
bcftools concat --allow-overlaps -o $TRUVARI_DIR/fn.vcf -O v `echo $FN_FILES`
bcftools sort -o $TRUVARI_DIR/fn.sorted.vcf $TRUVARI_DIR/fn.vcf
echo "Job's done!.."
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
TRUVARI_DIR_A=$1
TRUVARI_DIR_B=$2
REF_GENOME=$3
MIN_SIZE=$4
MAX_SIZE=$5
OVERLAP=$6
MAX_REF_DIST=$7
OUTPUT_DIR=$8

#Truvari requires sorted, zipped, and indexed VCF files as input. (Re)Generate files before starting Truvari bench
bcftools sort -o ${TRUVARI_DIR_A}/tp-call.sorted.vcf $TRUVARI_DIR_A/tp-call.vcf
bgzip -c ${TRUVARI_DIR_A}/tp-call.sorted.vcf > ${TRUVARI_DIR_A}/tp-call.sorted.vcf.gz
tabix ${TRUVARI_DIR_A}/tp-call.sorted.vcf.gz

bcftools sort -o ${TRUVARI_DIR_A}/tp-base.sorted.vcf $TRUVARI_DIR_A/tp-base.vcf
bgzip -c ${TRUVARI_DIR_A}/tp-base.sorted.vcf > ${TRUVARI_DIR_A}/tp-base.sorted.vcf.gz
tabix ${TRUVARI_DIR_A}/tp-base.sorted.vcf.gz


bcftools sort -o ${TRUVARI_DIR_B}/FromTPCall/tp-call.sorted.vcf $TRUVARI_DIR_B/FromTPCall/tp-call.vcf
bgzip -c ${TRUVARI_DIR_B}/FromTPCall/tp-call.sorted.vcf > ${TRUVARI_DIR_B}/FromTPCall/tp-call.sorted.vcf.gz
tabix ${TRUVARI_DIR_B}/FromTPCall/tp-call.sorted.vcf.gz

bcftools sort -o ${TRUVARI_DIR_B}/FromTPCall/tp-base.sorted.vcf $TRUVARI_DIR_B/FromTPCall/tp-base.vcf
bgzip -c ${TRUVARI_DIR_B}/FromTPCall/tp-base.sorted.vcf > ${TRUVARI_DIR_B}/FromTPCall/tp-base.sorted.vcf.gz
tabix ${TRUVARI_DIR_B}/FromTPCall/tp-base.sorted.vcf.gz


#bcftools sort -o ${TRUVARI_DIR_B}/FromTPBase/tp-call.sorted.vcf $TRUVARI_DIR_B/FromTPBase/tp-call.vcf
#bgzip -c ${TRUVARI_DIR_B}/FromTPBase/tp-call.sorted.vcf > ${TRUVARI_DIR_B}/FromTPBase/tp-call.sorted.vcf.gz
#tabix ${TRUVARI_DIR_B}/FromTPBase/tp-call.sorted.vcf.gz

#bcftools sort -o ${TRUVARI_DIR_B}/FromTPBase/tp-base.sorted.vcf $TRUVARI_DIR_B/FromTPBase/tp-base.vcf
#bgzip -c ${TRUVARI_DIR_B}/FromTPBase/tp-base.sorted.vcf > ${TRUVARI_DIR_B}/FromTPBase/tp-base.sorted.vcf.gz
#tabix ${TRUVARI_DIR_B}/FromTPBase/tp-base.sorted.vcf.gz

#Ensure parent directories set up before Truvari execution
mkdir -p $OUTPUT_DIR/Call
mkdir -p $OUTPUT_DIR/Base

#Truvari creates the output directory during execution and won't overwrite an existing directory. Remove target $OUTPUT_DIR if it already exists.
if [ -d $OUTPUT_DIR/Call/FromTPCall ]
then
	echo "$OUTPUT_DIR already exists! Removing to allow truvari to run!.. "
	rm -r $OUTPUT_DIR/Call/FromTPCall
fi

if [ -d $OUTPUT_DIR/Call/FromTPBase ]
then
        echo "$OUTPUT_DIR already exists! Removing to allow truvari to run!.. "
        rm -r $OUTPUT_DIR/Call/FromTPBase
fi

if [ -d $OUTPUT_DIR/Base/FromTPCall ]
then
        echo "$OUTPUT_DIR already exists! Removing to allow truvari to run!.. "
        rm -r $OUTPUT_DIR/Base/FromTPCall
fi

if [ -d $OUTPUT_DIR/Base/FromTPBase ]
then
        echo "$OUTPUT_DIR already exists! Removing to allow truvari to run!.. "
        rm -r $OUTPUT_DIR/Base/FromTPBase
fi

#Execute Truvari Bench to compare the VCF files provided in the script's arguments
truvari bench -o $OUTPUT_DIR/Call/FromTPCall -f $REF_GENOME -b ${TRUVARI_DIR_A}/tp-call.sorted.vcf.gz -c ${TRUVARI_DIR_B}/FromTPCall/tp-call.sorted.vcf.gz -s 0 -S 0 --sizemax $MAX_SIZE -r $MAX_REF_DIST -p 0 -P $OVERLAP -C $MAX_REF_DIST
truvari bench -o $OUTPUT_DIR/Call/FromTPBase -f $REF_GENOME -b ${TRUVARI_DIR_A}/tp-call.sorted.vcf.gz -c ${TRUVARI_DIR_B}/FromTPCall/tp-base.sorted.vcf.gz -s 0 -S 0 --sizemax $MAX_SIZE -r $MAX_REF_DIST -p 0 -P $OVERLAP -C $MAX_REF_DIST
truvari bench -o $OUTPUT_DIR/Base/FromTPCall -f $REF_GENOME -b ${TRUVARI_DIR_A}/tp-base.sorted.vcf.gz -c ${TRUVARI_DIR_B}/FromTPCall/tp-call.sorted.vcf.gz -s 0 -S 0 --sizemax $MAX_SIZE -r $MAX_REF_DIST -p 0 -P $OVERLAP -C $MAX_REF_DIST
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
SV_FILE_A=$1
SV_FILE_B=$2
REF_GENOME=$3
MIN_SIZE=$4
MAX_SIZE=$5
OVERLAP=$6
MAX_REF_DIST=$7
OUTPUT_DIR=$8

#Truvari requires sorted, zipped, and indexed VCF files as input. (Re)Generate files before starting Truvari bench
bcftools sort -o ${SV_FILE_A}.sorted $SV_FILE_A
bgzip -c ${SV_FILE_A}.sorted > ${SV_FILE_A}.gz
tabix ${SV_FILE_A}.gz

bcftools sort -o ${SV_FILE_B}.sorted $SV_FILE_B
bgzip -c ${SV_FILE_B}.sorted > ${SV_FILE_B}.gz
tabix ${SV_FILE_B}.gz

#Truvari creates the output directory during execution and won't overwrite an existing directory. Remove target $OUTPUT_DIR if it already exists.
mkdir -p $OUTPUT_DIR
if [ -d $OUTPUT_DIR ]
then
	echo "$OUTPUT_DIR already exists! Removing to allow truvari to run!.. "
	rm -r $OUTPUT_DIR
fi

#Execute Truvari Bench to compare the VCF files provided in the script's arguments
truvari bench -o $OUTPUT_DIR -f $REF_GENOME -b ${SV_FILE_A}.gz -c ${SV_FILE_B}.gz -s 0 -S 0 --sizemax $MAX_SIZE -r $MAX_REF_DIST -p 0 -P $OVERLAP -C $MAX_REF_DIST
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
TRUVARI_DIR_A=$1
TRUVARI_DIR_B=$2
REF_GENOME=$3
MIN_SIZE=$4
MAX_SIZE=$5
OVERLAP=$6
MAX_REF_DIST=$7
OUTPUT_DIR=$8

#Truvari requires sorted, zipped, and indexed VCF files as input. (Re)Generate files before starting Truvari bench
bcftools sort -o ${TRUVARI_DIR_A}/tp-call.sorted.vcf $TRUVARI_DIR_A/tp-call.vcf
bgzip -c ${TRUVARI_DIR_A}/tp-call.sorted.vcf > ${TRUVARI_DIR_A}/tp-call.sorted.vcf.gz
tabix ${TRUVARI_DIR_A}/tp-call.sorted.vcf.gz

bcftools sort -o ${TRUVARI_DIR_A}/tp-base.sorted.vcf $TRUVARI_DIR_A/tp-base.vcf
bgzip -c ${TRUVARI_DIR_A}/tp-base.sorted.vcf > ${TRUVARI_DIR_A}/tp-base.sorted.vcf.gz
tabix ${TRUVARI_DIR_A}/tp-base.sorted.vcf.gz

bcftools sort -o ${TRUVARI_DIR_B}/tp-call.sorted.vcf $TRUVARI_DIR_B/tp-call.vcf
bgzip -c ${TRUVARI_DIR_B}/tp-call.sorted.vcf > ${TRUVARI_DIR_B}/tp-call.sorted.vcf.gz
tabix ${TRUVARI_DIR_B}/tp-call.sorted.vcf.gz

bcftools sort -o ${TRUVARI_DIR_B}/tp-base.sorted.vcf $TRUVARI_DIR_B/tp-base.vcf
bgzip -c ${TRUVARI_DIR_B}/tp-base.sorted.vcf > ${TRUVARI_DIR_B}/tp-base.sorted.vcf.gz
tabix ${TRUVARI_DIR_B}/tp-base.sorted.vcf.gz

#Ensure required parent directories are set up before execution
mkdir -p $OUTPUT_DIR/Call
mkdir -p $OUTPUT_DIR/Base

#Truvari creates the output directory during execution and won't overwrite an existing directory. Remove target $OUTPUT_DIR if it already exists.
if [ -d $OUTPUT_DIR/Call/FromTPCall ]
then
	echo "Output Dir already exists! Removing to allow truvari to run!.. "
	rm -r $OUTPUT_DIR/Call/FromTPCall
fi

if [ -d $OUTPUT_DIR/Call/FromTPBase ]
then
        echo "Output Dir already exists! Removing to allow truvari to run!.. "
        rm -r $OUTPUT_DIR/Call/FromTPBase
fi

if [ -d $OUTPUT_DIR/Base/FromTPCall ]
then
        echo "Output Dir already exists! Removing to allow truvari to run!.. "
        rm -r $OUTPUT_DIR/Base/FromTPCall
fi

if [ -d $OUTPUT_DIR/Base/FromTPBase ]
then
        echo "Output Dir already exists! Removing to allow truvari to run!.. "
        rm -r $OUTPUT_DIR/Base/FromTPBase
fi

#Execute Truvari Bench to compare the VCF files provided in the script's arguments
truvari bench -o $OUTPUT_DIR/Call/FromTPCall -f $REF_GENOME -b ${TRUVARI_DIR_A}/tp-call.sorted.vcf.gz -c ${TRUVARI_DIR_B}/tp-call.sorted.vcf.gz -s 0 -S 0 --sizemax $MAX_SIZE -r $MAX_REF_DIST -p 0 -P $OVERLAP -C $MAX_REF_DIST
truvari bench -o $OUTPUT_DIR/Call/FromTPBase -f $REF_GENOME -b ${TRUVARI_DIR_A}/tp-call.sorted.vcf.gz -c ${TRUVARI_DIR_B}/tp-base.sorted.vcf.gz -s 0 -S 0 --sizemax $MAX_SIZE -r $MAX_REF_DIST -p 0 -P $OVERLAP -C $MAX_REF_DIST
truvari bench -o $OUTPUT_DIR/Base/FromTPCall -f $REF_GENOME -b ${TRUVARI_DIR_A}/tp-base.sorted.vcf.gz -c ${TRUVARI_DIR_B}/tp-call.sorted.vcf.gz -s 0 -S 0 --sizemax $MAX_SIZE -r $MAX_REF_DIST -p 0 -P $OVERLAP -C $MAX_REF_DIST
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
SV_FILE_A=$1
TRUVARI_DIR=$2
REF_GENOME=$3
MIN_SIZE=$4
MAX_SIZE=$5
OVERLAP=$6
MAX_REF_DIST=$7
OUTPUT_DIR=$8

#Truvari requires sorted, zipped, and indexed VCF files as input. (Re)Generate files before starting Truvari bench
bcftools sort -o ${SV_FILE_A}.sorted $SV_FILE_A
bgzip -c ${SV_FILE_A}.sorted > ${SV_FILE_A}.gz
tabix ${SV_FILE_A}.gz

bcftools sort -o ${TRUVARI_DIR}/tp-call.sorted.vcf $TRUVARI_DIR/tp-call.vcf
bgzip -c ${TRUVARI_DIR}/tp-call.sorted.vcf > ${TRUVARI_DIR}/tp-call.sorted.vcf.gz
tabix ${TRUVARI_DIR}/tp-call.sorted.vcf.gz

bcftools sort -o ${TRUVARI_DIR}/tp-base.sorted.vcf $TRUVARI_DIR/tp-base.vcf
bgzip -c ${TRUVARI_DIR}/tp-base.sorted.vcf > ${TRUVARI_DIR}/tp-base.sorted.vcf.gz
tabix ${TRUVARI_DIR}/tp-base.sorted.vcf.gz

#Ensure Parent directories are set up before Truvari execution
mkdir -p $OUTPUT_DIR

#Truvari creates the output directory during execution and won't overwrite an existing directory. Remove target $OUTPUT_DIR if it already exists.
if [ -d $OUTPUT_DIR/FromTPCall ]
then
	echo "Output Dir already exists! Removing to allow truvari to run!.. "
	rm -r $OUTPUT_DIR/FromTPCall
fi

if [ -d $OUTPUT_DIR/FromTPBase ]
then
        echo "Output Dir already exists! Removing to allow truvari to run!.. "
        rm -r $OUTPUT_DIR/FromTPBase
fi

#Execute Truvari Bench to compare the VCF files provided in the script's arguments
truvari bench -o $OUTPUT_DIR/FromTPCall -f $REF_GENOME -b ${SV_FILE_A}.gz -c ${TRUVARI_DIR}/tp-call.sorted.vcf.gz -s 0 -S 0 --sizemax $MAX_SIZE -r $MAX_REF_DIST -p 0 -P $OVERLAP -C $MAX_REF_DIST
truvari bench -o $OUTPUT_DIR/FromTPBase -f $REF_GENOME -b ${SV_FILE_A}.gz -c ${TRUVARI_DIR}/tp-base.sorted.vcf.gz -s 0 -S 0 --sizemax $MAX_SIZE -r $MAX_REF_DIST -p 0 -P $OVERLAP -C $MAX_REF_DIST
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
TRUVARI_DIR_A=$1
TRUVARI_DIR_B=$2
REF_GENOME=$3
MIN_SIZE=$4
MAX_SIZE=$5
OVERLAP=$6
MAX_REF_DIST=$7
OUTPUT_DIR=$8

#Truvari requires sorted, zipped, and indexed VCF files as input. (Re)Generate files before starting Truvari bench
bcftools sort -o ${TRUVARI_DIR_A}/tp-call.sorted.vcf $TRUVARI_DIR_A/tp-call.vcf
bgzip -c ${TRUVARI_DIR_A}/tp-call.sorted.vcf > ${TRUVARI_DIR_A}/tp-call.sorted.vcf.gz
tabix ${TRUVARI_DIR_A}/tp-call.sorted.vcf.gz

bcftools sort -o ${TRUVARI_DIR_A}/tp-base.sorted.vcf $TRUVARI_DIR_A/tp-base.vcf
bgzip -c ${TRUVARI_DIR_A}/tp-base.sorted.vcf > ${TRUVARI_DIR_A}/tp-base.sorted.vcf.gz
tabix ${TRUVARI_DIR_A}/tp-base.sorted.vcf.gz


bcftools sort -o ${TRUVARI_DIR_B}/FromTPCall/tp-call.sorted.vcf $TRUVARI_DIR_B/FromTPCall/tp-call.vcf
bgzip -c ${TRUVARI_DIR_B}/FromTPCall/tp-call.sorted.vcf > ${TRUVARI_DIR_B}/FromTPCall/tp-call.sorted.vcf.gz
tabix ${TRUVARI_DIR_B}/FromTPCall/tp-call.sorted.vcf.gz

bcftools sort -o ${TRUVARI_DIR_B}/FromTPCall/tp-base.sorted.vcf $TRUVARI_DIR_B/FromTPCall/tp-base.vcf
bgzip -c ${TRUVARI_DIR_B}/FromTPCall/tp-base.sorted.vcf > ${TRUVARI_DIR_B}/FromTPCall/tp-base.sorted.vcf.gz
tabix ${TRUVARI_DIR_B}/FromTPCall/tp-base.sorted.vcf.gz


#bcftools sort -o ${TRUVARI_DIR_B}/FromTPBase/tp-call.sorted.vcf $TRUVARI_DIR_B/FromTPBase/tp-call.vcf
#bgzip -c ${TRUVARI_DIR_B}/FromTPBase/tp-call.sorted.vcf > ${TRUVARI_DIR_B}/FromTPBase/tp-call.sorted.vcf.gz
#tabix ${TRUVARI_DIR_B}/FromTPBase/tp-call.sorted.vcf.gz

#bcftools sort -o ${TRUVARI_DIR_B}/FromTPBase/tp-base.sorted.vcf $TRUVARI_DIR_B/FromTPBase/tp-base.vcf
#bgzip -c ${TRUVARI_DIR_B}/FromTPBase/tp-base.sorted.vcf > ${TRUVARI_DIR_B}/FromTPBase/tp-base.sorted.vcf.gz
#tabix ${TRUVARI_DIR_B}/FromTPBase/tp-base.sorted.vcf.gz

#Ensure parent directories set up before Truvari execution
mkdir -p $OUTPUT_DIR/Call
mkdir -p $OUTPUT_DIR/Base

#Truvari creates the output directory during execution and won't overwrite an existing directory. Remove target $OUTPUT_DIR if it already exists.
if [ -d $OUTPUT_DIR/Call/FromTPCall ]
then
	echo "$OUTPUT_DIR already exists! Removing to allow truvari to run!.. "
	rm -r $OUTPUT_DIR/Call/FromTPCall
fi

if [ -d $OUTPUT_DIR/Call/FromTPBase ]
then
        echo "$OUTPUT_DIR already exists! Removing to allow truvari to run!.. "
        rm -r $OUTPUT_DIR/Call/FromTPBase
fi

if [ -d $OUTPUT_DIR/Base/FromTPCall ]
then
        echo "$OUTPUT_DIR already exists! Removing to allow truvari to run!.. "
        rm -r $OUTPUT_DIR/Base/FromTPCall
fi

if [ -d $OUTPUT_DIR/Base/FromTPBase ]
then
        echo "$OUTPUT_DIR already exists! Removing to allow truvari to run!.. "
        rm -r $OUTPUT_DIR/Base/FromTPBase
fi

#Execute Truvari Bench to compare the VCF files provided in the script's arguments
truvari bench -o $OUTPUT_DIR/Call/FromTPCall -f $REF_GENOME -b ${TRUVARI_DIR_A}/tp-call.sorted.vcf.gz -c ${TRUVARI_DIR_B}/FromTPCall/tp-call.sorted.vcf.gz -s $MIN_SIZE --sizemax $MAX_SIZE -r $MAX_REF_DIST -p 0 -P $OVERLAP -C $MAX_REF_DIST
truvari bench -o $OUTPUT_DIR/Call/FromTPBase -f $REF_GENOME -b ${TRUVARI_DIR_A}/tp-call.sorted.vcf.gz -c ${TRUVARI_DIR_B}/FromTPCall/tp-base.sorted.vcf.gz -s $MIN_SIZE --sizemax $MAX_SIZE -r $MAX_REF_DIST -p 0 -P $OVERLAP -C $MAX_REF_DIST
truvari bench -o $OUTPUT_DIR/Base/FromTPCall -f $REF_GENOME -b ${TRUVARI_DIR_A}/tp-base.sorted.vcf.gz -c ${TRUVARI_DIR_B}/FromTPCall/tp-call.sorted.vcf.gz -s $MIN_SIZE --sizemax $MAX_SIZE -r $MAX_REF_DIST -p 0 -P $OVERLAP -C $MAX_REF_DIST
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
SV_FILE_A=$1
SV_FILE_B=$2
REF_GENOME=$3
MIN_SIZE=$4
MAX_SIZE=$5
OVERLAP=$6
MAX_REF_DIST=$7
OUTPUT_DIR=$8

#Truvari requires sorted, zipped, and indexed VCF files as input. (Re)Generate files before starting Truvari bench
bcftools sort -o ${SV_FILE_A}.sorted $SV_FILE_A
bgzip -c ${SV_FILE_A}.sorted > ${SV_FILE_A}.gz
tabix ${SV_FILE_A}.gz

bcftools sort -o ${SV_FILE_B}.sorted $SV_FILE_B
bgzip -c ${SV_FILE_B}.sorted > ${SV_FILE_B}.gz
tabix ${SV_FILE_B}.gz

#Ensure parent directories set up before Truvari execution
mkdir -p $OUTPUT_DIR

#Truvari creates the output directory during execution and won't overwrite an existing directory. Remove target $OUTPUT_DIR if it already exists.
if [ -d $OUTPUT_DIR ]
then
	echo "$OUTPUT_DIR already exists! Removing to allow truvari to run!.. "
	rm -r $OUTPUT_DIR
fi

#Execute Truvari Bench to compare the VCF files provided in the script's arguments
truvari bench --typeignore -o $OUTPUT_DIR -f $REF_GENOME -b ${SV_FILE_A}.gz -c ${SV_FILE_B}.gz -s $MIN_SIZE --sizemax $MAX_SIZE -r $MAX_REF_DIST -p 0 -P $OVERLAP -C $MAX_REF_DIST
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
TRUVARI_DIR_A=$1
TRUVARI_DIR_B=$2
REF_GENOME=$3
MIN_SIZE=$4
MAX_SIZE=$5
OVERLAP=$6
MAX_REF_DIST=$7
OUTPUT_DIR=$8

#Truvari requires sorted, zipped, and indexed VCF files as input. (Re)Generate files before starting Truvari bench
bcftools sort -o ${TRUVARI_DIR_A}/tp-call.sorted.vcf $TRUVARI_DIR_A/tp-call.vcf
bgzip -c ${TRUVARI_DIR_A}/tp-call.sorted.vcf > ${TRUVARI_DIR_A}/tp-call.sorted.vcf.gz
tabix ${TRUVARI_DIR_A}/tp-call.sorted.vcf.gz

bcftools sort -o ${TRUVARI_DIR_A}/tp-base.sorted.vcf $TRUVARI_DIR_A/tp-base.vcf
bgzip -c ${TRUVARI_DIR_A}/tp-base.sorted.vcf > ${TRUVARI_DIR_A}/tp-base.sorted.vcf.gz
tabix ${TRUVARI_DIR_A}/tp-base.sorted.vcf.gz

bcftools sort -o ${TRUVARI_DIR_B}/tp-call.sorted.vcf $TRUVARI_DIR_B/tp-call.vcf
bgzip -c ${TRUVARI_DIR_B}/tp-call.sorted.vcf > ${TRUVARI_DIR_B}/tp-call.sorted.vcf.gz
tabix ${TRUVARI_DIR_B}/tp-call.sorted.vcf.gz

bcftools sort -o ${TRUVARI_DIR_B}/tp-base.sorted.vcf $TRUVARI_DIR_B/tp-base.vcf
bgzip -c ${TRUVARI_DIR_B}/tp-base.sorted.vcf > ${TRUVARI_DIR_B}/tp-base.sorted.vcf.gz
tabix ${TRUVARI_DIR_B}/tp-base.sorted.vcf.gz

#Ensure parent directories set up before Truvari execution
mkdir -p $OUTPUT_DIR/Call
mkdir -p $OUTPUT_DIR/Base

#Truvari creates the output directory during execution and won't overwrite an existing directory. Remove target $OUTPUT_DIR if it already exists.
if [ -d $OUTPUT_DIR/Call/FromTPCall ]
then
	echo "$OUTPUT_DIR already exists! Removing to allow truvari to run!.. "
	rm -r $OUTPUT_DIR/Call/FromTPCall
fi

if [ -d $OUTPUT_DIR/Call/FromTPBase ]
then
        echo "$OUTPUT_DIR already exists! Removing to allow truvari to run!.. "
        rm -r $OUTPUT_DIR/Call/FromTPBase
fi

if [ -d $OUTPUT_DIR/Base/FromTPCall ]
then
        echo "$OUTPUT_DIR already exists! Removing to allow truvari to run!.. "
        rm -r $OUTPUT_DIR/Base/FromTPCall
fi

if [ -d $OUTPUT_DIR/Base/FromTPBase ]
then
        echo "$OUTPUT_DIR already exists! Removing to allow truvari to run!.. "
        rm -r $OUTPUT_DIR/Base/FromTPBase
fi

#Execute Truvari Bench to compare the VCF files provided in the script's arguments
truvari bench --typeignore -o $OUTPUT_DIR/Call/FromTPCall -f $REF_GENOME -b ${TRUVARI_DIR_A}/tp-call.sorted.vcf.gz -c ${TRUVARI_DIR_B}/tp-call.sorted.vcf.gz -s $MIN_SIZE --sizemax $MAX_SIZE -r $MAX_REF_DIST -p 0 -P $OVERLAP -C $MAX_REF_DIST
truvari bench --typeignore -o $OUTPUT_DIR/Call/FromTPBase -f $REF_GENOME -b ${TRUVARI_DIR_A}/tp-call.sorted.vcf.gz -c ${TRUVARI_DIR_B}/tp-base.sorted.vcf.gz -s $MIN_SIZE --sizemax $MAX_SIZE -r $MAX_REF_DIST -p 0 -P $OVERLAP -C $MAX_REF_DIST
truvari bench --typeignore -o $OUTPUT_DIR/Base/FromTPCall -f $REF_GENOME -b ${TRUVARI_DIR_A}/tp-base.sorted.vcf.gz -c ${TRUVARI_DIR_B}/tp-call.sorted.vcf.gz -s $MIN_SIZE --sizemax $MAX_SIZE -r $MAX_REF_DIST -p 0 -P $OVERLAP -C $MAX_REF_DIST
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
SV_FILE_A=$1
TRUVARI_DIR=$2
REF_GENOME=$3
MIN_SIZE=$4
MAX_SIZE=$5
OVERLAP=$6
MAX_REF_DIST=$7
OUTPUT_DIR=$8

#Truvari requires sorted, zipped, and indexed VCF files as input. (Re)Generate files before starting Truvari bench
bcftools sort -o ${SV_FILE_A}.sorted $SV_FILE_A
bgzip -c ${SV_FILE_A}.sorted > ${SV_FILE_A}.gz
tabix ${SV_FILE_A}.gz

bcftools sort -o ${TRUVARI_DIR}/tp-call.sorted.vcf $TRUVARI_DIR/tp-call.vcf
bgzip -c ${TRUVARI_DIR}/tp-call.sorted.vcf > ${TRUVARI_DIR}/tp-call.sorted.vcf.gz
tabix ${TRUVARI_DIR}/tp-call.sorted.vcf.gz

bcftools sort -o ${TRUVARI_DIR}/tp-base.sorted.vcf $TRUVARI_DIR/tp-base.vcf
bgzip -c ${TRUVARI_DIR}/tp-base.sorted.vcf > ${TRUVARI_DIR}/tp-base.sorted.vcf.gz
tabix ${TRUVARI_DIR}/tp-base.sorted.vcf.gz

#Ensure parent directories set up before Truvari execution
mkdir -p $OUTPUT_DIR

#Truvari creates the output directory during execution and won't overwrite an existing directory. Remove target $OUTPUT_DIR if it already exists.
if [ -d $OUTPUT_DIR/FromTPCall ]
then
	echo "$OUTPUT_DIR already exists! Removing to allow truvari to run!.. "
	rm -r $OUTPUT_DIR/FromTPCall
fi

if [ -d $OUTPUT_DIR/FromTPBase ]
then
        echo "$OUTPUT_DIR already exists! Removing to allow truvari to run!.. "
        rm -r $OUTPUT_DIR/FromTPBase
fi

#Execute Truvari Bench to compare the VCF files provided in the script's arguments
truvari bench --typeignore -o $OUTPUT_DIR/FromTPCall -f $REF_GENOME -b ${SV_FILE_A}.gz -c ${TRUVARI_DIR}/tp-call.sorted.vcf.gz -s $MIN_SIZE --sizemax $MAX_SIZE -r $MAX_REF_DIST -p 0 -P $OVERLAP -C $MAX_REF_DIST
truvari bench --typeignore -o $OUTPUT_DIR/FromTPBase -f $REF_GENOME -b ${SV_FILE_A}.gz -c ${TRUVARI_DIR}/tp-base.sorted.vcf.gz -s $MIN_SIZE --sizemax $MAX_SIZE -r $MAX_REF_DIST -p 0 -P $OVERLAP -C $MAX_REF_DIST
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
SV_FILE_A=$1
SV_FILE_B=$2
REF_GENOME=$3
MIN_SIZE=$4
MAX_SIZE=$5
OVERLAP=$6
MAX_REF_DIST=$7
OUTPUT_DIR=$8

#Truvari requires sorted, zipped, and indexed VCF files as input. (Re)Generate files before starting Truvari bench
bcftools sort -o ${SV_FILE_A}.sorted $SV_FILE_A
bgzip -c ${SV_FILE_A}.sorted > ${SV_FILE_A}.gz
tabix ${SV_FILE_A}.gz

bcftools sort -o ${SV_FILE_B}.sorted $SV_FILE_B
bgzip -c ${SV_FILE_B}.sorted > ${SV_FILE_B}.gz
tabix ${SV_FILE_B}.gz

#Ensure parent directories set up before Truvari execution
mkdir -p $OUTPUT_DIR

#Truvari creates the output directory during execution and won't overwrite an existing directory. Remove target $OUTPUT_DIR if it already exists.
if [ -d $OUTPUT_DIR ]
then
	echo "$OUTPUT_DIR already exists! Removing to allow truvari to run!.. "
	rm -r $OUTPUT_DIR
fi

#Execute Truvari Bench to compare the VCF files provided in the script's arguments
truvari bench -o $OUTPUT_DIR -f $REF_GENOME -b ${SV_FILE_A}.gz -c ${SV_FILE_B}.gz -s $MIN_SIZE --sizemax $MAX_SIZE -r $MAX_REF_DIST -p 0 -P $OVERLAP -C $MAX_REF_DIST
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
TRUVARI_DIR_A=$1
TRUVARI_DIR_B=$2
REF_GENOME=$3
MIN_SIZE=$4
MAX_SIZE=$5
OVERLAP=$6
MAX_REF_DIST=$7
OUTPUT_DIR=$8

#Truvari requires sorted, zipped, and indexed VCF files as input. (Re)Generate files before starting Truvari bench
bcftools sort -o ${TRUVARI_DIR_A}/tp-call.sorted.vcf $TRUVARI_DIR_A/tp-call.vcf
bgzip -c ${TRUVARI_DIR_A}/tp-call.sorted.vcf > ${TRUVARI_DIR_A}/tp-call.sorted.vcf.gz
tabix ${TRUVARI_DIR_A}/tp-call.sorted.vcf.gz

bcftools sort -o ${TRUVARI_DIR_A}/tp-base.sorted.vcf $TRUVARI_DIR_A/tp-base.vcf
bgzip -c ${TRUVARI_DIR_A}/tp-base.sorted.vcf > ${TRUVARI_DIR_A}/tp-base.sorted.vcf.gz
tabix ${TRUVARI_DIR_A}/tp-base.sorted.vcf.gz

bcftools sort -o ${TRUVARI_DIR_B}/tp-call.sorted.vcf $TRUVARI_DIR_B/tp-call.vcf
bgzip -c ${TRUVARI_DIR_B}/tp-call.sorted.vcf > ${TRUVARI_DIR_B}/tp-call.sorted.vcf.gz
tabix ${TRUVARI_DIR_B}/tp-call.sorted.vcf.gz

bcftools sort -o ${TRUVARI_DIR_B}/tp-base.sorted.vcf $TRUVARI_DIR_B/tp-base.vcf
bgzip -c ${TRUVARI_DIR_B}/tp-base.sorted.vcf > ${TRUVARI_DIR_B}/tp-base.sorted.vcf.gz
tabix ${TRUVARI_DIR_B}/tp-base.sorted.vcf.gz

#Ensure parent directories set up before Truvari execution
mkdir -p $OUTPUT_DIR/Call
mkdir -p $OUTPUT_DIR/Base

#Truvari creates the output directory during execution and won't overwrite an existing directory. Remove target $OUTPUT_DIR if it already exists.
if [ -d $OUTPUT_DIR/Call/FromTPCall ]
then
	echo "$OUTPUT_DIR already exists! Removing to allow truvari to run!.. "
	rm -r $OUTPUT_DIR/Call/FromTPCall
fi

if [ -d $OUTPUT_DIR/Call/FromTPBase ]
then
        echo "$OUTPUT_DIR already exists! Removing to allow truvari to run!.. "
        rm -r $OUTPUT_DIR/Call/FromTPBase
fi

if [ -d $OUTPUT_DIR/Base/FromTPCall ]
then
        echo "$OUTPUT_DIR already exists! Removing to allow truvari to run!.. "
        rm -r $OUTPUT_DIR/Base/FromTPCall
fi

if [ -d $OUTPUT_DIR/Base/FromTPBase ]
then
        echo "$OUTPUT_DIR already exists! Removing to allow truvari to run!.. "
        rm -r $OUTPUT_DIR/Base/FromTPBase
fi

#Execute Truvari Bench to compare the VCF files provided in the script's arguments
truvari bench -o $OUTPUT_DIR/Call/FromTPCall -f $REF_GENOME -b ${TRUVARI_DIR_A}/tp-call.sorted.vcf.gz -c ${TRUVARI_DIR_B}/tp-call.sorted.vcf.gz -s $MIN_SIZE --sizemax $MAX_SIZE -r $MAX_REF_DIST -p 0 -P $OVERLAP -C $MAX_REF_DIST
truvari bench -o $OUTPUT_DIR/Call/FromTPBase -f $REF_GENOME -b ${TRUVARI_DIR_A}/tp-call.sorted.vcf.gz -c ${TRUVARI_DIR_B}/tp-base.sorted.vcf.gz -s $MIN_SIZE --sizemax $MAX_SIZE -r $MAX_REF_DIST -p 0 -P $OVERLAP -C $MAX_REF_DIST
truvari bench -o $OUTPUT_DIR/Base/FromTPCall -f $REF_GENOME -b ${TRUVARI_DIR_A}/tp-base.sorted.vcf.gz -c ${TRUVARI_DIR_B}/tp-call.sorted.vcf.gz -s $MIN_SIZE --sizemax $MAX_SIZE -r $MAX_REF_DIST -p 0 -P $OVERLAP -C $MAX_REF_DIST
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
SV_FILE_A=$1
TRUVARI_DIR=$2
REF_GENOME=$3
MIN_SIZE=$4
MAX_SIZE=$5
OVERLAP=$6
MAX_REF_DIST=$7
OUTPUT_DIR=$8

#Truvari requires sorted, zipped, and indexed VCF files as input. (Re)Generate files before starting Truvari bench
bcftools sort -o ${SV_FILE_A}.sorted $SV_FILE_A
bgzip -c ${SV_FILE_A}.sorted > ${SV_FILE_A}.gz
tabix ${SV_FILE_A}.gz

bcftools sort -o ${TRUVARI_DIR}/tp-call.sorted.vcf $TRUVARI_DIR/tp-call.vcf
bgzip -c ${TRUVARI_DIR}/tp-call.sorted.vcf > ${TRUVARI_DIR}/tp-call.sorted.vcf.gz
tabix ${TRUVARI_DIR}/tp-call.sorted.vcf.gz

bcftools sort -o ${TRUVARI_DIR}/tp-base.sorted.vcf $TRUVARI_DIR/tp-base.vcf
bgzip -c ${TRUVARI_DIR}/tp-base.sorted.vcf > ${TRUVARI_DIR}/tp-base.sorted.vcf.gz
tabix ${TRUVARI_DIR}/tp-base.sorted.vcf.gz

#Ensure parent directories set up before Truvari execution
mkdir -p $OUTPUT_DIR

#Truvari creates the output directory during execution and won't overwrite an existing directory. Remove target $OUTPUT_DIR if it already exists.
if [ -d $OUTPUT_DIR/FromTPCall ]
then
	echo "$OUTPUT_DIR already exists! Removing to allow truvari to run!.. "
	rm -r $OUTPUT_DIR/FromTPCall
fi

if [ -d $OUTPUT_DIR/FromTPBase ]
then
        echo "$OUTPUT_DIR already exists! Removing to allow truvari to run!.. "
        rm -r $OUTPUT_DIR/FromTPBase
fi

#Execute Truvari Bench to compare the VCF files provided in the script's arguments
truvari bench -o $OUTPUT_DIR/FromTPCall -f $REF_GENOME -b ${SV_FILE_A}.gz -c ${TRUVARI_DIR}/tp-call.sorted.vcf.gz -s $MIN_SIZE --sizemax $MAX_SIZE -r $MAX_REF_DIST -p 0 -P $OVERLAP -C $MAX_REF_DIST
truvari bench -o $OUTPUT_DIR/FromTPBase -f $REF_GENOME -b ${SV_FILE_A}.gz -c ${TRUVARI_DIR}/tp-base.sorted.vcf.gz -s $MIN_SIZE --sizemax $MAX_SIZE -r $MAX_REF_DIST -p 0 -P $OVERLAP -C $MAX_REF_DIST
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
THREADS=$1
READS_DIR=$2
READ_FILES_LIST=$3

echo "Reformatting SRA Files for all Accessions detailed in $READ_FILES_LIST to FASTQ..."
mkdir -p $READS_DIR

readarray ACCESSIONS_ARRAY < $READ_FILES_LIST
for ACCESSION in "${ACCESSIONS_ARRAY[@]}"
do
	STRIP_ACCESSION=$(echo $ACCESSION | tr -d "\n")
	#fasterq-dump --threads $THREADS -O $READS_DIR ${READS_DIR}/${STRIP_ACCESSION}.sra
        if [[ ! -f "${READS_DIR}/${STRIP_ACCESSION}.fastq" ]]; then
		fastq-dump -O $READS_DIR ${READS_DIR}/${STRIP_ACCESSION}.sra
        else
                echo "${READS_DIR}/${STRIP_ACCESSION}.fastq already Exists! Skipping fastq-dump..."
	fi
	#fastq-dump -O $READS_DIR ${READS_DIR}/${STRIP_ACCESSION}.sra
done

echo "Reformatting complete!.."
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
GENOME_FILE=$1
REGIONS_LIST=$2
OUTPUT_FILE=$3

#Check for an index of the reference file and create it if it does not exist
if [ ! -f ${GENOME_FASTA}.fai ]
then
	echo "Creating index for $GENOME_FILE..."
	samtools faidx $GENOME_FILE
fi

#Extract regions of interest based on contents of the CHROM_LIST_FILE path provided
echo "Extracting regions specified in $REGIONS_LIST..."
samtools faidx $GENOME_FILE -r $REGIONS_LIST > $OUTPUT_FILE
bgzip -c $OUTPUT_FILE > $OUTPUT_FILE.gz
samtools faidx $OUTPUT_FILE.gz
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
READS_DIR=$1
FILE_MAX=$2
READ_FILES_LIST=$3

echo "Starting prefetching of all Accessions detailed in $READ_FILES_LIST..."
mkdir -p $READS_DIR

readarray ACCESSIONS_ARRAY < $READ_FILES_LIST
for ACCESSION in "${ACCESSIONS_ARRAY[@]}"
do
	STRIP_ACCESSION=$(echo $ACCESSION | tr -d "\n")
	if [[ ! -f "${READS_DIR}/${STRIP_ACCESSION}.sra" ]]; then
    		prefetch --max-size $FILE_MAX -o ${READS_DIR}/${STRIP_ACCESSION}.sra ${STRIP_ACCESSION}
	else
		echo "${READS_DIR}/${STRIP_ACCESSION}.sra already Exists! Skipping prefetch..."
	fi
	#prefetch --max-size $FILE_MAX -o ${READS_DIR}/${STRIP_ACCESSION}.sra ${STRIP_ACCESSION}
done

echo "Prefetching complete!.."
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
CORES=$1
ANALYSIS_DIR=$2
REF_GENOME=$3
QRY_GENOME=$4
QRY_ID=$5
WORKING_DIR=`pwd` # Stores pipeline's working directory to allow for return


#PAV Snakemake operates on zipped ref genome file, verify it exists before proceeding
if [ ! -f ${REF_GENOME}.gz ]
then
	echo "Zipping and indexing $REF_GENOME as PAV setup!.."
	bgzip -c $REF_GENOME > ${REF_GENOME}.gz
	faidx ${REF_GENOME}.gz
fi

#Build config.json for PAV based on inputs
REF_ABS_PATH=`echo "$(cd "$(dirname "$REF_GENOME")"; pwd)/$(basename "$REF_GENOME")"` #Convert Relative to Abs path for PAV Config
echo "{" > $ANALYSIS_DIR/config.json; echo "	\"reference\": \"${REF_ABS_PATH}.gz\"" >> $ANALYSIS_DIR/config.json; echo "}" >> $ANALYSIS_DIR/config.json

#Add required query information file to PAV before starting execution
QRY_ABS_PATH=`echo "$(cd "$(dirname "$QRY_GENOME")"; pwd)/$(basename "$QRY_GENOME")"` #Convert Relative to Abs path for PAV Config
echo "NAME	HAP1	HAP2" > $ANALYSIS_DIR/assemblies.tsv
echo "$QRY_ID	$QRY_ABS_PATH" >> $ANALYSIS_DIR/assemblies.tsv

#Change to PAV working directory before starting per instruction on PAV repo
echo "Changing directory to $ANALYSIS_DIR and starting PAV's SnakeMake pipeline!.."
cd $ANALYSIS_DIR

#Check if runlocal in ANALYSIS_DIR is successfully linked to run local in $PAV and link if not
if [ ! -e ./runlocal ]
then
	ln -s $PAV/runlocal ./
fi

#Run PAV
./runlocal $CORES

#Return to SV-JIM Working directory
echo "Pipeline complete! Returning to $WORKING_DIR!.."
cd $WORKING_DIR
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
ALL_SV_FILE=$1
SV_FILE_PREFIX=$2

# Segment only those SV types identifiable by PAV based on their SVTYPE field found in the VCF output
bcftools filter -i 'SVTYPE == "DEL"' -o ${SV_FILE_PREFIX}.DEL.vcf $ALL_SV_FILE
bcftools filter -i 'SVTYPE == "INS"' -o ${SV_FILE_PREFIX}.INS.vcf $ALL_SV_FILE
bcftools filter -i 'SVTYPE == "INV"' -o ${SV_FILE_PREFIX}.INV.vcf $ALL_SV_FILE

#Segment SV types by size thresholds
for TYPE in DEL INS INV
do
	bcftools filter -e 'INFO/SVLEN > 100 || INFO/SVLEN < -100' -o ${SV_FILE_PREFIX}.${TYPE}.SSm.vcf ${SV_FILE_PREFIX}.${TYPE}.vcf
	bcftools filter -i '(INFO/SVLEN > 100 && INFO/SVLEN <= 1000) || (INFO/SVLEN < -100 && INFO/SVLEN >= -1000)' -o ${SV_FILE_PREFIX}.${TYPE}.Sml.vcf ${SV_FILE_PREFIX}.${TYPE}.vcf
	bcftools filter -i '(INFO/SVLEN > 1000 && INFO/SVLEN <= 100000) || (INFO/SVLEN < -1000 && INFO/SVLEN >= -100000)' -o ${SV_FILE_PREFIX}.${TYPE}.Med.vcf ${SV_FILE_PREFIX}.${TYPE}.vcf
	bcftools filter -i 'INFO/SVLEN > 100000 || INFO/SVLEN < -100000' -o ${SV_FILE_PREFIX}.${TYPE}.Lrg.vcf ${SV_FILE_PREFIX}.${TYPE}.vcf
done
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
ALL_SV_FILE=$1
SV_FILE_PREFIX=$2
TOOL_NAME=$3

# Segment VCF files by type for all types based on the values found in the SVTYPE field of each  VCF output
bcftools filter -i 'SVTYPE == "DEL"' -o ${SV_FILE_PREFIX}.DEL.vcf $ALL_SV_FILE
bcftools filter -i 'SVTYPE == "INS"' -o ${SV_FILE_PREFIX}.INS.vcf $ALL_SV_FILE
bcftools filter -i 'SVTYPE == "DUP" || SVTYPE == "DUP:INT" || SVTYPE == "DUP:TANDEM"' -o ${SV_FILE_PREFIX}.DUP.vcf $ALL_SV_FILE
bcftools filter -i 'SVTYPE == "INV"' -o ${SV_FILE_PREFIX}.INV.vcf $ALL_SV_FILE
bcftools filter -i 'SVTYPE == "BND"' -o ${SV_FILE_PREFIX}.BND.vcf $ALL_SV_FILE

#Segment SV types by size thresholds
for TYPE in DEL INS DUP
do
        bcftools filter -e 'INFO/SVLEN > 100 || INFO/SVLEN < -100' -o ${SV_FILE_PREFIX}.${TYPE}.SSm.vcf ${SV_FILE_PREFIX}.${TYPE}.vcf
        bcftools filter -i '(INFO/SVLEN > 100 && INFO/SVLEN <= 1000) || (INFO/SVLEN < -100 && INFO/SVLEN >= -1000)' -o ${SV_FILE_PREFIX}.${TYPE}.Sml.vcf ${SV_FILE_PREFIX}.${TYPE}.vcf
        bcftools filter -i '(INFO/SVLEN > 1000 && INFO/SVLEN <= 100000) || (INFO/SVLEN < -1000 && INFO/SVLEN >= -100000)' -o ${SV_FILE_PREFIX}.${TYPE}.Med.vcf ${SV_FILE_PREFIX}.${TYPE}.vcf
        bcftools filter -i 'INFO/SVLEN > 100000 || INFO/SVLEN < -100000' -o ${SV_FILE_PREFIX}.${TYPE}.Lrg.vcf ${SV_FILE_PREFIX}.${TYPE}.vcf
done

if [ "SVIM" = $TOOL_NAME ] || [ "SVIM-ASM" = $TOOL_NAME ]; then
	bcftools filter -e '(POS-INFO/END) > 100 || (POS-INFO/END) < -100' -o ${SV_FILE_PREFIX}.INV.SSm.vcf ${SV_FILE_PREFIX}.INV.vcf
	bcftools filter -i '((POS-INFO/END) > 100 && (POS-INFO/END) <= 1000) || ((POS-INFO/END) < -100 && (POS-INFO/END) >= -1000)' -o ${SV_FILE_PREFIX}.INV.Sml.vcf ${SV_FILE_PREFIX}.INV.vcf
	bcftools filter -i '((POS-INFO/END) > 1000 && (POS-INFO/END) <= 100000) || ((POS-INFO/END) < -1000 && (POS-INFO/END) >= -100000)' -o ${SV_FILE_PREFIX}.INV.Med.vcf ${SV_FILE_PREFIX}.INV.vcf
	bcftools filter -i '(POS-INFO/END) > 100000 || (POS-INFO/END) < -100000' -o ${SV_FILE_PREFIX}.INV.Lrg.vcf ${SV_FILE_PREFIX}.INV.vcf
else
        bcftools filter -e 'INFO/SVLEN > 100 || INFO/SVLEN < -100' -o ${SV_FILE_PREFIX}.INV.SSm.vcf ${SV_FILE_PREFIX}.INV.vcf
        bcftools filter -i '(INFO/SVLEN > 100 && INFO/SVLEN <= 1000) || (INFO/SVLEN < -100 && INFO/SVLEN >= -1000)' -o ${SV_FILE_PREFIX}.INV.Sml.vcf ${SV_FILE_PREFIX}.INV.vcf
        bcftools filter -i '(INFO/SVLEN > 1000 && INFO/SVLEN <= 100000) || (INFO/SVLEN < -1000 && INFO/SVLEN >= -100000)' -o ${SV_FILE_PREFIX}.INV.Med.vcf ${SV_FILE_PREFIX}.INV.vcf
        bcftools filter -i 'INFO/SVLEN > 100000 || INFO/SVLEN < -100000' -o ${SV_FILE_PREFIX}.INV.Lrg.vcf ${SV_FILE_PREFIX}.INV.vcf
fi
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
WRITE_MODE=$1
SV_TYPE=$2
OUTPUT_FILE=$3

#If first to write, create header
if [ "W" = $WRITE_MODE ] || [ "w" = $WRITE_MODE ]; then
        echo "TYPE      SSM     SML     MED     LRG     TOTAL" > $OUTPUT_FILE
fi

#Grab guaranteed variables (With BND there will be less since BNDs don't come in multiple sizes)
SV_TYPE=$2
OUTPUT_FILE=$3

ALL_VCF=$4
TOTAL_COUNT=$(grep -v "^#" $ALL_VCF | grep -c "$SV_TYPE")

#If the SV_TYPE is BND write the row accordingly with only one total calculated (rest 0s)
if [ "BND" = $SV_TYPE ]; then
	echo "$SV_TYPE	$TOTAL_COUNT	0	0	0	$TOTAL_COUNT" >> $OUTPUT_FILE
else #Otherwise calculate all sizes and write each entry to file
	SSM_VCF=$5
        SSM_COUNT=$(grep -vc "^#" $SSM_VCF)

	SML_VCF=$6
        SML_COUNT=$(grep -vc "^#" $SML_VCF)

	MED_VCF=$7
        MED_COUNT=$(grep -vc "^#" $MED_VCF)

	LRG_VCF=$8
        LRG_COUNT=$(grep -vc "^#" $LRG_VCF)

	echo "$SV_TYPE	$SSM_COUNT	$SML_COUNT	$MED_COUNT	$LRG_COUNT	$TOTAL_COUNT" >> $OUTPUT_FILE
fi
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
OUTPUT_FILE=$1
SSM_FILE=$2
SML_FILE=$3
MED_FILE=$4
LRG_FILE=$5
TOTAL_FILE=$6

#Extract intersection size column from files into array (Ordered as: Header,#DEL,#INS,#DUP,#INV,#BND,#TOTAL)
SSM_ARRAY=($(awk '{ print $11 }' $SSM_FILE))
SML_ARRAY=($(awk '{ print $11 }' $SML_FILE))
MED_ARRAY=($(awk '{ print $11 }' $MED_FILE))
LRG_ARRAY=($(awk '{ print $11 }' $LRG_FILE))
TOTAL_ARRAY=($(awk '{ print $11 }' $TOTAL_FILE))

#Create file by adding headers
echo "TYPE	SSM	SML	MED	LRG	TOTAL" > $OUTPUT_FILE

#Add DEL counts to file
SSM_DEL_COUNT="${SSM_ARRAY[1]}"
SML_DEL_COUNT="${SML_ARRAY[1]}"
MED_DEL_COUNT="${MED_ARRAY[1]}"
LRG_DEL_COUNT="${LRG_ARRAY[1]}"
TOTAL_DEL_COUNT="${TOTAL_ARRAY[1]}"
echo "DEL	$SSM_DEL_COUNT	$SML_DEL_COUNT	$MED_DEL_COUNT	$LRG_DEL_COUNT	$TOTAL_DEL_COUNT" >> $OUTPUT_FILE

#Add INS counts to file
SSM_INS_COUNT="${SSM_ARRAY[2]}"
SML_INS_COUNT="${SML_ARRAY[2]}"
MED_INS_COUNT="${MED_ARRAY[2]}"
LRG_INS_COUNT="${LRG_ARRAY[2]}"
TOTAL_INS_COUNT="${TOTAL_ARRAY[2]}"
echo "INS	$SSM_INS_COUNT	$SML_INS_COUNT	$MED_INS_COUNT	$LRG_INS_COUNT	$TOTAL_INS_COUNT" >> $OUTPUT_FILE

#Add DUP counts to file
SSM_DUP_COUNT="${SSM_ARRAY[3]}"
SML_DUP_COUNT="${SML_ARRAY[3]}"
MED_DUP_COUNT="${MED_ARRAY[3]}"
LRG_DUP_COUNT="${LRG_ARRAY[3]}"
TOTAL_DUP_COUNT="${TOTAL_ARRAY[3]}"
echo "DUP	$SSM_DUP_COUNT	$SML_DUP_COUNT	$MED_DUP_COUNT	$LRG_DUP_COUNT	$TOTAL_DUP_COUNT" >> $OUTPUT_FILE

#Add INV counts to file
SSM_INV_COUNT="${SSM_ARRAY[4]}"
SML_INV_COUNT="${SML_ARRAY[4]}"
MED_INV_COUNT="${MED_ARRAY[4]}"
LRG_INV_COUNT="${LRG_ARRAY[4]}"
TOTAL_INV_COUNT="${TOTAL_ARRAY[4]}"
echo "INV	$SSM_INV_COUNT	$SML_INV_COUNT	$MED_INV_COUNT	$LRG_INV_COUNT	$TOTAL_INV_COUNT" >> $OUTPUT_FILE

#Add BND counts to file
SSM_BND_COUNT="${SSM_ARRAY[5]}"
echo "BND	$SSM_BND_COUNT	0	0	0	$SSM_BND_COUNT" >> $OUTPUT_FILE

#Add Totals counts to file
SSM_TOTAL_COUNT="${SSM_ARRAY[6]}"
SML_TOTAL_COUNT="${SML_ARRAY[5]}" # One less row in sml files since they dont contain breakpoints of size 1
MED_TOTAL_COUNT="${MED_ARRAY[5]}" # One less row in med files since they dont contain breakpoints of size 1
LRG_TOTAL_COUNT="${LRG_ARRAY[5]}" # One less row in lrg files since they dont contain breakpoints of size 1
TOTAL_TOTAL_COUNT="${TOTAL_ARRAY[6]}"
echo "ALL	$SSM_TOTAL_COUNT	$SML_TOTAL_COUNT	$MED_TOTAL_COUNT	$LRG_TOTAL_COUNT	$TOTAL_TOTAL_COUNT" >> $OUTPUT_FILE
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
OUTPUT_FILE=$1
SSM_FILE=$2
SML_FILE=$3
MED_FILE=$4
LRG_FILE=$5
TOTAL_FILE=$6

#Extract intersection size column from files into array (Ordered as: Header,#DEL,#INS,#INV,#TOTAL)
SSM_ARRAY=($(awk '{ print $11 }' $SSM_FILE))
SML_ARRAY=($(awk '{ print $11 }' $SML_FILE))
MED_ARRAY=($(awk '{ print $11 }' $MED_FILE))
LRG_ARRAY=($(awk '{ print $11 }' $LRG_FILE))
TOTAL_ARRAY=($(awk '{ print $11 }' $TOTAL_FILE))

#Create file by adding headers
echo "TYPE	SSM	SML	MED	LRG	TOTAL" > $OUTPUT_FILE

#Add DEL counts to file
SSM_DEL_COUNT="${SSM_ARRAY[1]}"
SML_DEL_COUNT="${SML_ARRAY[1]}"
MED_DEL_COUNT="${MED_ARRAY[1]}"
LRG_DEL_COUNT="${LRG_ARRAY[1]}"
TOTAL_DEL_COUNT="${TOTAL_ARRAY[1]}"
echo "DEL	$SSM_DEL_COUNT	$SML_DEL_COUNT	$MED_DEL_COUNT	$LRG_DEL_COUNT	$TOTAL_DEL_COUNT" >> $OUTPUT_FILE

#Add INS counts to file
SSM_INS_COUNT="${SSM_ARRAY[2]}"
SML_INS_COUNT="${SML_ARRAY[2]}"
MED_INS_COUNT="${MED_ARRAY[2]}"
LRG_INS_COUNT="${LRG_ARRAY[2]}"
TOTAL_INS_COUNT="${TOTAL_ARRAY[2]}"
echo "INS	$SSM_INS_COUNT	$SML_INS_COUNT	$MED_INS_COUNT	$LRG_INS_COUNT	$TOTAL_INS_COUNT" >> $OUTPUT_FILE

#Add INV counts to file
SSM_INV_COUNT="${SSM_ARRAY[3]}"
SML_INV_COUNT="${SML_ARRAY[3]}"
MED_INV_COUNT="${MED_ARRAY[3]}"
LRG_INV_COUNT="${LRG_ARRAY[3]}"
TOTAL_INV_COUNT="${TOTAL_ARRAY[3]}"
echo "INV	$SSM_INV_COUNT	$SML_INV_COUNT	$MED_INV_COUNT	$LRG_INV_COUNT	$TOTAL_INV_COUNT" >> $OUTPUT_FILE

#Add Totals counts to file
SSM_TOTAL_COUNT="${SSM_ARRAY[4]}"
SML_TOTAL_COUNT="${SML_ARRAY[4]}"
MED_TOTAL_COUNT="${MED_ARRAY[4]}"
LRG_TOTAL_COUNT="${LRG_ARRAY[4]}"
TOTAL_TOTAL_COUNT="${TOTAL_ARRAY[4]}"
echo "ALL	$SSM_TOTAL_COUNT	$SML_TOTAL_COUNT	$MED_TOTAL_COUNT	$LRG_TOTAL_COUNT	$TOTAL_TOTAL_COUNT" >> $OUTPUT_FILE
 3
 4
 5
 6
 7
 8
 9
10
11
INPUT_FILE=$1

SSM_COUNT=$(awk '{sum+=$2;} END{print sum;}' $INPUT_FILE)
SML_COUNT=$(awk '{sum+=$3;} END{print sum;}' $INPUT_FILE)
MED_COUNT=$(awk '{sum+=$4;} END{print sum;}' $INPUT_FILE)
LRG_COUNT=$(awk '{sum+=$5;} END{print sum;}' $INPUT_FILE)
TOTAL_COUNT=$(awk '{sum+=$6;} END{print sum;}' $INPUT_FILE)

echo "ALL	$SSM_COUNT	$SML_COUNT	$MED_COUNT	$LRG_COUNT	$TOTAL_COUNT" >> $INPUT_FILE
ShowHide 450 more snippets with no or duplicated tags.

Login to post a comment if you would like to share your experience with this workflow.

Do you know this workflow well? If so, you can request seller status , and start supporting this workflow.

Free

Created: 1yr ago
Updated: 1yr ago
Maitainers: public
URL: https://github.com/CMalcolmTodd/SV-JIM
Name: sv-jim
Version: 1
Badge:
workflow icon

Insert copied code into your website to add a link to this workflow.

Downloaded: 0
Copyright: Public Domain
License: MIT License
  • Future updates

Related Workflows

cellranger-snakemake-gke
snakemake workflow to run cellranger on a given bucket using gke.
A Snakemake workflow for running cellranger on a given bucket using Google Kubernetes Engine. The usage of this workflow ...