Header Leaderboard Ad

Collapse

Help with variant calling pipeline

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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


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

      Comment


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

        Comment

        Latest Articles

        Collapse

        • seqadmin
          Improved Targeted Sequencing: A Comprehensive Guide to Amplicon Sequencing
          by seqadmin



          Amplicon sequencing is a targeted approach that allows researchers to investigate specific regions of the genome. This technique is routinely used in applications such as variant identification, clinical research, and infectious disease surveillance. The amplicon sequencing process begins by designing primers that flank the regions of interest. The DNA sequences are then amplified through PCR (typically multiplex PCR) to produce amplicons complementary to the targets. RNA targets...
          03-21-2023, 01:49 PM
        • seqadmin
          Targeted Sequencing: Choosing Between Hybridization Capture and Amplicon Sequencing
          by seqadmin




          Targeted sequencing is an effective way to sequence and analyze specific genomic regions of interest. This method enables researchers to focus their efforts on their desired targets, as opposed to other methods like whole genome sequencing that involve the sequencing of total DNA. Utilizing targeted sequencing is an attractive option for many researchers because it is often faster, more cost-effective, and only generates applicable data. While there are many approaches...
          03-10-2023, 05:31 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, Yesterday, 01:40 PM
        0 responses
        7 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 03-29-2023, 11:44 AM
        0 responses
        12 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 03-24-2023, 02:45 PM
        0 responses
        20 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 03-22-2023, 12:26 PM
        0 responses
        28 views
        0 likes
        Last Post seqadmin  
        Working...
        X