Closed joseverdezoto closed 4 years ago
this looks similar to:
can you verify you have GenomicDistributionsData
package installed?
can you provide your query?
I loaded the GenomicDistributionsData
library as well as TSS_hg38
data succesfully in the console:
library(GenomicDistributionsData)
data(TSS_hg38)
My query is the first file in the bedbase tutorial:
bedbase_tutorial/bed_files/GSE105587_ENCFF018NNF_conservative_idr_thresholded_peaks_GRCh38.bed.gz
I was trying to reproduce the error, but I could not even load the BED file:
> query = rtracklayer::import("GSE105587_ENCFF018NNF_conservative_idr_thresholded_peaks_GRCh38.bed.gz")
Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :
scan() expected 'an integer', got '16.25951'
this is the file I was trying to read in: /project/shefflab/www/example_data/bedbase_tutorial/bed_files/GSE105587_ENCFF018NNF_conservative_idr_thresholded_peaks_GRCh38.bed.gz
LOLA::readBed()
worked
it worked:
> query = LOLA::readBed("/project/shefflab/www/example_data/bedbase_tutorial/bed_files/GSE105587_ENCFF018NNF_conservative_idr_thresholded_peaks_GRCh38.bed.gz")
> gp = calcPartitionsRef(query, "hg38")
Calculating overlaps...
> gp
partition Freq
1 exon 2883
2 fiveUTR 6665
3 intergenic 21216
4 intron 22617
5 promoterCore 10524
6 promoterProx 2803
7 threeUTR 2020
> remove.packages("GenomicDistributionsData")
Removing package from '/home/mjs5kd/R/4.0'
(as 'lib' is unspecified)
> gp = calcPartitionsRef(query, "hg38")
Error in getReferenceData(refAssembly, tagline = "geneModels_") :
geneModels_hg38 not available in GenomicDistributions package and GenomicDistributionsData package is not installed
@stolarczyk Did you try the Feature distance plots? More specifically calcFeatureDistRefTSS
just tried it, also works:
> head(calcFeatureDistRefTSS(query, "hg38"))
[1] -66610 -25464544 -17435806 -26507997 9496085 -160405210
I wonder what the issue is. I installed GenomicDistributionsData
with install.packages()
. The library and data loading functions work well and all of the plots are produced for hg19.
@stolarczyk I was testing the tutorial with the
GenomicDistributionsData
library loaded into theregionstat.R
script. All of the plots for hg19 files work as expected, but when I try to run bedstat on hg38 files I get the following error:I tried doing the calculations for hg38 files in the console, and I had issues with the
calcPartitionsRef
and thecalcFeatureDistRefTSS
functions. The other ones seem to be fine.