Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vajuli
    Junior Member
    • Jul 2015
    • 5

    #1

    RNASeq premapping QC questions - is it ok to proceed?

    Dear all,
    I received raw data from a sequencing facility for an experiment in which cells were either infected with a virus (INF) or left uninfected (UNI). There were three biological replicates for each condition (UNI-1, UNI-2, UNI-3, INF-1, INF-2 and INF-3), and RNASeq for each sample was done on a separate lane of a GAIIx flowcell (I am aware of the Auer and Doerge Genetics paper – please let’s skip that for now). Libraries were prepared using Nextera kit.

    Since I am a self-taught newbie without formal bioinformatics education, I would really be grateful for your comments and advice on the FastQC results and some read pre-processing that I’ve done.

    First, all of the samples had significant amounts of contamination with Nextera transposase sequences. Therefore I’ve used BBduk to get rid of the adapters and quality trim the raw reads. To clean reads further, I’ve then mapped trimmed reads to a “contaminants metagenome” (contains rRNA, E. coli, S. cerevisiae, univec db sequences and others) and I plan to use unmapped reads from this step for downstream analysis (mapping to reference genome, DE analysis, etc…).

    So, for each replicate there are now three different fastq files: raw, trimmed, trimmed & decontaminated, and FastQC results for each are in the attached pdf file, together with some trimming, decontamination and preliminary mapping statistics (each file was mapped to mouse reference genome with STAR).

    My questions are:
    1) Which reads would be best to use for mapping to reference and DE analysis (I’m guessing trimmed or trimmed&decontaminated, but I cannot decide which).
    2) Number of reads in the sample UNI-2 is ~3 smaller than in the other samples. Would such a big difference in library size present a problem during DE analysis in DESeq2, EdgeR and voom+limma? In other words, should I discard this replicate during DE analysis?
    3) What type of problem could most likely be responsible for the per tile sequence quality pattern for samples UNI-2, INF-1, INF-2. (I would like to know this so that I can discuss the issue with the sequencing facility in a more knowledgeable manner, if necessary).
    4) Would you agree that the adapter contamination is the driving force behind the nonstandard appearance of the “Per base sequence content” graphs. (I am referring to the raising %C line, not the beginning of reads)
    5) Are “Per sequence GC content” distributions horrible, particularly samples INF-2 and INF-3. Are the small peaks at low GC-content attributable to poly-A tails?
    6) Some of the reads have really been trimmed to very short sizes. Will STAR appropriately discard reads that are below some reasonable size, or do I have to do it manually. If so, what would be the minimum suggested (allowed) read size to be used during mapping for DE analysis?
    7) I really don’t know what to make of “Sequence duplication levels” graph. Neither trimming nor decontamination seemed to have any appreciable effects. Does anyone know what could be the usual culprit causing such big differences, even between biological replicates? Do they have to be dealt with in some way?
    8) Trimming seems to deal nicely with adapter contamination, but Kmer content graphs still show overrepresentation of certain Kmers at the end of reads. Did I miss any adapters that need to be removed? Should I trim this out somehow, or can I let the STAR soft-clip this during mapping?

    Big thanks to everyone, if only for reading such a big post.
    Attached Files
    Last edited by vajuli; 07-27-2015, 08:06 AM. Reason: Did not put a 'thank you' note at the end of the post
  • Brian Bushnell
    Super Moderator
    • Jan 2014
    • 2709

    #2
    First - to clarify, these are single-ended, right? I will use that as an assumption.

    Originally posted by vajuli View Post
    1) Which reads would be best to use for mapping to reference and DE analysis (I’m guessing trimmed or trimmed&decontaminated, but I cannot decide which).
    It should not matter too much between the trimmed and trimmed+decontaminated, but I'd suggest trimmed+decontaminated; there's no reason to leave contamination in, as long as nothing in the contaminants file (other than rRNA) has high similarity to your organisms of interest.
    However, I would make a couple of suggestions - first, throw away reads shorter than some value; maybe 40bp or so. Really short reads are uninformative and can skew your results without adding anything of value. Second, Q20 is fairly high for quality-trimming; the higher the value, the more bias is incurred. For mapping, I generally don't recommend going over 10~15 unless the aligner or settings are very intolerant of mismatches.

    2) Number of reads in the sample UNI-2 is ~3 smaller than in the other samples. Would such a big difference in library size present a problem during DE analysis in DESeq2, EdgeR and voom+limma? In other words, should I discard this replicate during DE analysis?
    Not sure, but I highly the quantity difference would cause problems, so I would expect including it to increase resolution. It is different in other ways, though - the read-length histogram is very different from the others, and the quality was much lower. Those are more worrisome. It seems like the lane had serious problems, and I would consider tossing it for that reason.

    4) Would you agree that the adapter contamination is the driving force behind the nonstandard appearance of the “Per base sequence content” graphs. (I am referring to the raising %C line, not the beginning of reads)
    Yes.

    6) Some of the reads have really been trimmed to very short sizes. Will STAR appropriately discard reads that are below some reasonable size, or do I have to do it manually. If so, what would be the minimum suggested (allowed) read size to be used during mapping for DE analysis?
    Yes, I'd set a size limit. The length depends on the organism - does it have introns, and if so, how long? But even for prokaryotes, with this dataset, I don't see any reason to include stuff below 40bp, at minimum; that won't remove much and will decrease noise.

    7) I really don’t know what to make of “Sequence duplication levels” graph. Neither trimming nor decontamination seemed to have any appreciable effects. Does anyone know what could be the usual culprit causing such big differences, even between biological replicates? Do they have to be dealt with in some way?
    I don't think that's important in RNA-seq, unless you have amplified data... which, hopefully, you don't. Anyway, there's nothing you can do about it with SE quantitative data.

    8) Trimming seems to deal nicely with adapter contamination, but Kmer content graphs still show overrepresentation of certain Kmers at the end of reads. Did I miss any adapters that need to be removed? Should I trim this out somehow, or can I let the STAR soft-clip this during mapping?
    The command you used can only find adapters as short as 13bp. Therefore, it is expected that there would still be adapters after position 77. I usually trim down to mink=11 by default with paired reads; you could go a little farther, down to maybe mink=9 (starting with the raw reads, not the trimmed reads) before you start getting false-positives. Eventually, at maybe mink=7, you will start seeing an inverted kmer enrichment at the tip as genomic sequence that happens to match adapter sequence is preferentially removed. So, no matter what you do, you can't solve it completely without hard-trimming. I'd suggest using mink=9 and letting the rest be soft-clipped.

    With paired reads, the "tbo" flag will eliminate this, but with single-ended reads, "tbo" doesn't work.

    I'm not really sure about #3 and #5.

    Comment

    • vajuli
      Junior Member
      • Jul 2015
      • 5

      #3
      Hi Brian, big thanks for all the answers and suggestions. You're right, the data are SE. I hope you won't mind a quick follow-up regarding (6).

      Yes, I'd set a size limit. The length depends on the organism - does it have introns, and if so, how long? But even for prokaryotes, with this dataset, I don't see any reason to include stuff below 40bp, at minimum; that won't remove much and will decrease noise.
      The organism in question is mouse - does 40 bps still stand? I found in one paper that average mouse intron is ~4.7 kb. But I don't know how the intron length dictates read size limit? Also, is it possible to do the length filtering with BBduk during trimming?

      Once again big thanks for your help!

      Comment

      • Brian Bushnell
        Super Moderator
        • Jan 2014
        • 2709

        #4
        The min length for retaining reads after trimming also depends on whether you are mapping to a genome or transcriptome. For a transcriptome, you can use shorter reads because they will map without splices. For a genome, it's more difficult because when a splice site occurs near the end of a read, say between bases 35 and 36 in a 40bp read, you will only have 5bp overhanging one of the exons - or, you could map it going into the intron with a few mismatches, or clip it. 5bp of anchor is just not enough to confidently support a gap of length 4700bp. The shorter reads are, the higher the "surface area/volume ratio" - the bases near the tips which cannot confidently span splices. So, the more noise and bias you get.

        So, 40 or 50 is probably fine if mapping to the transcriptome, or mapping to the transcriptome and then only mapping the unmapped reads to the genome (which is the default behavior of TopHat and probably STAR if you give them gene annotations). If mapping only to the genome and finding all splice sites denovo, I'd recommend maybe ~70bp for that dataset. The upper limit depends on the fraction of your data you will retain and how short the shortest genes of interest are. But 10bp or 20bp is definitely too short outside of small-RNA studies.

        BBDuk has a "minlen" flag, e.g. "minlen=40", which will discard short reads and can be used simultaneously with trimming. The default is 10 which is why 10 is the lower bound of your current length distribution.

        Comment

        • vajuli
          Junior Member
          • Jul 2015
          • 5

          #5
          Brian, thanks for the help and the lesson, I really appreciate it!

          Comment

          Latest Articles

          Collapse

          • SEQadmin2
            Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
            by SEQadmin2



            Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

            Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
            ...
            10-14-2026, 09:55 AM
          • SEQadmin2
            New Genomics Technologies Take Aim at Long-Standing Limits
            by SEQadmin2


            Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

            We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
            ...
            09-28-2026, 10:25 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 10-22-2026, 11:13 AM
          0 responses
          26 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-22-2026, 10:48 AM
          0 responses
          20 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-15-2026, 10:52 AM
          0 responses
          36 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-14-2026, 05:39 AM
          0 responses
          43 views
          0 reactions
          Last Post SEQadmin2  
          Working...