> 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/develop-1/oncokb_annotator/oncokb_annotator_3.2.2.md).

# v3.2.2

### CWL and Docker for Running Octopus

### Version of tools in [docker image](https://hub.docker.com/r/dancooke/octopus/tags)

| Tool              | Version | Location                                     |
| ----------------- | ------- | -------------------------------------------- |
| Oncokn\_annotator | v3.2.2  | <https://github.com/oncokb/oncokb-annotator> |

#### CWL

CWL specification 1.0 Use example\_input.yaml to see the inputs to the cwl Example Command using [toil](https://toil.readthedocs.io/): `toil-cwl-runner oncokb_annotator_3-2-2.cwl example_input.yaml`

If at MSK, using the JUNO cluster having installed toil version 3.19 and manually modifying [lsf.py](https://github.com/DataBiosphere/toil/blob/releases/3.19.0/src/toil/batchSystems/lsf.py#L170) by removing type==X86\_64 && you can use the following command

#### Using CWLTOOL

```
cwltool --singularity --non-strict /path/to/oncokb_annotator_3-2-2.cwl /path/to/inputs.yaml
```

#### Using toil-cwl-runner

```shell
mkdir oncokb_annotator_toil_log
toil-cwl-runner --singularity --logFile /path/to/oncokb_annotator_toil_log/cwltoil.log  --jobStore /path/to/oncokb_annotator_jobStore --batchSystem lsf --workDir /path/to/oncokb_annotator_toil_log --outdir . --writeLogs /path/to/oncokb_annotator_annotator_toil_log --logLevel DEBUG --stats --retryCount 2 --disableCaching --maxLogFileSize 20000000000 /path/to/oncokb_annotator_3-2-2.cwl /path/to/inputs.yaml > oncokb_annotator_toil.stdout 2> oncokb_annotator_toil.stderr &
```

#### Usage

```shell
usage: oncokb_annotator_3-2-2.cwl [-h]  --inputMafFile INPUTMAFFILE --outputMafName OUTPUTMAFNAME
       --apiToken APITOKEN [--previousResult PREVIOUSRESULT]
       [--clinicalFile CLINICALFILE] [--tumorType TUMORTYPE]
       [--referenceGenome REFERENCEGENOME] [--annotateHotspots]
       [job_order]

positional arguments:
  job_order             Job input json file

optional arguments:
  -h, --help            show this help message and exit
  --inputMafFile INPUTMAFFILE
                        input maf file for annotation
  --outputMafName OUTPUTMAFNAME
  --apiToken APITOKEN   OncoKB API token
  --previousResult PREVIOUSRESULT
  --clinicalFile CLINICALFILE
                        Essential clinical columns: SAMPLE_ID: sample ID
                        ONCOTREE_CODE: tumor type code from oncotree
                        (http://oncotree.mskcc.org)
  --tumorType TUMORTYPE
                        Cancer type will be assigned based on the following
                        priority: 1) ONCOTREE_CODE in clinical data file 2)
                        ONCOTREE_CODE exist in MAF 3) default tumor type (-t)
  --referenceGenome REFERENCEGENOME
                        Reference Genome only allows the following
                        values(case-insensitive): - GRCh37 GRCh38
  --annotateHotspots

```


---

# 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, and the optional `goal` query parameter:

```
GET https://cmo-ci.gitbook.io/command-line-tools-cwl/develop-1/oncokb_annotator/oncokb_annotator_3.2.2.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
