Skip to content

Commit

Permalink
check corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseCorCab committed Jan 24, 2024
1 parent 1d6cb33 commit 493f32b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,6 @@ Imports:
clusterProfiler,
GenomicRanges,
annotatr,
ggridges
ggridges,
FactoInvestigate
Config/testthat/edition: 3
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ importFrom(DESeq2,results)
importFrom(DESeq2,rlog)
importFrom(DOSE,setReadable)
importFrom(DT,datatable)
importFrom(FactoInvestigate,dimRestrict)
importFrom(FactoInvestigate,eigenRef)
importFrom(GO.db,GOBPANCESTOR)
importFrom(GO.db,GOBPPARENTS)
importFrom(GO.db,GOCCANCESTOR)
Expand Down
1 change: 1 addition & 0 deletions R/statistics_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ filter_and_integrate_OR <- function(cont_table, p.adjust.method = "BH" ,p_thr =
return(list(integrated_stats = integrated_stats, miRNA_ct = miRNA_ct))
}

#' @importFrom FactoInvestigate dimRestrict eigenRef
get_PCA_dimensions <- function(pca_obj, min_dimensions = 2) {
ref = FactoInvestigate::eigenRef(pca_obj, time = "10s", parallel=FALSE) # to avoid use parallel computation that greedy takes all cpu cores
rand = c(ref$inertia[1], diff(ref$inertia)) * 100
Expand Down

0 comments on commit 493f32b

Please sign in to comment.