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

    • kinpict.com
      Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
      by kinpict.com
      The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
      Today, 06:37 PM
    • SEQadmin2
      16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
      by SEQadmin2





      NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
      10-30-2026, 06:46 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, 11-12-2026, 07:59 AM
    0 responses
    27 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 11-05-2026, 09:25 AM
    0 responses
    35 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 11-03-2026, 11:54 AM
    2 responses
    56 views
    0 reactions
    Last Post kinpict.com  
    Started by SEQadmin2, 10-28-2026, 09:57 AM
    0 responses
    175 views
    0 reactions
    Last Post SEQadmin2  
    Working...