Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Compare two bam files.

    I have used two different map software to map my pair-end reads.

    I want to how many reads are reported as mapped by these two map software and how many reads only reported in one map software.

    Is there some easy ways to do this?

    Thank you

  • #2
    Is your aim is to compare the % of mapped reads? Then you should convert this to sam file. There is a related query at this thread: http://seqanswers.com/forums/showthr...hlight=upendra.

    Good luck!

    Comment


    • #3
      Yes. I want to compare how many mapped reads are overlap in two method.

      Thanks

      Originally posted by upendra_35 View Post
      Is your aim is to compare the % of mapped reads? Then you should convert this to sam file. There is a related query at this thread: http://seqanswers.com/forums/showthr...hlight=upendra.

      Good luck!

      Comment


      • #4
        Do you use R ? It is easy to do. You need the packages Rsamtools and GenomicRanges installed.

        Rsamtools has a function called readBamGappedAlignments. Use it on each file to read the BAM file into memory.

        Then, use the findOverlaps function in the package GenomicRanges to find which reads in one sample overlap with reads in the other.

        You don't need to create unnecessary SAM files on your hard drive this way.

        Comment


        • #5
          you can use "samtools view" to output a *.bam file on the go.
          however using R + IRanges seems to be the best option for me. Else you'll have to find modules on interval trees (if any) and implement in perl. But why reinvent the wheel if the purpose here is to get the job done.

          Comment

          Latest Articles

          Collapse

          • seqadmin
            Advancing Precision Medicine for Rare Diseases in Children
            by seqadmin




            Many organizations study rare diseases, but few have a mission as impactful as Rady Children’s Institute for Genomic Medicine (RCIGM). “We are all about changing outcomes for children,” explained Dr. Stephen Kingsmore, President and CEO of the group. The institute’s initial goal was to provide rapid diagnoses for critically ill children and shorten their diagnostic odyssey, a term used to describe the long and arduous process it takes patients to obtain an accurate...
            12-16-2024, 07:57 AM
          • seqadmin
            Recent Advances in Sequencing Technologies
            by seqadmin



            Innovations in next-generation sequencing technologies and techniques are driving more precise and comprehensive exploration of complex biological systems. Current advancements include improved accessibility for long-read sequencing and significant progress in single-cell and 3D genomics. This article explores some of the most impactful developments in the field over the past year.

            Long-Read Sequencing
            Long-read sequencing has seen remarkable advancements,...
            12-02-2024, 01:49 PM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, 12-17-2024, 10:28 AM
          0 responses
          26 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 12-13-2024, 08:24 AM
          0 responses
          43 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 12-12-2024, 07:41 AM
          0 responses
          29 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 12-11-2024, 07:45 AM
          0 responses
          42 views
          0 likes
          Last Post seqadmin  
          Working...
          X