Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ulitskyi
    Junior Member
    • Apr 2012
    • 2

    .wig files for strand-specific paired-end RNA-Seq

    Hi,

    Is there a simple way to make strand-specific .wig file (i.e., a separate track for + and - strand) from paired-end data (where the second read maps to the other strand)? genomeCoverageBed doesn't seem to handle this well. Any alternatives?

    Igor.
  • Dario1984
    Senior Member
    • Jun 2011
    • 166

    #2
    It's quick using R with the packages Rsamtools, GenomicRanges, and rtracklayer.

    Code:
    library(Rsamtools)
    library(rtracklayer)
    myReads <- readGappedAlignments("RNAseqMapping.bam")
    coveragePlus <- coverage(myReads[strand(myReads) ==  '+'])
    export(coveragePlus, "RNAplus.wig")
    coverageMinus <- coverage(myReads[strand(myReads) ==  '-'])
    export(coverageMinus, "RNAminus.wig")

    Comment

    • ulitskyi
      Junior Member
      • Apr 2012
      • 2

      #3
      Thanks! But this appears to suffer from the same problem as genomeCoverageBed - I get similar coverage on both strands, because if the transcript is on the + strand, read #2 maps to the - strand, and contributes to the coverage on the - strand... Is there any way around this?

      Comment

      • Dario1984
        Senior Member
        • Jun 2011
        • 166

        #4
        Good point. You should ask about it on the Bioconductor mailing list. They implement feature requests quickly.

        Comment

        • frozenlyse
          Senior Member
          • Sep 2008
          • 135

          #5
          Just flip the strand of the #2 reads

          Comment

          Latest Articles

          Collapse

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 06-05-2026, 10:09 AM
          0 responses
          14 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-04-2026, 08:59 AM
          0 responses
          24 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-02-2026, 12:03 PM
          0 responses
          28 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 06-02-2026, 11:40 AM
          0 responses
          22 views
          0 reactions
          Last Post SEQadmin2  
          Working...