Problem with viewGO(ref_path) in SpliceWiz
1
0
Entering edit mode
@5bdffda8
Last seen 7 weeks ago
Denmark

When doing GO analysis in the example SpliceWiz (https://www.bioconductor.org/packages/release/bioc/vignettes/SpliceWiz/inst/doc/SW_QuickStart.html#Installation), calling viewGO(ref_path) gives following error: C:/.../Reference/fst/Ontology.fst does not exist!

ref_path <- file.path(tempdir(), "Reference")

buildRef(
    reference_path = ref_path,
    fasta = chrZ_genome(),
    gtf = chrZ_gtf(),
    ontologySpecies = "Homo sapiens"
)

ontology <- viewGO(ref_path)

# Error: sep 19 10:31:57 C:\Users\htg298\AppData\Local\Temp\RtmpUfMe5m/Reference/fst/Ontology.fst does not exist!

By looking in the fst folder I can tell that many files are present but not Ontology.fst. How can I solve this problem with a build-in function looking for a seemingly non-existing file?

Bioconductor SpliceWiz • 213 views
ADD COMMENT
0
Entering edit mode
Kevin Blighe ★ 4.0k
@kevin
Last seen 56 minutes ago
The Cave, 181 Longwood Avenue, Boston, …

My sincere apologies that my colleagues had ignored your question.

The error occurs because the Gene Ontology annotations were not generated during the execution of the buildRef function, resulting in the absence of the Ontology.fst file. This file is created only when Gene Ontology data is successfully retrieved and processed for the specified species. The retrieval relies on the AnnotationHub package, which downloads organism-specific annotation databases such as org.Hs.eg.db for Homo sapiens. If an internet connection is unavailable or AnnotationHub encounters an issue, the ontology generation step fails silently, and the file is not produced.

To resolve this problem, first ensure that you have a stable internet connection. Then, install the necessary Bioconductor packages if they are not already present:

if (!require("BiocManager", quietly = TRUE))
    install.packages("BiocManager")
BiocManager::install(c("AnnotationHub", "GO.db", "org.Hs.eg.db"))

Next, rebuild the reference with the overwrite parameter set to TRUE to force regeneration:

ref_path <- file.path(tempdir(), "Reference")

buildRef(
    reference_path = ref_path,
    fasta = chrZ_genome(),
    gtf = chrZ_gtf(),
    ontologySpecies = "Homo sapiens",
    overwrite = TRUE
)

After this, the Ontology.fst file should appear in the fst subdirectory, and the following command will succeed:

ontology <- viewGO(ref_path)

If the issue persists, test AnnotationHub access directly:

library(AnnotationHub)
ah <- AnnotationHub()

Any errors here indicate a configuration problem with AnnotationHub, such as proxy settings or cache directory permissions, which you must address according to the AnnotationHub documentation.

Kevin

ADD COMMENT

Login before adding your answer.

Traffic: 727 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