# \donttest{
library(scPOEM)
library(monocle)
dirpath <- "./example_data"
# Download single mode example data
data(example_data_single)
gg_net <- GGN(example_data_single$Y,
file.path(dirpath, "single"),
save_file=FALSE)
pp_net <- PPN(example_data_single$X, example_data_single$peak_data,
example_data_single$cell_data, example_data_single$genome,
file.path(dirpath, "single"), save_file=FALSE)
net_Lasso <- PGN_Lasso(example_data_single$X, example_data_single$Y,
example_data_single$gene_data, example_data_single$neibor_peak,
file.path(dirpath, "single"), save_file=FALSE)
net_RF <- PGN_RF(example_data_single$X, example_data_single$Y,
example_data_single$gene_data, example_data_single$neibor_peak,
file.path(dirpath, "single"), save_file=FALSE)
net_XGB <- PGN_XGBoost(example_data_single$X, example_data_single$Y,
example_data_single$gene_data, example_data_single$neibor_peak,
file.path(dirpath, "single"), save_file=FALSE)
E_result <- pg_embedding(gg_net, pp_net, list(net_Lasso, net_RF, net_XGB),
file.path(dirpath, "single"), save_file=FALSE)
# }
Run the code above in your browser using DataLab