Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Bowtie - only keeping mapped reads.

    Hi,

    I am trying to map a moderate set of reads, 30M, to a small set of genes I am interested in (only 5kb or so, to find snps). So most of the data is unmapped and redundant. I want bowtie2 to output only the mapped reads, it seems ridiculous to have a 15 Gb sam file for only a few hundred mapped reads. I have tried using --no-unal but it doesn't seem to make any difference. this works:

    samtools view -F 0x04 -b infile.bam > outfile.bam

    but it would seem to make much more sense to get bowtie2 to only output mapped reads.

    Does anyone know what I might be doing wrong.. or perhaps I should give up and use bbmap..

    Thanks,

    S.

  • #2
    --no-unal should work with Bowtie2 (see thread below). Otherwise BBMap is the way to go.

    Discussion of next-gen sequencing related bioinformatics: resources, algorithms, open source efforts, etc

    Comment


    • #3
      Check that you have the latest version of Bowtie2

      You can also pipe the output of Bowtie2 to samtools view in one command, but it shouldn't be necessary.

      bowtie2 -S whatever | samtools view -bSF4 - > mapped.bam

      "-b means that you want to output to be .bam -S means that the input is .sam -F4 means that reads that have the 4 flag will not be included. That'll be the mapped reads."
      Discussion of next-gen sequencing related bioinformatics: resources, algorithms, open source efforts, etc
      Last edited by blancha; 11-13-2014, 08:28 PM.

      Comment

      Latest Articles

      Collapse

      • 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
      • seqadmin
        Strategies for Sequencing Challenging Samples
        by seqadmin


        Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
        03-22-2024, 06:39 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 04-11-2024, 12:08 PM
      0 responses
      31 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 10:19 PM
      0 responses
      32 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 09:21 AM
      0 responses
      28 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-04-2024, 09:00 AM
      0 responses
      53 views
      0 likes
      Last Post seqadmin  
      Working...
      X