K-mer counting with Jellyfish
Help 4 / 6
Query k-mers

Let’s output the first few k-mers and their counts in FASTA format:

jellyfish dump dengue.jf | head

For example, this FASTA record:

  >2
  AAGTTTTCA

means the k-mer AAGTTTTCA was seen twice.


To query for a particular k-mer of interest, say ACAGTGGAC, you can use jellyfish query:

jellyfish query dengue.jf ACAGTGGAC
jellyfish query chikungunya.jf ACAGTGGAC

This tells us that the ACAGTGGAC k-mer is found in Denge but not Chikungunya.


To get k-mers found in Dengue but not Chikungunya, we can use jellyfish count --if:

jellyfish count \
   -m 9 \
   -s 15000 \
   -o intersect.jf \
   --if chikungunya.fa \
   dengue.fa

The distribution of k-mers now looks different:

jellyfish histo intersect.jf

This means there are 10,764 k-mers from the Chikungunya genome that were not found in the Dengue genome.

Loading...