Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • using khist to generate kmer coverage histogram

    I used khist from bbmap to generate kmer coverage, the attached included the output and the log file. There are a few things I am not very clear. what's different between "Raw count and unique_kmer" in the output file?
    Is "unique kmer" defined as "the kmer only appear once in the dataset"? what's the differences between unique kmer and the kmers whose depth is one?
    When I plot the dataset for coverage, which column should I use? raw count or unique kmer?

    The data is a metagenome data.

    Thanks
    Attached Files

  • #2
    The program (conceptually) allocates one counter per kmer, and increments it every time that kmer is seen. So, let's say K=2 and the input string is "CATTATTT".

    That breaks down into these kmers:
    CA, AT, TT, TA, AT, TT, TT

    After reverse-complementing to store only a single canonical copy, either forward or reverse, we get this:

    CA, AT, AA, AT, AT, AA, AA

    So the kmer counts stored by the program would be:

    AA: 3
    AT: 3
    CA: 1

    This would equate to 3 unique kmers. The histogram would look like this:
    Code:
    #Depth	Raw_Count	Unique_Kmers
    1	1	1
    3	6	2
    Generally, (column 3) = (column 2)/(column 1).

    So line 1 means there was a single kmer (CA) that occurred exactly once, and it was counted exactly once. Line 2 means that there were 2 unique kmers (AT and AA) that each occurred 3 times, for a total of 6 occurrences.

    Therefore - if you want to plot the coverage with respect to the genome, I suggest plotting the "unique" column. And to clarify, the number of "unique kmers" is not the same as the number of kmers that only occur once (I would call those "singleton kmers") - the second number of row 1 gives you the number of singleton kmers counted (1, in this case).
    Last edited by Brian Bushnell; 08-29-2014, 12:52 PM.

    Comment

    Latest Articles

    Collapse

    • seqadmin
      Non-Coding RNA Research and Technologies
      by seqadmin




      Non-coding RNAs (ncRNAs) do not code for proteins but play important roles in numerous cellular processes including gene silencing, developmental pathways, and more. There are numerous types including microRNA (miRNA), long ncRNA (lncRNA), circular RNA (circRNA), and more. In this article, we discuss innovative ncRNA research and explore recent technological advancements that improve the study of ncRNAs.

      Nobel Prize for MicroRNA Discovery
      This week,...
      10-07-2024, 08:07 AM
    • seqadmin
      Recent Developments in Metagenomics
      by seqadmin





      Metagenomics has improved the way researchers study microorganisms across diverse environments. Historically, studying microorganisms relied on culturing them in the lab, a method that limits the investigation of many species since most are unculturable1. Metagenomics overcomes these issues by allowing the study of microorganisms regardless of their ability to be cultured or the environments they inhabit. Over time, the field has evolved, especially with the advent...
      09-23-2024, 06:35 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, Today, 06:55 AM
    0 responses
    9 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 10-02-2024, 04:51 AM
    0 responses
    105 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 10-01-2024, 07:10 AM
    0 responses
    114 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 09-30-2024, 08:33 AM
    1 response
    118 views
    0 likes
    Last Post EmiTom
    by EmiTom
     
    Working...
    X