Seqanswers Leaderboard 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

        • seqadmin
          Pathogen Surveillance with Advanced Genomic Tools
          by seqadmin




          The COVID-19 pandemic highlighted the need for proactive pathogen surveillance systems. As ongoing threats like avian influenza and newly emerging infections continue to pose risks, researchers are working to improve how quickly and accurately pathogens can be identified and tracked. In a recent SEQanswers webinar, two experts discussed how next-generation sequencing (NGS) and machine learning are shaping efforts to monitor viral variation and trace the origins of infectious...
          03-24-2025, 11:48 AM
        • 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

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, 03-20-2025, 05:03 AM
        0 responses
        41 views
        0 reactions
        Last Post seqadmin  
        Started by seqadmin, 03-19-2025, 07:27 AM
        0 responses
        51 views
        0 reactions
        Last Post seqadmin  
        Started by seqadmin, 03-18-2025, 12:50 PM
        0 responses
        38 views
        0 reactions
        Last Post seqadmin  
        Started by seqadmin, 03-03-2025, 01:15 PM
        0 responses
        193 views
        0 reactions
        Last Post seqadmin  
        Working...