Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SWP
    Member
    • Nov 2010
    • 20

    #1

    mpileup question...

    Hello-

    Here's a tricky one...I've been beating my head for several days trying to figure out what's going on. Here's the project: we're looking at a nuclear gene panel of 198 genes, enriched using RainDance (so there's no risk capturing homologous genes outside the gene set...RainDance reported that their primer sets are all unique). We ran one sample per HiSeq lane.

    That part was all easy. The alignment, which I expected to be straightforward has become a challenge. Aligning against the full human genome a lot of coverage is lost do regions of homology in the genome outside the gene set. To get around this problem and preserve genomic positions, I masked (replaced nucleotide with N) at nonamplified positions in the genome. The result is a genome full of N's except for the exons of the 198 genes of interest. The alignment (using BWA) works fine and looks great. However, variant detection has been an issue. I tried a variety of different settings, but ultimately settled on what's listed on the mpileup page:

    1. samtools mpileup -uf ref.fa aln1.bam aln2.bam | bcftools view -bvcg - > var.raw.bcf
    2. bcftools view var.raw.bcf | vcfutils.pl varFilter -D100 > var.flt.vcf

    The only modification is I set -D to something like 1M (I have very deep coverage and didn't want to rule anything out because of high coverage).

    After running vcfutils there are zero variants detected. When I look at the raw bcf file there are >400000 variants. When I look at them, the reference allele at every position is 'N'. So, I expect some reference positions to be 'N' since since I masked the sequences under the primers, but these should be minimal to be sure. I double checked sequences as well by looking at the masked reference genome I built and even where the reference is not N, bcftools is reporting that it is.

    Any ideas about what could be happening to make bcftools think every position is N? Any suggestions would be greatly appreciated...thanks.
  • swbarnes2
    Senior Member
    • May 2008
    • 910

    #2
    The simplest explanation is that there is a naming problem. Double-check that it's the exact same file that you aligned with, that the bwa index and the samtools index were really built from the exact same file, and that the names in the .bam file match that reference. That causes the all-N thing to happen, it's not realizing that the reference fasta you gave it matches what the .bam files says reads were aligned to.

    Comment

    • colindaven
      Senior Member
      • Oct 2008
      • 417

      #3
      I had this problem a few months back. As swbarnes said it may be a naming problem with the headers.

      I seem to recall also having to generate a fasta index with the samtools faidx command in the same directory as well, which may have solved the problem.

      Comment

      • SWP
        Member
        • Nov 2010
        • 20

        #4
        solved...

        Originally posted by colindaven View Post
        I had this problem a few months back. As swbarnes said it may be a naming problem with the headers.

        I seem to recall also having to generate a fasta index with the samtools faidx command in the same directory as well, which may have solved the problem.
        Headers were fine. The problem was that when I rewrote the masked genome out, I put each chromosome on one line, and that was causing a seg fault in samtools faidx. Once I broke it into multiple lines and removed blank lines it worked fine. Thanks for the help

        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, Yesterday, 11:13 AM
        0 responses
        16 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, Yesterday, 10:48 AM
        0 responses
        17 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-15-2026, 10:52 AM
        0 responses
        35 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-14-2026, 05:39 AM
        0 responses
        42 views
        0 reactions
        Last Post SEQadmin2  
        Working...