Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • SPP and Rsamtools Not Playing Nicely

    Hello all,

    I'm trying to analyze my ChIP-seq dataset using SPP but I keep getting the following error when I try to load my BAM files:

    "Rsamtools Bioconductor package is now required for BAM file support. Please install"

    The issue is that I have Rsamtools installed via biocLite. I can load it with no errors, and I see it in my RPackages folder. Has anyone run into a similar issue and know of a solution? I'm sure it's just a configuration problem somewhere on my end...

    Best,

    Bob

  • #2
    I'll answer my own question. When I dove into the source code a bit I found the following statement:

    if (!is.element("fastcluster", installed.packages()[, 1])) {
    stop("Rsamtools Bioconductor package is now required for BAM file support. Please install")

    I installed fastcluster (not included in the Rsamtools installation) and now it runs. Just a poorly worded warning.

    Comment


    • #3
      Thanks for taking the time to document the answer! Should help someone searching for this error down the road.

      Comment


      • #4
        Originally posted by jazz710 View Post
        I'll answer my own question. When I dove into the source code a bit I found the following statement:

        if (!is.element("fastcluster", installed.packages()[, 1])) {
        stop("Rsamtools Bioconductor package is now required for BAM file support. Please install")

        I installed fastcluster (not included in the Rsamtools installation) and now it runs. Just a poorly worded warning.
        Thank you jazz710 for sharing. I am a rookie for R coding and data analysis. I have a really naive question: How to import my RNA-Seq alignment files into R?

        My workflow: I upload my raw RNA-Seq data to the Basespace website, and used the Tophat application. After alignment, it provides the alignment files (.bam). I download it to my local Mac but I don't know how to import them to R studio with Rsamtools or other functions.

        Could you kindly tell me, please? Thank you very much.

        Comment


        • #5
          For my data this is the header for my code:

          # Load the libraries into R
          library(spp)
          library(Rsamtools)

          # ONLY NEED THIS IF YOU WANT TO RUN ANALYSES ON MULTIPLE PROCESSORS (10 in this case)
          library(snow)
          cluster <- makeCluster(10)


          data <- read.bam.tags(XYZ.bam)

          -------------------------------------------------------------------------------------------------------------------
          That worked for me! Note, to read in BAM files there a handful of prerequisite programs you need as well.

          Here's a tutorial link I followed:
          Last edited by jazz710; 03-14-2016, 08:11 AM. Reason: Added tutorial link

          Comment

          Latest Articles

          Collapse

          • seqadmin
            Best Practices for Single-Cell Sequencing Analysis
            by seqadmin



            While isolating and preparing single cells for sequencing was historically the bottleneck, recent technological advancements have shifted the challenge to data analysis. This highlights the rapidly evolving nature of single-cell sequencing. The inherent complexity of single-cell analysis has intensified with the surge in data volume and the incorporation of diverse and more complex datasets. This article explores the challenges in analysis, examines common pitfalls, offers...
            Today, 07:15 AM
          • seqadmin
            Latest Developments in Precision Medicine
            by seqadmin



            Technological advances have led to drastic improvements in the field of precision medicine, enabling more personalized approaches to treatment. This article explores four leading groups that are overcoming many of the challenges of genomic profiling and precision medicine through their innovative platforms and technologies.

            Somatic Genomics
            “We have such a tremendous amount of genetic diversity that exists within each of us, and not just between us as individuals,”...
            05-24-2024, 01:16 PM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by seqadmin, Today, 08:18 AM
          0 responses
          8 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, Today, 08:04 AM
          0 responses
          10 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 06-03-2024, 06:55 AM
          0 responses
          13 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 05-30-2024, 03:16 PM
          0 responses
          27 views
          0 likes
          Last Post seqadmin  
          Working...
          X