Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fresh-potato
    Junior Member
    • Mar 2013
    • 1

    #1

    bowtie, how to convert fastq into sam?

    NOW I have a chiq-seq raw data which is fastq format and need to be covert into sam file and finally I want to get a .wig file . I have got bowtie and samtools. Any one knows the command for bowtie to covert fastq into sam ?
  • simonandrews
    Simon Andrews
    • May 2009
    • 870

    #2
    Turning a fastq file into a sam file isn't really a conversion - it's an actual analysis step since you're having to map the data against a reference genome. You'll need to download a genome to map your data to - you can either get the fastq files for the genome you're using and use bowtie-build to index this, or you can get pre-indexed genomes for some of the more common assemblies from the bowtie web site.

    Once you have your genome you'll need to construct a bowtie command to map your data to it. The exact command you use will depend to some extent on the nature of your data and what you're looking for - if you have long reads you might also want to look at bowtie2 which would be required if your alignments are likely to contain insertions or deletions relative to your genome sequence.

    Below is an example bowtie command which is what we'd normally use to map our data.

    Code:
    bowtie -m 1 --strata --best --chunkmbs=512 --sam /path/to/indices input.fastq output.sam
    This would give you a list of uniquely mapped reads in your genome. The -m 1 says only show reads which map exactly once, and the --strata --best say that if you have one alignment which is better than the rest (smaller number of mismatches) then you can report that even if there are other valid but poorer alignments. The --chunkmbs=512 is because on large genomes you can get huge numbers of alignments for some repeat sequences and the program runs out of assigned memory trying to decide which is 'best' and reports an error unless you give it some more memory to play with. Finally the --sam option writes the output in sam format so you don't need to do a conversion afterwards.

    Comment

    Latest Articles

    Collapse

    • SEQadmin2
      Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
      by SEQadmin2



      Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

      Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
      ...
      10-14-2026, 09:55 AM
    • SEQadmin2
      New Genomics Technologies Take Aim at Long-Standing Limits
      by SEQadmin2


      Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

      We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
      ...
      09-28-2026, 10:25 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, 10-22-2026, 11:13 AM
    0 responses
    34 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-22-2026, 10:48 AM
    0 responses
    25 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-15-2026, 10:52 AM
    0 responses
    41 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-14-2026, 05:39 AM
    0 responses
    45 views
    0 reactions
    Last Post SEQadmin2  
    Working...