run ONTraC
runONTraCV1(
ONTraC_input,
dataset,
preprocessing_dir,
GNN_dir,
NTScore_dir,
n_cpu = 4L,
n_neighbors = 50L,
n_local = 20L,
device = c("cpu", "cuda"),
epochs = 1000L,
patience = 100L,
min_delta = 0.001,
min_epochs = 50L,
batch_size = 0L,
seed = 42L,
lr = 0.03,
hidden_feats = 4L,
k = 6L,
modularity_loss_weight = 0.3,
purity_loss_weight = 300,
regularization_loss_weight = 0.1,
beta = 0.03,
python_path = "giotto_ontrac_env"
)
the path to the input data file
the directory to save the preprocessing results
the directory to save the GNN results
the directory to save the NTScore results
the number of CPUs used for niche network constructing. Default is 4L
the number of neighbors used for ONTraC in niche network construction. Default is 50L
the index of local neighbor used for ONTraC in niche network construction for normalization. Default is 20L
the device used for ONTraC running GNN model. Default is "cpu"
the maximum number of epochs for model training. Default is 1000L
the number of epochs wait for better result. Default is 100L
the minimum change of loss to be considered as improvement. Default is 0.001
the minimum number of epochs to train. Default is 50L
the batch size for training. Default is 0L for whole dataset
the random seed for reproducibility. Default is 42L
the learning rate for training. Default is 0.03
the number of hidden features for GNN model. Default is 4L
the number of neighbors for GNN model. Default is 6L
the weight of modularity loss. Default is 0.3
the weight of purity loss. Default is 300.0
the weight of regularization loss. Default is 0.1
the weight of entropy loss. Default is 0.03
path to python executable within a conda/miniconda environment. Default is "giotto_ontrac_env"
none
This function runs ONTraC
runONTraCV1(
dataset = "ONTraC_dataset_input.csv",
preprocessing_dir = "preprocessing_dir",
GNN_dir = "GNN_dir",
NTScore_dir = "NTScore_dir",
envname = "giotto_ontrac_env"
)
#> Error in runONTraCV1(dataset = "ONTraC_dataset_input.csv", preprocessing_dir = "preprocessing_dir", GNN_dir = "GNN_dir", NTScore_dir = "NTScore_dir", envname = "giotto_ontrac_env"): unused argument (envname = "giotto_ontrac_env")