Skip to content

Custom reference giving "not available in GenomicDistributions package or GenomicDistributionsData package" error using calcPartitionsRef #211

@nmichaels89

Description

@nmichaels89

Hi, I am having an issue with using a custom reference. Here is my code and the error.

library("GenomicDistributions")
library("GenomicDistributionsData")
setwd('/Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/library/GenomicDistributions/methyltest')

queryFile = system.file("methyltest", "all10_uniq.bed.gz", package="GenomicDistributions")
query = rtracklayer::import(queryFile)

fastaSource = "Glycine_max.Glycine_max_v2.1.dna.toplevel.fa.gz"
gtfSource = "Glycine_max.Glycine_max_v2.1.60.chr.gff3.gz"

features = c("gene", "exon", "three_prime_utr", "five_prime_utr")
GmaxGeneModels = getGeneModelsFromGTF(source=gtfSource, features=features, convertEnsemblUCSC=TRUE)
partitionList = genomePartitionList(GmaxGeneModels$gene, 
                                    GmaxGeneModels$exon,
                                    GmaxGeneModels$three_prime_utr, 
                                    GmaxGeneModels$five_prime_utr)

gp = calcPartitionsRef(query, "GmaxGeneModels")
plotPartitions(gp)

The error is:

Error in getGeneModels(refAssembly) : 
  geneModels_GmaxGeneModels not available in GenomicDistributions package or GenomicDistributionsData package, 
please use getGeneModelsFromGTF() to get gene models.

Please let me know if there is something I am doing wrong. I can provide any needed information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions