> For the complete documentation index, see [llms.txt](https://cmo-ci.gitbook.io/command-line-tools-cwl/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cmo-ci.gitbook.io/command-line-tools-cwl/waltz/waltz_count_reads_3.1.1.md).

# CountReads v3.1.1

## Version of tools in docker image (/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_count_reads_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_count_reads_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_count_reads_3.1.1.cwl inputs.yaml > file.stdout 2> file.stderr &
```

## Usage

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

usage: waltz_count_reads_3.1.1.cwl [-h] --bam BAM --gene_list GENE_LIST
                                   [--coverage_threshold COVERAGE_THRESHOLD]
                                   [--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
  --gene_list GENE_LIST
  --coverage_threshold COVERAGE_THRESHOLD
  --memory_per_job MEMORY_PER_JOB
  --memory_overhead MEMORY_OVERHEAD
  --number_of_threads NUMBER_OF_THREADS
  --bed_file BED_FILE
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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/waltz/waltz_count_reads_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.
