Closed bschilder closed 2 years ago
Update filter_ctd_genes to handle the new CTD format which has extra slots. Also consider exporting this function as it may be generally useful.
filter_ctd_genes
Filtering CTD to 100 genes. level 1 - mean_exp - specificity - specificity_quantiles - standardised Error in ctd_lvl[[mat_nm]][rownames(ctd_lvl[[mat_nm]]) %in% gene_subset, : incorrect number of dimensions
Handle new CTD format.
ctd <- ewceData::ctd() ctd <- EWCE::standardise_ctd(ctd, input_species = "mouse") ctd2 <- EWCE:::filter_ctd_genes(ctd=ctd, gene_subset = rownames(ctd$level_1$mean_exp)[1:100])
1. Bug description
Update
filter_ctd_genes
to handle the new CTD format which has extra slots. Also consider exporting this function as it may be generally useful.Console output
Expected behaviour
Handle new CTD format.
2. Reproducible example
Code
3. Session info