Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Elsie
    Member
    • Mar 2011
    • 85

    #16
    Hi Brian,

    Is it possible to obtain some further information on this program, e.g. how exactly it works?, the columns of the results.txt file?

    Many thanks.

    Comment

    • Brian Bushnell
      Super Moderator
      • Jan 2014
      • 2709

      #17
      Hi Elsie,

      I've attached the presentation I used to describe how it works.

      The columns in the results file are like this:

      assembly contig contam length avgFold reads percentCovered avgFold0 reads0 normRatio

      They mean:

      assembly: Which assembly this contig came from.
      contig: The contig name.
      contam: Whether or not it was flagged as a contaminant.
      length: Length of the contig.
      avgFold: Average coverage of the contig by normalized reads.
      reads: How many normalized reads mapped to the contig.
      percentCovered: Percent of the bases that are covered by mapped normalized reads.
      avgFold0: Average coverage by reads prior to normalization.
      reads0: Number of reads mapping to the contig prior to normalization.
      normRatio: Ratio of coverage before and after normalization.

      Contigs that have very low coverage after normalization, but did not have very low coverage prior to normalization, are considered contaminants. But the program is designed to be very sensitive and ensure no contaminated contigs slip through, so additionally, all contigs shorter than 500bp or with fewer than some number of total reads mapped to them are also classified as contaminants and removed, because once a contig gets shorter than ~500bp or has very few reads mapped to it, the statistical basis of the approach weakens and it is hard to determine confidently whether the contig is a contaminant. So to absolutely ensure all contaminant contigs are removed, these get removed too. You can override this behavior by adjusting these flags:

      minc=3.5 Min average coverage to retain scaffold.
      minp=20 Min percent coverage to retain scaffold.
      minr=18 Min mapped reads to retain scaffold.
      minl=500 Min length to retain scaffold.

      Specifically, you could set "minl=0 minr=0" to bypass the filters that classify a contig as contaminant just because it is very short or has very few reads mapped to it, which may be a good idea for transcriptomics. Note that the tool was developed and optimized for genome assemblies. It will work fine on transcriptomes, in terms of ensuring there is no cross-contamination, but the defaults should probably be adjusted or you'll lose all your transcripts shorter than 500bp.

      P.S. For detecting cross-contamination at the read level, we don't use Crossblock, but rather, we use Seal. First, run "fuse.sh" on all of the assemblies to make them a single contig and rename the contig based on the library (which simplifies stats reporting). Then concatenate them into a single file (though actually that's optional). For example:

      Code:
      fuse.sh in=assembly1.fa out=stdout.fa | rename.sh in=stdin.fa out=renamed1.fa prefix=assembly1 prefixonly
      ...
      cat renamed*.fa > all.fa
      Then run Seal on each set of reads individually:

      seal.sh in=library1.fq ref=all.fa stats=sealstats1.txt mkf=0.4 ambig=toss

      Then summarize the results:

      summarizeseal.sh sealstats*.txt out=summary.txt

      That gives you the read-level cross-contamination in ppm. It underestimates it due to "ambig=toss" which ignores the situation where a contig assembled both in the proper library and also in the contaminant library, but is best in the case when you may have multiple libraries of the same species. "ambig=all" or "ambig=random" on the other hand will over-estimate cross-contamination in that case, but are fine if you are sure you don't have any closely-related organisms multiplexed together.
      Attached Files
      Last edited by Brian Bushnell; 11-16-2015, 10:18 AM.

      Comment

      • Elsie
        Member
        • Mar 2011
        • 85

        #18
        Thank you so much for the ppt - that is very helpful.
        This tool will be incredibly useful in our trouble-shooting toolkit - thank you so much for not only making it available, but for putting in the effort to explain it, it is greatly appreciated.

        Comment

        Latest Articles

        Collapse

        • SEQadmin2
          The Factors Reshaping Genome Assembly
          by SEQadmin2



          When the Human Genome Project declared the human genome finished in 2003, portions of the sequence were still missing, including many of its most repetitive and structurally complex regions.1 Still, for the next two decades, researchers analyzed their sequencing data against the single linear reference that came out of this effort. Released in 2013 as GRCh38, that reference has powered countless discoveries, but it has gaps and cannot capture the genetic diversity of the world’s...
          11-24-2026, 07:04 AM
        • SEQadmin2
          16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
          by SEQadmin2





          NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
          10-30-2026, 06:46 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 11-23-2026, 11:11 AM
        0 responses
        39 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 11-17-2026, 06:27 AM
        0 responses
        47 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 11-12-2026, 07:59 AM
        0 responses
        68 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 11-05-2026, 09:25 AM
        0 responses
        68 views
        0 reactions
        Last Post SEQadmin2  
        Working...