Header Leaderboard Ad

Collapse

Single stranded coverage from sam/bam

Collapse

Announcement

Collapse

SEQanswers June Challenge Has Begun!

The competition has begun! We're giving away a $50 Amazon gift card to the member who answers the most questions on our site during the month. We want to encourage our community members to share their knowledge and help each other out by answering questions related to sequencing technologies, genomics, and bioinformatics. The competition is open to all members of the site, and the winner will be announced at the beginning of July. Best of luck!

For a list of the official rules, visit (https://www.seqanswers.com/forum/sit...wledge-and-win)
See more
See less
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Single stranded coverage from sam/bam

    Hi all,

    Does anyone know of a fast, handy way to calculate coverage of the forward and reverse strands in a genome independently?

    I have a (really hacky) script that works on my data but was hoping someone has a more elegant solution. At the moment, I've been sorting my sam file into a fwd.reads.sam and rev.reads.sam, converting to bam files and then using Aaron Quinlan's bedTools (which is fantastic), like so...

    genomeCoverageBed -d -ibam FWD.READS.EXAMPLE.bam -g MY_genome_file.txt > SINGLE_STRAND_COVERAGE.tsv`;

    Any hope there's a way to do this single strand coverage calculation directly on the bam files and avoid all the icky sorting I've been doing?

    Thanks!!!
    Lizzy

  • #2
    genomeCoverageBed has a "-strand" flag

    Comment


    • #3
      doh! missed that, thanks!!

      Comment

      Latest Articles

      Collapse

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 06-01-2023, 08:56 PM
      0 responses
      9 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 06-01-2023, 07:33 AM
      0 responses
      9 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-31-2023, 07:50 AM
      0 responses
      4 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-26-2023, 09:22 AM
      0 responses
      11 views
      0 likes
      Last Post seqadmin  
      Working...
      X