Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ronton
    Member
    • Jun 2014
    • 34

    How to check for mutations common across all samples?

    I have .bam, .vcf, and ANNOVAR .csv files for several samples.

    Is there a straightforward way to sort or view mutations that are the most common or present in several samples?

    I was thinking of trying to sort the variant location columns in ascending order and line them up for all the samples, but then how would I create a list of the most common variants?

    Any ideas are appreciated, thank you.
  • blakeoft
    Member
    • Oct 2013
    • 79

    #2
    I had to do this once. It's not a perfect solution, but check out this thread: Get common lines from multiple files. Specifically, look at what the user Radoulov posts. Unfortunately, the solution is just provided and not explained so it might be hard to tweak it.

    You'll probably have to take out a few columns of your vcf though. If you just want the chrom, pos and alt, you could do:
    Code:
    awk '{print $1,$2,$5}' file.vcf
    I'm sure there are some other things that you would have to do with the output if it's not exactly what you want, but I think it can be done with a few unix commands.

    Edit: One more thing. If you wanted to do several pairwise comparisons (which you probably don't), look into using unix's comm.
    Last edited by blakeoft; 07-16-2014, 12:14 PM.

    Comment

    • ronton
      Member
      • Jun 2014
      • 34

      #3
      Thank you for the help, I was able to do something with what you suggested.

      It looks like many of the samples have tons of the same mutations so I'm not sure how fruitful this little test was. Perhaps I can refine it.

      Comment

      • blakeoft
        Member
        • Oct 2013
        • 79

        #4
        You might also filter out the variants in dbsnp, or at least do them separately.

        Comment

        • swbarnes2
          Senior Member
          • May 2008
          • 910

          #5
          Programs like BEDTools can give you the intersection of multiple .vcf files.

          Comment

          Latest Articles

          Collapse

          • GATTACAT
            Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
            by GATTACAT
            Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
            07-01-2026, 11:43 AM
          • SEQadmin2
            Nine Things a Sample Prep Scientist Thinks About Before Sequencing
            by SEQadmin2


            I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

            Here are nine questions we think about, in roughly the order they matter, before...
            06-18-2026, 07:11 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 07-02-2026, 11:08 AM
          0 responses
          16 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-30-2026, 05:37 AM
          0 responses
          17 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-26-2026, 11:10 AM
          0 responses
          21 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-17-2026, 06:09 AM
          0 responses
          54 views
          0 reactions
          Last Post SEQadmin2  
          Working...