Seqanswers Leaderboard Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • JdeBruin
    Member
    • Jun 2013
    • 25

    Extract flanking sequence of SNP call

    Hi all.

    I have mapped sequencing data to a reference using BWA and called SNP using samtools mpileup and generated a vcf using bcftools. What I would like to achieve is to extract the SNP along with a 35base flanking sequences. I would appreciate any help with this.

    Thanks
  • westerman
    Rick Westerman
    • Jun 2008
    • 1104

    #2
    bedtools always comes to mind when asking questions like "how to extract sequence". It should be easy to convert the VCF single coordinate into the start & end coordinates for a BED file (Excel or other spreadsheet program or a simple Perl/Python script). Then use fastaFromBed.

    Comment

    • swbarnes2
      Senior Member
      • May 2008
      • 910

      #3
      samtools faidx, when given genomic coordinates, will make a fasta of the desired region. That another way, using software you've already got.

      Comment

      Latest Articles

      Collapse

      • seqadmin
        New Genomics Tools and Methods Shared at AGBT 2025
        by seqadmin


        This year’s Advances in Genome Biology and Technology (AGBT) General Meeting commemorated the 25th anniversary of the event at its original venue on Marco Island, Florida. While this year’s event didn’t include high-profile musical performances, the industry announcements and cutting-edge research still drew the attention of leading scientists.

        The Headliner
        The biggest announcement was Roche stepping back into the sequencing platform market. In the years since...
        03-03-2025, 01:39 PM
      • seqadmin
        Investigating the Gut Microbiome Through Diet and Spatial Biology
        by seqadmin




        The human gut contains trillions of microorganisms that impact digestion, immune functions, and overall health1. Despite major breakthroughs, we’re only beginning to understand the full extent of the microbiome’s influence on health and disease. Advances in next-generation sequencing and spatial biology have opened new windows into this complex environment, yet many questions remain. This article highlights two recent studies exploring how diet influences microbial...
        02-24-2025, 06:31 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, Today, 05:03 AM
      0 responses
      16 views
      0 reactions
      Last Post seqadmin  
      Started by seqadmin, Yesterday, 07:27 AM
      0 responses
      13 views
      0 reactions
      Last Post seqadmin  
      Started by seqadmin, 03-18-2025, 12:50 PM
      0 responses
      15 views
      0 reactions
      Last Post seqadmin  
      Started by seqadmin, 03-03-2025, 01:15 PM
      0 responses
      185 views
      0 reactions
      Last Post seqadmin  
      Working...