I can not load a fasta file in Rstudio
1
0
Entering edit mode
5.6 years ago
apl00028 ▴ 90

I can not load a fasta file because when I try to load this file I see this message:

          cmv3_genome =readDNAStringSet("cmv3.fasta")

      Error in readDNAStringSet("cmv3.fasta") : could not find function "readDNAStringSet"

So, I installed its package:

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

and I update all files;

after to do that I activate this package:

                    library(Biostrings)

and I see this message:

               Loading required package: XVector
               Error: package ‘IRanges’ 2.14.12 is loaded, but >= 2.15.12 is required by ‘XVector’
                In addition: Warning message:
                package ‘Biostrings’ was built under R version 3.5.2

So, I install IRanges package; library(BiocManager) BiocManager::install("IRanges")

And I tried to activate the package again and I got the same message:

             > library(Biostrings)
             Loading required package: XVector
             Error: package ‘IRanges’ 2.14.12 is loaded, but >= 2.15.12 is required by ‘XVector’
             In addition: Warning message:
             package ‘Biostrings’ was built under R version 3.5.2

I need a solution, thanks a lot!

r sequence • 3.1k views
ADD COMMENT
1
Entering edit mode
5.6 years ago
apl00028 ▴ 90

The solution was remove IRanges package

removepackage(IRanges);

and installed the latest IRanges version installing BiocManager, due to this package include IRanges package:

install.packages("BiocManager")
ADD COMMENT

Login before adding your answer.

Traffic: 2455 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6