> For the complete documentation index, see [llms.txt](https://docs.cosap.bio/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cosap.bio/fundamentals/using-cosap/running-pipelines.md). Agents can also search and read this documentation through its [MCP server](https://docs.cosap.bio/~gitbook/mcp).

# Running Pipelines

After creating the pipeline configuration file, it is time to run it. COSAP comes with a pipeline runner currently supported by [Snakemake](https://snakemake.readthedocs.io/en/stable/). To create a COSAP PipelineRunner:

```python
from cosap import PipelineRunner

runner = PipelineRunner()
```

You can then run the pipeline with the previously created config:

```python
runner.run_pipeline(pipeline_config=pipeline_config)
```

## Setting up GPU-Accelerated Pipeline Runner

COSAP supports the NVIDIA Parabricks suite for GPU accelerated tasks in several steps. Parabricks must be set up beforehand manually. To do this please follow the instructions at [Parabricks Documentation](https://docs.nvidia.com/clara/parabricks/4.0.1/index.html).

After you set up Parabricks, you can activate it in the pipeline runner as follows:

```python
from cosap import PipelineRunner

runner = PipelineRunner(device="gpu")
```
