I had an error in installing scran under the environment written below.
Environment:
R version 3.5.1 (2018-07-02)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Red Hat Enterprise Linux ComputeNode release 6.10 (Santiago)
Bioconductor 3.8
I couldn't install the scran with the command below, shown in the scran manual page("https://bioconductor.org/packages/release/bioc/html/scran.html").
>BiocManager::install("scran", version = "3.8")
>library("scran")
警告メッセージ:
1: ‘IRanges’ から ‘concatenateObjects’ へエクスポートされるメソッドに対応する関数がありません
2: ‘XVector’ から ‘concatenateObjects’ へエクスポートされるメソッドに対応する関数がありません
3: ‘GenomicRanges’ から ‘concatenateObjects’ へエクスポートされるメソッドに対応する関数がありません
4: replacing previous import ‘BiocGenerics::dims’ by ‘Biobase::dims’ when loading ‘SummarizedExperiment’
5: replacing previous import ‘Biobase::dims’ by ‘DelayedArray::dims’ when loading ‘SummarizedExperiment’
For error message 1-3, they arose from the change of namespace in the package S4Vectors. The BiocManager command above installed
S4Vectors0.20.1. But concatenateObjects() was renamed bindROWS() in S4Vectors 0.19.4.
Some packages of installed version(IRanges, XVectors, GenomicRanges) was using concatenateObject(), so it caused error in intallation of scran.
Installed version by the BiocManager Command is below:
> packageVersion("IRanges")
[1] ‘2.14.10’
> packageVersion("XVector")
[1] ‘0.20.0’
> packageVersion("GenomicRanges")
[1] ‘1.32.3’
To install scran, I updated S4Vectors, IRanges, XVectors, GenomicRanges from GitHub. The commands used is below.
>library("githubinstall")
>githubinstall("IRanges")
>githubinstall("S4Vectors")
>githubinstall("GenomicRanges")
>library("devtools")
>install_github("Bioconductor/XVector")
Installed version of the packages from GitHub was below:
> packageVersion("IRanges")
[1] ‘2.17.4’
> packageVersion("S4Vectors")
[1] ‘0.21.9’
> packageVersion("GenomicRanges")
[1] ‘1.35.1’
> packageVersion("XVector")
[1] ‘0.23.0’
Following your advice, I re-installed invalid packages. After the procedure, I could load the package scran with no error or warnings. Thank you!