Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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


    • #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


      • #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


        • #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

          • seqadmin
            Essential Discoveries and Tools in Epitranscriptomics
            by seqadmin


            The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist on Modified Bases...
            Today, 07:01 AM
          • seqadmin
            Current Approaches to Protein Sequencing
            by seqadmin


            Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
            04-04-2024, 04:25 PM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, 04-11-2024, 12:08 PM
          0 responses
          37 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 10:19 PM
          0 responses
          41 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 09:21 AM
          0 responses
          35 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-04-2024, 09:00 AM
          0 responses
          54 views
          0 likes
          Last Post seqadmin  
          Working...
          X