Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • dicty
    Member
    • Nov 2010
    • 28

    countOverlaps problem

    I have problem using countOverlaps. Below is my code.

    counts=countOverlaps(tx_by_gene,"./s_1_sorted.bam")

    tx_by_gene is a GRangesList object which is a list of GRanges objects, where each GRanges object is a gene and the entries are the genomic coordinates of its transcripts.

    Then I get the error message.

    Error in function (classes, fdef, mtable) :
    unable to find an inherited method for function "countOverlaps", for signature "GRangesList", "character"

    What's wrong in my code? How could I run countOverlaps?

    Thanks,
    Dicty
  • SongLi
    Member
    • Oct 2010
    • 19

    #2
    Hi

    I think you need to load the .bam file by Rsamtools, and use countOverlap after that.




    Originally posted by dicty View Post
    I have problem using countOverlaps. Below is my code.

    counts=countOverlaps(tx_by_gene,"./s_1_sorted.bam")

    tx_by_gene is a GRangesList object which is a list of GRanges objects, where each GRanges object is a gene and the entries are the genomic coordinates of its transcripts.

    Then I get the error message.

    Error in function (classes, fdef, mtable) :
    unable to find an inherited method for function "countOverlaps", for signature "GRangesList", "character"

    What's wrong in my code? How could I run countOverlaps?

    Thanks,
    Dicty

    Comment

    Latest Articles

    Collapse

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, 06-09-2026, 11:58 AM
    0 responses
    14 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-05-2026, 10:09 AM
    0 responses
    26 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-04-2026, 08:59 AM
    0 responses
    37 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-02-2026, 12:03 PM
    0 responses
    61 views
    0 reactions
    Last Post SEQadmin2  
    Working...