Running getGScores("phastCons100way.UCSC.hg19") results in this error:
Error in UseMethod("filter_") : no applicable method for 'filter_'
applied to an object of class "c('tbl_SQLiteConnection', 'tbl_dbi',
'tbl_sql', 'tbl_lazy', 'tbl')" In addition: Warning messages: 1:
select_() was deprecated in dplyr 0.7.0. Please use select()
instead. This warning is displayed once every 8 hours. Call
lifecycle::last_warnings() to see where this warning was generated.
2: filter_() was deprecated in dplyr 0.7.0. Please use filter()
instead. See vignette('programming') for more help This warning is
displayed once every 8 hours. Call lifecycle::last_warnings() to see
where this warning was generated.
At this moment (9:30am CET) I can't reproduce this error with the current release version of the package. I have executed the following code without problems:
library(GenomicScores)
avgsco <- availableGScores()
head(avgsco)
Organism Category Installed Cached
cadd.v1.3.hg19 Homo sapiens Pathogenicity FALSE FALSE
fitCons.UCSC.hg19 Homo sapiens Constraint FALSE FALSE
linsight.UCSC.hg19 Homo sapiens Constraint FALSE FALSE
MafDb.1Kgenomes.phase1.GRCh38 Homo sapiens MAF FALSE FALSE
MafDb.1Kgenomes.phase1.hs37d5 Homo sapiens MAF FALSE FALSE
MafDb.1Kgenomes.phase3.GRCh38 Homo sapiens MAF FALSE FALSE
BiocManagerInstall AnnotationHub
cadd.v1.3.hg19 FALSE TRUE
fitCons.UCSC.hg19 TRUE FALSE
linsight.UCSC.hg19 FALSE TRUE
MafDb.1Kgenomes.phase1.GRCh38 TRUE FALSE
MafDb.1Kgenomes.phase1.hs37d5 TRUE FALSE
MafDb.1Kgenomes.phase3.GRCh38 TRUE FALSE
gsco <- getGScores("phastCons100way.UCSC.hg19")
gsco
GScores object
# organism: Homo sapiens (UCSC, hg19)
# provider: UCSC
# provider version: 09Feb2014
# download date: Mar 17, 2017
# loaded sequences: default
# maximum abs. error: 0.05
# use 'citation()' to cite these data in publications
gsco2 <- getGScores("phyloP100way") ## you mention you actually wanted to fetch this one
gsco2
GScores object
# organism: Homo sapiens (UCSC, hg19)
# provider: UCSC
# provider version: 10Feb2014
# download date: May 12, 2017
# loaded sequences: default
# maximum abs. error: 0.55
# use 'citation()' to cite these data in publications
Please find below the output of my sessionInfo(). Could you post yours?
I tried to install the latest version of GenomicScores (2.4.0) by downloading the tar.gz and running install.packages('GenomicScores_2.4.0.tar.gz', repos=NULL, type='source').
However, I get the following error:
Installing package into ‘/Users/nathaniel/Library/R/3.6/library’
(as ‘lib’ is unspecified)
ERROR: dependencies ‘rhdf5’, ‘HDF5Array’ are not available for package ‘GenomicScores’
* removing ‘/Users/nathaniel/Library/R/3.6/library/GenomicScores’
Warning in install.packages :
installation of package ‘GenomicScores_2.4.0.tar.gz’ had non-zero exit status
Indeed you were using an outdated version of the package. Regarding how to install current release version, please read first carefully the instructions at https://bioconductor.org/install there you'll see that you need to install first the current release version of R (4.1.x); see https://cran.r-project.org and once you have installed R 4.1.x then read carefully the instructions to install GenomicScores at its Bioconductor landing page at https://bioconductor.org/packages/GenomicScores
EDIT: Ignore this, re-read the warning message in more detail (belatedly). I am now moving the cache.
Thanks for the reply, I have since updated R and GenomicScores successfully. However, when trying to access phastCons46wayPlacental.UCSC.hg19 scores via phastcons46way <- getGScores('phastCons46wayPlacental.UCSC.hg19'), I get the following warning:
snapshotDate(): 2021-05-18
loading from cache
Warning message:
DEPRECATION: As of AnnotationHub (>2.23.2), default caching location has changed.
Problematic cache: /Users/nathaniel/Library/Caches/AnnotationHub
See https://bioconductor.org/packages/devel/bioc/vignettes/AnnotationHub/inst/doc/TroubleshootingTheCache.html#default-caching-location-update
I tried to access the scores using gscores(phastcons46way, GRanges(seqnames="chr22", IRanges(start=50967020:50967025, width=1))). This results the following error:
no phastCons46wayPlacental scores for population default in sequence chr22 from GScores object x (phastCons46wayPlacental.UCSC.hg19).
GRanges object with 6 ranges and 1 metadata column:
seqnames ranges strand | default
<Rle> <IRanges> <Rle> | <numeric>
[1] chr22 50967020 * | NA
[2] chr22 50967021 * | NA
[3] chr22 50967022 * | NA
[4] chr22 50967023 * | NA
[5] chr22 50967024 * | NA
[6] chr22 50967025 * | NA
-------
seqinfo: 93 sequences (1 circular) from Genome Reference Consortium GRCh37 genome
Warning message:
In .scores_snrs(x, ranges, pop, summaryFun, quantized, scores.only, :
No dequantization function available for scores population default. Scores will be all NA for this population.
Hi, just in case for future users with a similar problem. The package doesn't seem to work with the resources downloaded from the AnnotationHub into the old cache, so one really needs to move to the new cache location following the instructions given by the warning at:
Thanks for the quick response. Below is my sessionInfo
I tried to install the latest version of GenomicScores (2.4.0) by downloading the tar.gz and running
install.packages('GenomicScores_2.4.0.tar.gz', repos=NULL, type='source')
.However, I get the following error:
hi,
Indeed you were using an outdated version of the package. Regarding how to install current release version, please read first carefully the instructions at https://bioconductor.org/install there you'll see that you need to install first the current release version of R (4.1.x); see https://cran.r-project.org and once you have installed R 4.1.x then read carefully the instructions to install GenomicScores at its Bioconductor landing page at https://bioconductor.org/packages/GenomicScores
EDIT: Ignore this, re-read the warning message in more detail (belatedly). I am now moving the cache.
Thanks for the reply, I have since updated R and GenomicScores successfully. However, when trying to access phastCons46wayPlacental.UCSC.hg19 scores via
phastcons46way <- getGScores('phastCons46wayPlacental.UCSC.hg19')
, I get the following warning:I tried to access the scores using
gscores(phastcons46way, GRanges(seqnames="chr22", IRanges(start=50967020:50967025, width=1)))
. This results the following error:Hi, just in case for future users with a similar problem. The package doesn't seem to work with the resources downloaded from the AnnotationHub into the old cache, so one really needs to move to the new cache location following the instructions given by the warning at:
https://bioconductor.org/packages/devel/bioc/vignettes/AnnotationHub/inst/doc/TroubleshootingTheCache.html#default-caching-location-update
Once that step is done, then it works smoothly: