aifimmunology / MOCHA

R package for single-cell Open Chromatin Identification & Downstream Analysis
https://aifimmunology.github.io/MOCHA/
GNU General Public License v3.0
2 stars 0 forks source link

annotateTiles incorrectly errors error when we provide TxDb and Org with a RangedSummarizedExperiment #144

Closed imran-aifi closed 2 months ago

imran-aifi commented 11 months ago

Incorrectly throws an error when we provide TxDb and Org with a RangedSummarizedExperiment works:

MOCHA::annotateTiles(
    Obj = mochaObj #RangedSummarizedExperiment 
)

errors:

mochaObj <- MOCHA::annotateTiles(
    Obj = mochaObj
    TxDb = TxDb.Hsapiens.UCSC.hg38.refGene,
    Org = org.Hs.eg
)

Error: Invalid inputs. Verify Obj is a RangedSummarizedExperiment and tiles were called from an ArchR project. If Obj is a GRanges, TxDb and Org must be provided.

Input is valid, orgdb and txdb were simply unnecessary. Should still run.

markphillippebworth commented 2 months ago

Bug fixed now