---
name: "kmc_tools-counters_subtract"
section: "1"
platform: "linux"
package: "kmc"
version: "3.2.4+dfsg-1+b3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/kmc_tools-counters_subtract"
---

# kmc\_tools-counters\_subtract(1)

calculate counters subtraction of two KMC databases

## NAME

kmc\_tools-counters\_subtract - calculate counters subtraction of two KMC databases

## SYNOPSIS

**kmc\_tools counters\_subtract** \<input1 \[input1\_params\]\> \<input2 \[input2\_params\]\> \<output \[output\_params\]\>

## DESCRIPTION

The output database will contain only k-mers that are present in the first input set and have counters higher than the appropriate k-mers in the second set. For each k-mer the counter is equal to the difference between the counter in the first set and the counter in the second set.

## OPTIONS

For each input there are additional parameters:

**-ci\<value\>**

exclude k-mers occurring less than \<value\> times

**-cx\<value\>**

exclude k-mers occurring more of than \<value\> times

For output there are additional parameters:

**-ci\<value\>**

exclude k-mers occurring less than \<value\> times

**-cx\<value\>**

exclude k-mers occurring more of than \<value\> times

**-cs\<value\>**

maximal value of a counter

## EXAMPLE

```
kmc - k28 file1.fastq kmers1 tmp
kmc - k28 file2.fastq kmers2 tmp
kmc_tools counters_subtract kmers1 kmers2 kmers1_kmers2_counters_subtract
```

## AUTHOR

KMC was originally written by:

• Sebastian Deorowicz ( \<sebastian.deorowicz@polsl.pl\>)

• Marek Kokot

• Szymon Grabowski

• Agnieszka Debudaj-Grabysz

## COPYING

KMC is a free software distributed under GNU GPL3 licence for academic, research, and commercial use.
