Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jgibbons1
    Senior Member
    • Oct 2009
    • 135

    #1

    bowtie map only first 50 nt of reads

    Hi all,

    My Data:
    Illumina whole genome data from ~160 individuals. Reads were initially 100 nt but after quality trimming I have a distribution of read lengths between 50-100 nt.

    My Problem:
    I am interested in regions of the genome that are not annotated. The loci are very small (~80 bp). Because some of my reads are larger than my reference, I can not map them against my reference loci. My solution was to only map the first 50 nt of my reads. However, I can't figure out an efficient way to do this. Bowtie1 has an option to trim bases from the 5' or 3' end of the read (-5/--trim5 <int> and -3/--trim3 <int>), but instead of trimming off bases from a side, I'd rather just use the first 50 of each read.

    Is there a way to do this using bowtie? I'm trying to avoid going back to the raw data...

    Thanks,

    John
  • Brian Bushnell
    Super Moderator
    • Jan 2014
    • 2709

    #2
    John,

    If you map them with BBMap, they can go off the ends of the scaffolds without a problem.

    bbmap.sh in=reads.fq ref=loci.fa out=mapped.sam minratio=0.5

    The "minratio" flag specifies what fraction of a read must be inside the scaffold. You could also, of course, just grab the loci with more padding on the sides...

    Well, there's also a tool in that package that can make the reads 50bp:

    reformat.sh in=reads.fq out=trimmed.fq ftr=50


    That will trim the right side of reads down to length 50. But that seems like a waste of data, and it will make mapping less precise, so I don't recommend it. If I were you, I WOULD go back to the original data and map it untrimmed using BBMap.

    Comment

    • jgibbons1
      Senior Member
      • Oct 2009
      • 135

      #3
      Brian, thanks for the heads up about BBMap! The "minratio" flag sounds like a very nice alternative to arbitrary trimming. I think I'll try both methods and see how they compare.

      I was asking if this could be accomplished in bowtie specifically, because I've used it quite extensively to measure other elements in the genome and I'm afraid if I switch to a different mapping program I will have to redo all of the analysis.

      Comment

      • Brian Bushnell
        Super Moderator
        • Jan 2014
        • 2709

        #4
        If you're locked in to bowtie, then just use reformat.sh to first trim reads to the fixed length, then map with bowtie. Of course even trimmed, some of them will still hang off the sides, which may bias the analysis depending on what you're trying to measure. For example, a shorter scaffold will end up with lower coverage.

        Comment

        • dpryan
          Devon Ryan
          • Jul 2011
          • 3478

          #5
          If you're willing to use bowtie2 rather than bowtie1 then just use --local alignment. You'll never get global alignment to work if your reads are longer than the regions you map against otherwise (unless you pad things, of course).

          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
          60 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-22-2026, 10:48 AM
          0 responses
          42 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-15-2026, 10:52 AM
          0 responses
          74 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-14-2026, 05:39 AM
          0 responses
          73 views
          0 reactions
          Last Post SEQadmin2  
          Working...