Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Al'Thor
    Junior Member
    • Jul 2014
    • 4

    Help with variant calling pipeline

    Hi,

    I could really use some help with my variant calling pipeline. I have illumina reads from outbreak bacterial strains, mapped to a reference using bwa, sorted and filtered for quality snps using vcftools and my output are .vcf files for each genome.

    My research question in this instance is quite specific, how many snps do my genomes differ by?

    I know what I would like to do - create a pair wise snp matrix for all genomes showing snp differences. My ideal output would be a table like this

    Sample 1 sample 2 sample 3

    Sample 1 0 4 12

    Sample 2 4 0 1

    Sample 3 12 1 0

    I have a feeling it requires a custom Python script or programming in R?

    Any help, advice or comments would be very much appreciated

    Al'Thor
    Thanks
    Al'Thor
  • dschika
    Member
    • Mar 2010
    • 56

    #2
    Assuming your vcf files contain only the filtered SNPs of a single strain you are interested in, you could try:

    Code:
    # Get number of different (!) SNPs of two vcfs
    cat 1.vcf  2.vcf | grep -v '^#' | awk '{print $1,$2,$4,$5}' | sort | uniq -u | wc -l
    Depending on the number of strains you have, it would of course be helpful/necessary to write a loop.

    Comment

    • HESmith
      Senior Member
      • Oct 2009
      • 512

      #3
      There are a number of tools for filtering VCFs; several are listed in this thread.

      Comment

      • Al'Thor
        Junior Member
        • Jul 2014
        • 4

        #4
        Thanks dschika, will give this a try
        Thanks
        Al'Thor

        Comment

        Latest Articles

        Collapse

        • mylaser
          Reply to Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
          by mylaser
          Kheloyar – Everything You Need to Know About Kheloyaar Login and Kheoyar Id
          If you are looking for an online gaming platform that offers a user-friendly experience, Kheloyar has become a name that many users search for. Whether you're interested in creating a new account, accessing your dashboard through Kheloyaar Login, or learning how to obtain a Kheoyar Id, understanding the platform's features and account process is essential.
          This guide explains everything you need to know about...
          Today, 01:13 AM
        • SEQadmin2
          Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
          by SEQadmin2



          Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
          ...
          07-09-2026, 11:10 AM
        • SEQadmin2
          Cancer Drug Resistance: The Lingering Barrier to Rising Survival
          by SEQadmin2



          Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

          There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
          07-08-2026, 05:17 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 07-09-2026, 10:04 AM
        0 responses
        16 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-08-2026, 10:08 AM
        0 responses
        10 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-07-2026, 11:05 AM
        0 responses
        22 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 07-02-2026, 11:08 AM
        0 responses
        31 views
        0 reactions
        Last Post SEQadmin2  
        Working...