Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • Shortread Package INSTALL

    Hi All,

    Sorry to ask a very basic question:

    I downloaded ShortRead package from: http://www.bioconductor.org/packages...ShortRead.html

    But can someone tell me how to load the ShortRead package, I could not install this package in R. Error always like this:

    >library("ShortRead")
    Error in library("ShortRead") : there is no package called 'ShortRead'

    Did I choose the wrong directory?

    Thanks in advance!

  • #2
    Well you downloaded it, but you clearly haven't installed it.

    source("http://bioconductor.org/biocLite.R")
    biocLite("ShortRead")

    using biocLite to install packages is much better than downloading the packages from the download page.

    This information is on the package page (http://www.bioconductor.org/packages...ShortRead.html)

    If you followed this procedure yet:

    library(ShortRead)

    doesn't work, we'll probably need some more information, such as what platform you're trying to install it on.

    Comment


    • #3
      Thanks Bukowski!

      I installed shortread. But when I open R each time and type in "library(ShortRead)", it always repeat this step.

      Loading required package: IRanges

      Attaching package: 'IRanges'


      The following object(s) are masked from package:base :

      cbind,
      duplicated,
      order,
      pmax,
      pmax.int,
      pmin,
      pmin.int,
      rank,
      rbind,
      rep.int,
      sapply,
      sort,
      table,
      unique

      Loading required package: Biostrings
      Loading required package: BSgenome
      Loading required package: lattice

      Comment


      • #4
        I get the same message as well. But everything works fine for me.

        This will explain what "mask" means:

        Comment


        • #5
          Originally posted by Wei-HD View Post
          Thanks Bukowski!

          I installed shortread. But when I open R each time and type in "library(ShortRead)", it always repeat this step.

          Loading required package: IRanges

          Attaching package: 'IRanges'


          The following object(s) are masked from package:base :

          cbind,
          duplicated,
          order,
          pmax,
          pmax.int,
          pmin,
          pmin.int,
          rank,
          rbind,
          rep.int,
          sapply,
          sort,
          table,
          unique

          Loading required package: Biostrings
          Loading required package: BSgenome
          Loading required package: lattice
          That's normal - its just R telling you about what it has just loaded.

          Comment


          • #6
            I-ve tried to install it, but it installs the 1.4 version and I need 1.6.2, does it have to do with the fact that I have installed the 1.4 and am trying to re-install it?

            How can I upgrade?

            Comment


            • #7
              You need to upgrade R to the current version.

              Comment


              • #8
                Hi All,
                I have tried installing the ShortRead package many times now using
                source("http://bioconductor.org/biocLite.R")
                biocLite("ShortRead")
                but everytime I get an error message when I use library(ShortRead).
                My R version is R 3.0.2

                While the installation process is going on I get messages like
                ERROR: configuration failed for package ‘RCurl’
                * removing ‘/home/linux/R/x86_64-pc-linux-gnu-library/2.14/RCurl’
                * installing *source* package ‘XML’ ...
                ** package ‘XML’ successfully unpacked and MD5 sums checked
                checking for gcc... gcc
                checking for C compiler default output file name...
                rm: cannot remove `a.out.dSYM': Is a directory
                a.out
                checking whether the C compiler works... yes
                checking whether we are cross compiling... no
                checking for suffix of executables...
                checking for suffix of object files... o
                checking whether we are using the GNU C compiler... yes
                checking whether gcc accepts -g... yes
                checking for gcc option to accept ISO C89... none needed
                checking how to run the C preprocessor... gcc -E
                checking for sed... /bin/sed
                checking for pkg-config... /usr/bin/pkg-config
                checking for xml2-config... no
                Cannot find xml2-config
                ERROR: configuration failed for package ‘XML’
                * removing ‘/home/linux/R/x86_64-pc-linux-gnu-library/2.14/XML’
                ERROR: dependencies ‘RCurl’, ‘XML’ are not available for package ‘rtracklayer’
                * removing ‘/home/linux/R/x86_64-pc-linux-gnu-library/2.14/rtracklayer’
                ERROR: dependency ‘rtracklayer’ is not available for package ‘Rsamtools’
                * removing ‘/home/linux/R/x86_64-pc-linux-gnu-library/2.14/Rsamtools’
                ERROR: dependency ‘Rsamtools’ is not available for package ‘ShortRead’
                * removing ‘/home/linux/R/x86_64-pc-linux-gnu-library/2.14/ShortRead’

                The downloaded packages are in
                ‘/tmp/RtmpTluoUe/downloaded_packages’
                Warning messages:
                1: In install.packages(pkgs = pkgs, repos = repos, ...) :
                installation of package ‘RCurl’ had non-zero exit status
                2: In install.packages(pkgs = pkgs, repos = repos, ...) :
                installation of package ‘XML’ had non-zero exit status
                3: In install.packages(pkgs = pkgs, repos = repos, ...) :
                installation of package ‘rtracklayer’ had non-zero exit status
                4: In install.packages(pkgs = pkgs, repos = repos, ...) :
                installation of package ‘Rsamtools’ had non-zero exit status
                5: In install.packages(pkgs = pkgs, repos = repos, ...) :
                installation of package ‘ShortRead’ had non-zero exit status
                6: 'cluster' cannot be updated, installed directory
                '/usr/lib/R/library' not writeable
                'KernSmooth' cannot be updated, installed directory
                '/usr/lib/R/library' not writeable
                'mgcv' cannot be updated, installed directory '/usr/lib/R/library'
                not writeable
                'nnet' cannot be updated, installed directory '/usr/lib/R/library'
                not writeable
                'survival' cannot be updated, installed directory
                '/usr/lib/R/library' not writeable
                >

                Kindly suggest something asap.
                thanks in advance.

                Comment


                • #9
                  You are trying to install the library at system level in /usr/lib/R/library so try doing this with sudo (assuming you have admin rights).

                  Comment


                  • #10
                    can u please elaborate??

                    Comment


                    • #11
                      No, that's not the issue.

                      This here is the error you should have paid attention to:

                      Cannot find xml2-config
                      It means that you have not installed the header files for the XML2 systems library. Do so using your package manager. For example, in Ubuntu, use the Software Centre to install the package "libxml2-dev".

                      Comment


                      • #12
                        Also, can u please tell me how to install libcurl on ubuntu for R 3.0.2

                        Comment


                        • #13
                          Originally posted by archi View Post
                          Also, can u please tell me how to install libcurl on ubuntu for R 3.0.2
                          Try:
                          Code:
                          sudo apt-get install libxml2-dev

                          Comment


                          • #14
                            Originally posted by Simon Anders View Post
                            No, that's not the issue.

                            This here is the error you should have paid attention to...
                            Yeah, that was the immediate problem - I missed that.

                            Comment


                            • #15
                              I have installed libxml2-dev but now I'm getting these error.
                              Sorry for asking such basic doubts but please do help
                              Thanks a lot.

                              installing to /home/linux/R/x86_64-pc-linux-gnu-library/2.14/XML/libs
                              ** R
                              ** inst
                              ** preparing package for lazy loading
                              Creating a generic function for ‘source’ from package ‘base’ in package ‘XML’
                              Warning in .NonstandardGenericTest(body(fdef), name, stdGenericBody) :
                              the supplied generic function definition for ‘xmlClone’ does not seem to call 'standardGeneric'; no methods will be dispatched!
                              in method for ‘xmlAttrsToDataFrame’ with signature ‘"AsIs"’: no definition for class “AsIs”
                              in method for ‘readKeyValueDB’ with signature ‘"AsIs"’: no definition for class “AsIs”
                              in method for ‘readSolrDoc’ with signature ‘"AsIs"’: no definition for class “AsIs”
                              ** help
                              *** installing help indices
                              ** building package indices ...
                              ** testing if installed package can be loaded

                              * DONE (XML)
                              ERROR: dependency ‘RCurl’ is not available for package ‘rtracklayer’
                              * removing ‘/home/linux/R/x86_64-pc-linux-gnu-library/2.14/rtracklayer’
                              ERROR: dependency ‘rtracklayer’ is not available for package ‘Rsamtools’
                              * removing ‘/home/linux/R/x86_64-pc-linux-gnu-library/2.14/Rsamtools’
                              ERROR: dependency ‘Rsamtools’ is not available for package ‘ShortRead’
                              * removing ‘/home/linux/R/x86_64-pc-linux-gnu-library/2.14/ShortRead’

                              The downloaded packages are in
                              ‘/tmp/RtmpTluoUe/downloaded_packages’
                              Warning messages:
                              1: In install.packages(pkgs = pkgs, repos = repos, ...) :
                              installation of package ‘RCurl’ had non-zero exit status
                              2: In install.packages(pkgs = pkgs, repos = repos, ...) :
                              installation of package ‘rtracklayer’ had non-zero exit status
                              3: In install.packages(pkgs = pkgs, repos = repos, ...) :
                              installation of package ‘Rsamtools’ had non-zero exit status
                              4: In install.packages(pkgs = pkgs, repos = repos, ...) :
                              installation of package ‘ShortRead’ had non-zero exit status
                              5: 'cluster' cannot be updated, installed directory
                              '/usr/lib/R/library' not writeable
                              'KernSmooth' cannot be updated, installed directory
                              '/usr/lib/R/library' not writeable
                              'mgcv' cannot be updated, installed directory '/usr/lib/R/library'
                              not writeable
                              'nnet' cannot be updated, installed directory '/usr/lib/R/library'
                              not writeable
                              'survival' cannot be updated, installed directory
                              '/usr/lib/R/library' not writeable

                              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, 10-11-2024, 06:55 AM
                              0 responses
                              12 views
                              0 likes
                              Last Post seqadmin  
                              Started by seqadmin, 10-02-2024, 04:51 AM
                              0 responses
                              110 views
                              0 likes
                              Last Post seqadmin  
                              Started by seqadmin, 10-01-2024, 07:10 AM
                              0 responses
                              115 views
                              0 likes
                              Last Post seqadmin  
                              Started by seqadmin, 09-30-2024, 08:33 AM
                              1 response
                              121 views
                              0 likes
                              Last Post EmiTom
                              by EmiTom
                               
                              Working...
                              X