# PileupMetrics v3.1.1

## Version of tools in docker image (../waltz\_count\_reads\_3.1.1/container/Dockerfile)

| Tool            | Version | Location                                                                       |
| --------------- | ------- | ------------------------------------------------------------------------------ |
| java base image | 8       | -                                                                              |
| waltz           | 3.1.1   | <https://github.com/juberpatel/Waltz/releases/download/v3.1.1/Waltz-3.1.1.jar> |

[![](https://img.shields.io/badge/version-3.1.1-blue)](https://github.com/juberpatel/Waltz/releases/tag/v3.1.1)

## CWL

* CWL specification 1.0
* Use example\_inputs.yml to see the inputs to the cwl
* Example Command using [toil](https://toil.readthedocs.io):

```bash
    > toil-cwl-runner waltz_pileupmatrices_3.1.1.cwl example_inputs.yml
```

**If at MSK, using the JUNO cluster you can use the following command**

```bash
#Using CWLTOOL
> cwltool --singularity --non-strict waltz_pileupmatrices_3.1.1.cwl inputs.yaml

#Using toil-cwl-runner
> mkdir run_directory
> toil-cwl-runner --singularity --logFile path/to/run_directory/cwltoil.log  --jobStore path/to/jobStore --batchSystem lsf --workDir /path/to/run_directory --outdir /path/to/run_directory --writeLogs /path/to/run_directory --logLevel DEBUG --stats --retryCount 2 --disableCaching --maxLogFileSize 20000000000 waltz_pileupmatrices_3.1.1.cwl inputs.yaml > file.stdout 2> file.stderr &
```

## Usage

```bash
> toil-cwl-runner wwaltz_pileupmatrices_3.1.1.cwl --help

usage: waltz_pileupmatrices_3.1.1.cwl [-h] --bam BAM --referece_fasta
                                      REFERECE_FASTA
                                      [--min_map_quality MIN_MAP_QUALITY]
                                      [--memory_per_job MEMORY_PER_JOB]
                                      [--memory_overhead MEMORY_OVERHEAD]
                                      [--number_of_threads NUMBER_OF_THREADS]
                                      --bed_file BED_FILE
                                      [job_order]

positional arguments:
  job_order             Job input json file

optional arguments:
  -h, --help            show this help message and exit
  --bam BAM
  --referece_fasta REFERECE_FASTA
  --min_map_quality MIN_MAP_QUALITY
  --memory_per_job MEMORY_PER_JOB
  --memory_overhead MEMORY_OVERHEAD
  --number_of_threads NUMBER_OF_THREADS
  --bed_file BED_FILE
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cmo-ci.gitbook.io/command-line-tools-cwl/develop-1/waltz/waltz_pileupmatrices_3.1.1.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
