Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • melissachua
    Junior Member
    • Apr 2022
    • 1

    Bowtie: How do I map files to reference genome?

    I want to map out1.fq and out2.fq to the reference genome `NC_008253.fa.fai` based on the following conditions:
    • - seed length=24
      - hits written in sam file format
      - maximum insert size=600
      - mates are in the forward/reverse orientation
      - input files are fastq format
      - output the wall-clock time
      - seed sequence mismatches=3
      - output the mapped and unmapped reads in separate files



    Code:
    bowtie -q  out1.fq out2.fq -x 1.bt2 NC_008253.fa.fai -l/--seedlen 24 -S/--sam -X/--maxins 600 -t/--time -v 3 > mapped
  • jorondo
    Junior Member
    • Mar 2022
    • 6

    #2
    Hi Melissa,

    I'm assuming you did not test this command and are wondering if it will work. From the look of it it will not. The first thing you'll want to do is to choose between the single-character option or the long, more readable one (e.g. choose between -l or --seedlen) because you can't provide both. The short one is more raw and makes for a very short command, but the longer one is more readable and may be useful for future you or colleagues who might use that command.

    Then, before mapping to a reference genome, you need to index it using the bowtie-build command (or bowtie2-build command, depending on your input data). It will create an index for your genome; that index is what will be used by the bowtie(2) command to align your reads.

    Then, I recommend testing your command and seeing what happens. The logs will help you troubleshoot, and if google can't help you make sense of errors you might have, don't hesitate to ask about it here (or to browse this or other forums, as it is highly probable someone else ran into the same errors as you well.

    Finally, you might want to evaluate wether you need bowtie or bowtie2; if you're not sure, this might help.

    Cheers !

    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

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, Today, 05:37 AM
    0 responses
    5 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-26-2026, 11:10 AM
    0 responses
    16 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-17-2026, 06:09 AM
    0 responses
    49 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-09-2026, 11:58 AM
    0 responses
    109 views
    0 reactions
    Last Post SEQadmin2  
    Working...