Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • 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

  • #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

    • seqadmin
      Non-Coding RNA Research and Technologies
      by seqadmin




      Non-coding RNAs (ncRNAs) do not code for proteins but play important roles in numerous cellular processes including gene silencing, developmental pathways, and more. There are numerous types including microRNA (miRNA), long ncRNA (lncRNA), circular RNA (circRNA), and more. In this article, we discuss innovative ncRNA research and explore recent technological advancements that improve the study of ncRNAs.

      Nobel Prize for MicroRNA Discovery
      This week,...
      10-07-2024, 08:07 AM
    • seqadmin
      Recent Developments in Metagenomics
      by seqadmin





      Metagenomics has improved the way researchers study microorganisms across diverse environments. Historically, studying microorganisms relied on culturing them in the lab, a method that limits the investigation of many species since most are unculturable1. Metagenomics overcomes these issues by allowing the study of microorganisms regardless of their ability to be cultured or the environments they inhabit. Over time, the field has evolved, especially with the advent...
      09-23-2024, 06:35 AM

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by seqadmin, Today, 07:29 AM
    0 responses
    12 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 10-15-2024, 06:35 AM
    0 responses
    11 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 10-14-2024, 02:44 PM
    0 responses
    12 views
    0 likes
    Last Post seqadmin  
    Started by seqadmin, 10-11-2024, 06:55 AM
    0 responses
    19 views
    0 likes
    Last Post seqadmin  
    Working...
    X