Skip to content

Latest commit

 

History

32 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

methylTFRAnnotationMm10

Test R-universe GitHub issues GitHub pulls

methylTFRAnnotationMm10 provides the genome annotations methylTFR needs to compute bias-corrected transcription factor deviation scores on Mm10.

The package supplies three main resources:

  • Binding sites: One GRanges object per motif, with each range extended so that methylation can be read across the footprint window.
  • Motif GC frequency tables: Tables recording how each motif's binding sites distribute across genome-wide GC quintiles.
  • Genome-wide GC distribution: Data that assigns each methylation call to a GC bin.

Because the data are too large to ship inside the package, they are hosted on AnnotationHub. The data are downloaded dynamically on first use, and subsequent calls are served seamlessly from the local AnnotationHub cache.

Installation

if (!requireNamespace("BiocManager", quietly = TRUE)) {
    install.packages("BiocManager")
}
BiocManager::install(c("AnnotationHub","GenomicRanges", "methylTFRAnnotationMm10"))

Usage

You do not need to interact with AnnotationHub directly; the package's accessors handle resolution automatically. The retrieved objects are passed directly to methylTFR::run_methyltfr().

library(methylTFRAnnotationMm10)

tf_bindsites <- getTFbindsites("altius")
gcfreqs      <- getGCfreq("altius")
gc_dist      <- getGenomeGC()

Available Motif Sets

The currently supported motif sets are: altius, cisbpv2 and, jaspar2020.

Local Directory Usage

By default, the accessors will query AnnotationHub for the required files. However, if you have downloaded the .rds files manually or need to run tests in an environment without internet access, you can bypass the hub.

To read resources from a local directory instead of AnnotationHub, configure the local path using either an R option or an environment variable:

  • Option: options(methylTFRAnnotationMm10.datadir = "/path/to/data")
  • Environment Variable: Sys.setenv(METHYL_TFRANNOTATION_Mm10_DIR = "/path/to/data")

About

Pre-computed annotations to compute TF deviation scores on mm10 genome.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages