Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Samtools filtering question

    I used Samtools and bcftools to generate bcf files and then vcf files from the original BAM file containing RNA-seq data. Some of the publications i have read which make use of Samtools talk of filtering based on read quality, phred score, and depth. What are the typical parameters you use for these? The commands are as follows:

    samtools view -bh -q(min_MapQ) in.bam > out.bam

    samtools mpileup -uf in.ref.fa –Q(min_phred_Score) in.bam > out.bam

    bcftools view var.raw.bcf | vcfutils.pl varFilter –D(max_depth) > var.flt.vcf

    I did the alignment once using Tophat and once using BWA so that i have two sets of BAM files for the same RNA-seq data. Do the Samtools filtering parameters depend on the alignment algorithm used?

  • #2
    There are no hard and fast rules when it comes to filtering, typically. In terms of depth, the idea is that all else being equal, the more reads you have supporting a call, the more likely the call is to be correct. If you have a homozygous position, all reads should support it if there are no errors anywhere. The reason more read depth can be really useful is because positions can be heterozygous, for example, if you have 6 reads covering a heterozygous site and all 6 match the wildtype, you may call it homozygous wildtype. With 12 reads, it's much less likely to have all 12 match the wildtype for a heterozygous site.

    Read quality and phred score of the call are somewhat intertwined. You can have a fairly high read depth but have many of the reads align with a poor mapping quality score; this implies a lot of those reads may not in fact come from the region they were aligned too (or perhaps they do). In that case, your read depth is artificially high, in a sense.

    I have not analyzed RNA-Seq data so I do not want to pretend I know the normal metrics used for filtering. I do regularly call variants from sequencing data. For that, I use the varFilter as you showed. Other than that, the only thing I consider regarding filtering is coverage. I feel 10x is generally an acceptable cutoff to use, with higher or lower being fine depending on the situation.

    Comment


    • #3
      I did the [rna seq] alignment once using Tophat and once using BWA

      What was your reference genome that you aligned to using BWA?

      Comment


      • #4
        Originally posted by Richard Finney View Post
        I did the [rna seq] alignment once using Tophat and once using BWA

        What was your reference genome that you aligned to using BWA?
        UCSC hg 19.

        Comment


        • #5
          Originally posted by Heisman View Post
          There are no hard and fast rules when it comes to filtering, typically. In terms of depth, the idea is that all else being equal, the more reads you have supporting a call, the more likely the call is to be correct. If you have a homozygous position, all reads should support it if there are no errors anywhere. The reason more read depth can be really useful is because positions can be heterozygous, for example, if you have 6 reads covering a heterozygous site and all 6 match the wildtype, you may call it homozygous wildtype. With 12 reads, it's much less likely to have all 12 match the wildtype for a heterozygous site.

          Read quality and phred score of the call are somewhat intertwined. You can have a fairly high read depth but have many of the reads align with a poor mapping quality score; this implies a lot of those reads may not in fact come from the region they were aligned too (or perhaps they do). In that case, your read depth is artificially high, in a sense.

          I have not analyzed RNA-Seq data so I do not want to pretend I know the normal metrics used for filtering. I do regularly call variants from sequencing data. For that, I use the varFilter as you showed. Other than that, the only thing I consider regarding filtering is coverage. I feel 10x is generally an acceptable cutoff to use, with higher or lower being fine depending on the situation.
          Thank you.

          Comment

          Latest Articles

          Collapse

          • seqadmin
            Current Approaches to Protein Sequencing
            by seqadmin


            Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
            04-04-2024, 04:25 PM
          • seqadmin
            Strategies for Sequencing Challenging Samples
            by seqadmin


            Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
            03-22-2024, 06:39 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, 04-11-2024, 12:08 PM
          0 responses
          30 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 10:19 PM
          0 responses
          32 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 09:21 AM
          0 responses
          28 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-04-2024, 09:00 AM
          0 responses
          52 views
          0 likes
          Last Post seqadmin  
          Working...
          X