KMC_TOOLS-COUNTERS_SUBTRACT(1)

โœจ KMC_TOOLS-COUNTERS_SUBTRACT(1) โœจ

okay bestie, so this is a page from the kmc_tools manual, section 1 (general commands, iykyk). sit down, grab a boba, we're doing counter subtraction ๐Ÿ’…


๐ŸŒธ NAME ๐ŸŒธ

kmc_tools-counters_subtract โ€” the way that it calculates the counters subtraction of two KMC databases ๐Ÿงฎโœจ


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

kmc_tools counters_subtract <input1 [input1_params]> <input2 [input2_params]> <output [output_params]>

two inputs, one output, and optional lil params hanging off each one. that's the whole vibe ๐ŸŽ€


๐Ÿ’– DESCRIPTION ๐Ÿ’–

so here's the tea ๐Ÿ“ the output database is gonna contain only the k-mers that are present in the first input set and that have counters higher than the appropriate k-mers in the second set. like, if it's not winning, it's not invited bestie ๐Ÿ’€

and for each k-mer that makes the cut, the counter equals the difference between the counter in the first set and the counter in the second set. literally subtraction. math is mathing โœจ


๐Ÿ‘‘ 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, so it doesn't get too main character ๐Ÿ“ˆ

๐Ÿงš EXAMPLE ๐Ÿงš

watch me cook ๐Ÿณ

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

build two databases, then subtract them. ate, no crumbs ๐Ÿ”ฅ


โญ AUTHOR โญ

KMC was originally written by these absolute legends:

  • Sebastian Deorowicz (sebastian.deorowicz@polsl.pl)
  • Marek Kokot
  • Szymon Grabowski
  • Agnieszka Debudaj-Grabysz

not me being obsessed with a whole squad of iconique authors ๐Ÿ‘‘


๐Ÿ’… COPYING ๐Ÿ’…

KMC is a free software distributed under GNU GPL3 licence for academic, research, and commercial use. slay, honestly ๐Ÿซถ


okay that's the whole page bestie, go forth and subtract those counters, the output db is not gonna build itself ๐Ÿ˜ญ๐Ÿ’–

KMC_TOOLS-COUNTERS_SUBTRACT(1) โ€” that's the footer babes, and it's giving "no extra version or date info on this one", so that's all she wrote ๐ŸŒธ bye pookie ๐Ÿ’œ

๐Ÿ“ฆ where this page comes from