Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • shis
    Member
    • Apr 2014
    • 16

    BWA alignment for multiple genotypes

    Hello expert members,
    I would like to get your advice regarding BWA alignment options. I found in the bwa manual that it uses only two read files for paired-end and one read file for single-end data at a time. However, I have 3 genotypes (each has two fastq files) to identify and compare SNPs among them. According to the BWA guideline, I used two (read1.fastq and read2.fastq) files of one genotype at a time to make alignment against the reference genome using the following command line:

    bwa mem ref.fasta BH_1.fastq_filtered BH_2.fastq_filtered > aln-BH.sam
    bwa mem ref.fasta Cyp_1.fastq_filtered Cyp_2.fastq_filtered > aln-Cyp.sam
    bwa mem ref.fasta SR_1.fastq_filtered SR_2.fastq_filtered > aln-SR.sam

    Now I have 3 *.sam files for the 3 genotypes for SNPs variant calling. My question - is it possible to use all 6 fastq files from 3 genotypes in the single command to get a single *.sam file like below:

    bwa mem ref.fasta BH_1.fastq_filtered BH_2.fastq_filtered Cyp_1.fastq_filtered Cyp_2.fastq_filtered SR_1.fastq_filtered SR_1.fastq_filtered > aln-bwa.sam

    Thank you so much for taking your valuable time and I would appreciate your advice.

    Thanks
    Shofi
  • shis
    Member
    • Apr 2014
    • 16

    #2
    How to compare vcf file containing snps between two cultivars

    Hi all,
    I have three vcf files containing SNPs of three different cultivars. The SNPs were called using GATK's UnifiedGenotyper program. After stringent filtering with GATK's hard filters, I have approx. approx. 3.5 millions SNPs in the three cultivars. Now I would like to compare between two cultivars based on the vcf files to identify common and specific SNPs in vcf1/vcf2, vcf1/vcf3 and vcf2/vcf3, and also like to generate venn diagram.

    Can anyone suggest me - which tool I can use to identify common and specific SNPs between two cultivars? I do appreciate your help.
    Last edited by shis; 01-21-2017, 09:18 AM.

    Comment

    • Brian Bushnell
      Super Moderator
      • Jan 2014
      • 2709

      #3
      Coincidentally, I just released a program for this purpose, in the BBMap package. You can use it like this:

      Code:
      comparevcf.sh in=sample1.vcf,sample2.vcf out=difference.vcf subtract
      It supports union, intersection, and subtraction. Note that subtraction is order-dependent while the other operations are not.

      Comment

      Latest Articles

      Collapse

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 06-05-2026, 10:09 AM
      0 responses
      11 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-04-2026, 08:59 AM
      0 responses
      23 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-02-2026, 12:03 PM
      0 responses
      28 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-02-2026, 11:40 AM
      0 responses
      22 views
      0 reactions
      Last Post SEQadmin2  
      Working...