Seqanswers Leaderboard Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Derek-C
    Junior Member
    • Nov 2012
    • 7

    bam2fastq discarded reads

    Hi all,

    I've been using bam2fastq on my tophat output and it's been great, runs really quickly, except for the number of reads being discarded. For example this was for one of my output files from tophat

    This looks like paired data from lane 239.
    Output will be in x_1.fastq and x_2.fastq
    60465861 sequences in the BAM file
    60465861 sequences exported
    WARNING: 6585459 reads could not be matched to a mate and were not exported

    That's 10% of the reads being discarded, and in other files it's even more (I ran it on another file just now and 17% of the reads were discarded). What I don't understand is that the PE files which were put into tophat were quality filtered with software to directly handle PEs and so both files have the same number of reads and all the reads have mates and both PE files are the same order (tophat freaks out otherwise) so why is bam2fastq discarding these reads? If any reads didn't have a mate then tophat would have returned an error.
    Last edited by Derek-C; 01-14-2013, 04:47 AM.
  • marcowanger
    Senior Member
    • Dec 2008
    • 273

    #2
    I remember Bam2fastq only export read pair. So, all singleton mapped will be discarded. In your case, it may be better to write a small script to parse the singleton out
    Marco

    Comment

    • Derek-C
      Junior Member
      • Nov 2012
      • 7

      #3
      Originally posted by marcowanger View Post
      I remember Bam2fastq only export read pair. So, all singleton mapped will be discarded. In your case, it may be better to write a small script to parse the singleton out
      Are you certain about the singletons thing? It would make sense, butl I just did some checking there with samtools flagstat and according to the numbers I'm looking at for this one accepted_hits.bam file from tophat there were more singleton reads then there were reads discarded by bam2fastq (~3 million more). So if bam2fastq doesn't export singletons, what happened to those 3 million reads.

      Actually there are options in tophat for setting it so that there should be no singletons, hopefully that'll fix this.
      Last edited by Derek-C; 01-14-2013, 07:29 AM.

      Comment

      Latest Articles

      Collapse

      • seqadmin
        Pathogen Surveillance with Advanced Genomic Tools
        by seqadmin




        The COVID-19 pandemic highlighted the need for proactive pathogen surveillance systems. As ongoing threats like avian influenza and newly emerging infections continue to pose risks, researchers are working to improve how quickly and accurately pathogens can be identified and tracked. In a recent SEQanswers webinar, two experts discussed how next-generation sequencing (NGS) and machine learning are shaping efforts to monitor viral variation and trace the origins of infectious...
        Yesterday, 11:48 AM
      • seqadmin
        New Genomics Tools and Methods Shared at AGBT 2025
        by seqadmin


        This year’s Advances in Genome Biology and Technology (AGBT) General Meeting commemorated the 25th anniversary of the event at its original venue on Marco Island, Florida. While this year’s event didn’t include high-profile musical performances, the industry announcements and cutting-edge research still drew the attention of leading scientists.

        The Headliner
        The biggest announcement was Roche stepping back into the sequencing platform market. In the years since...
        03-03-2025, 01:39 PM
      • seqadmin
        Investigating the Gut Microbiome Through Diet and Spatial Biology
        by seqadmin




        The human gut contains trillions of microorganisms that impact digestion, immune functions, and overall health1. Despite major breakthroughs, we’re only beginning to understand the full extent of the microbiome’s influence on health and disease. Advances in next-generation sequencing and spatial biology have opened new windows into this complex environment, yet many questions remain. This article highlights two recent studies exploring how diet influences microbial...
        02-24-2025, 06:31 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 03-20-2025, 05:03 AM
      0 responses
      26 views
      0 reactions
      Last Post seqadmin  
      Started by seqadmin, 03-19-2025, 07:27 AM
      0 responses
      33 views
      0 reactions
      Last Post seqadmin  
      Started by seqadmin, 03-18-2025, 12:50 PM
      0 responses
      25 views
      0 reactions
      Last Post seqadmin  
      Started by seqadmin, 03-03-2025, 01:15 PM
      0 responses
      190 views
      0 reactions
      Last Post seqadmin  
      Working...