Hi,
I am using fishHook. I can run the basic model (without covariates) without an issue.
When I add in the covariates, I am getting the following error -
fish$covariates = c(reptime, gc, hetchrom)
Error in (function (value) :
Error: covariates must be of class Covariate
I am not sure what is going wrong here.
The first class of the 3 variables reptime, gc and hetchrom is definitely "covariate"
class(reptime)
[1] "Covariate" "R6"
class(gc)
[1] "Covariate" "R6"
class(hetchrom)
[1] "Covariate" "R6"
reptime
1 Covariates with features:
name type class field signature na.rm pad grep
1: ReplicationTiming numeric GRanges score NA 0 NA
gc
2 Covariates with features:
name type class field signature na.rm pad grep
1: C numeric GRanges C NA 0 NA
2: G numeric GRanges G NA 0 NA
hetchrom
1 Covariates with features:
name type class field signature na.rm pad grep
1: Heterochromatin numeric GRanges het NA 0 NA
Here is my session Info:
sessionInfo()
R version 3.6.0 (2019-04-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] parallel stats4 stats graphics grDevices utils datasets methods base
other attached packages:
[1] MASS_7.3-51.4 org.Hs.eg.db_3.8.2
[3] TxDb.Hsapiens.UCSC.hg19.knownGene_3.2.2 GenomicFeatures_1.36.3
[5] AnnotationDbi_1.46.0 Biobase_2.44.0
[7] rtracklayer_1.44.0 fishHook_0.1
[9] plotly_4.9.0 ggplot2_3.2.0
[11] gUtils_0.2.0 data.table_1.12.2
[13] GenomicRanges_1.36.0 GenomeInfoDb_1.20.0
[15] IRanges_2.18.1 S4Vectors_0.22.0
[17] BiocGenerics_0.30.0
loaded via a namespace (and not attached):
[1] Rcpp_1.0.1 lattice_0.20-38 tidyr_0.8.3
[4] prettyunits_1.0.2 Rsamtools_2.0.0 Biostrings_2.52.0
[7] zoo_1.8-6 assertthat_0.2.1 zeallot_0.1.0
[10] digest_0.6.20 R6_2.4.0 backports_1.1.4
[13] RSQLite_2.1.1 httr_1.4.0 pillar_1.4.2
[16] progress_1.2.2 zlibbioc_1.30.0 rlang_0.4.0
[19] lazyeval_0.2.2 rstudioapi_0.10 blob_1.2.0
[22] Matrix_1.2-17 BiocParallel_1.18.0 stringr_1.4.0
[25] htmlwidgets_1.3 biomaRt_2.40.1 RCurl_1.95-4.12
[28] bit_1.1-14 munsell_0.5.0 DelayedArray_0.10.0
[31] compiler_3.6.0 pkgconfig_2.0.2 htmltools_0.3.6
[34] tidyselect_0.2.5 SummarizedExperiment_1.14.0 tibble_2.1.3
[37] GenomeInfoDbData_1.2.1 matrixStats_0.54.0 XML_3.98-1.20
[40] viridisLite_0.3.0 crayon_1.3.4 dplyr_0.8.3
[43] withr_2.1.2 GenomicAlignments_1.20.1 bitops_1.0-6
[46] grid_3.6.0 jsonlite_1.6 gtable_0.3.0
[49] DBI_1.0.0 magrittr_1.5 scales_1.0.0
[52] stringi_1.4.3 XVector_0.24.0 vctrs_0.2.0
[55] tools_3.6.0 bit64_0.9-7 glue_1.3.1
[58] purrr_0.3.2 hms_0.5.0 yaml_2.2.0
[61] colorspace_1.4-1 memoise_1.1.0