Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shawpa
    Member
    • Aug 2011
    • 73

    #1

    getting meaningful allele out of vcf file

    I have generated a VCF file from a kinome capture experiment after all the filtering steps. I have a 9.5Mb vcf file from GATK and I don't know what to do with it. Basically I would like to generate a file for each chr that has columns such as position, number of reads, how many times allele is called etc. I don't have any idea what program to use. I don't really care about annotating at this point, just want to see allele calls in a readable text file. Please help.
  • pbluescript
    Senior Member
    • Nov 2009
    • 224

    #2
    You should check out bedtools.

    Comment

    • shawpa
      Member
      • Aug 2011
      • 73

      #3
      I was looking into bedtools but I don't know which command to use.

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        The VCF file is a text file with that information in it (largely separated into columns in fact). You can just open it in your favorite text document view/editor (MS Word, Notepad, gvim, Preview.app). Frankly, the easiest way to split the calls by chromosome is probably just to use grep (assuming you're using Linux or a Mac). So "grep chrX file.vcf > chrX.vcf" for each chromosome. I'm sure someone can think of a short one line command with awk and sed to avoid having to grep for each chromosome, but frankly you probably have a small number of chromosomes so this won't be very labor intensive. Note that the result of the grep command won't really be a valid VCF file, since you'll miss much of the header, but that won't matter if you just want to go through it by hand.

        Comment

        • shawpa
          Member
          • Aug 2011
          • 73

          #5
          Originally posted by dpryan View Post
          The VCF file is a text file with that information in it (largely separated into columns in fact). You can just open it in your favorite text document view/editor (MS Word, Notepad, gvim, Preview.app). Frankly, the easiest way to split the calls by chromosome is probably just to use grep (assuming you're using Linux or a Mac). So "grep chrX file.vcf > chrX.vcf" for each chromosome. I'm sure someone can think of a short one line command with awk and sed to avoid having to grep for each chromosome, but frankly you probably have a small number of chromosomes so this won't be very labor intensive. Note that the result of the grep command won't really be a valid VCF file, since you'll miss much of the header, but that won't matter if you just want to go through it by hand.
          Thanks! I get that this is probably a stupid question, but if I type grep chr1, it pulls chr1, 11, 12, 13 etc. What am I doing wrong?

          Comment

          • pbluescript
            Senior Member
            • Nov 2009
            • 224

            #6
            Originally posted by shawpa View Post
            Thanks! I get that this is probably a stupid question, but if I type grep chr1, it pulls chr1, 11, 12, 13 etc. What am I doing wrong?
            Use grep -w chr1

            Comment

            • dpryan
              Devon Ryan
              • Jul 2011
              • 3478

              #7
              Originally posted by shawpa View Post
              Thanks! I get that this is probably a stupid question, but if I type grep chr1, it pulls chr1, 11, 12, 13 etc. What am I doing wrong?
              Nothing, I should have foreseen that! Mea culpa. There's a "word boundary" switch you can give to grep (at least on my computer). So try "grep -w chrX file.vcf > chrX.vcf". That should work better!

              Comment

              Latest Articles

              Collapse

              • 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, detection...
                Today, 06:46 AM
              • 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

              ad_right_rmr

              Collapse

              News

              Collapse

              Topics Statistics Last Post
              Started by SEQadmin2, 10-28-2026, 09:57 AM
              0 responses
              23 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-28-2026, 09:51 AM
              0 responses
              15 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-22-2026, 11:13 AM
              0 responses
              68 views
              0 reactions
              Last Post SEQadmin2  
              Started by SEQadmin2, 10-22-2026, 10:48 AM
              0 responses
              48 views
              0 reactions
              Last Post SEQadmin2  
              Working...