Unconfigured Ad

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

    #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
      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, Yesterday, 11:13 AM
    0 responses
    19 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, Yesterday, 10:48 AM
    0 responses
    18 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-15-2026, 10:52 AM
    0 responses
    36 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-14-2026, 05:39 AM
    0 responses
    42 views
    0 reactions
    Last Post SEQadmin2  
    Working...