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

      • SEQadmin2
        Nine Things a Sample Prep Scientist Thinks About Before Sequencing
        by SEQadmin2


        I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.


        Here are nine questions we think about, in roughly the order they matter, before...
        06-18-2026, 07:11 AM
      • SEQadmin2
        From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
        by SEQadmin2


        Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


        The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
        ...
        06-02-2026, 10:05 AM
      • SEQadmin2
        Single-Cell Sequencing at an Inflection Point: Early Impacts of New Platforms and Emerging Trends
        by SEQadmin2


        With the launch of new single-cell sequencing platforms in 2026, the field stands at an exciting inflection point. This article surveys the most impactful advances in the field and discusses how they’re reshaping research in cancer, immunology, and beyond.


        Introduction

        Single-cell sequencing technologies have undergone remarkable advances over the past decade, transitioning from low-throughput experimental approaches to highly scalable platforms capable of...
        05-22-2026, 06:42 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 06-17-2026, 06:09 AM
      0 responses
      24 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-09-2026, 11:58 AM
      0 responses
      40 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-05-2026, 10:09 AM
      0 responses
      47 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-04-2026, 08:59 AM
      0 responses
      49 views
      0 reactions
      Last Post SEQadmin2  
      Working...