check_files: Function which checks and processes files

View source: R/kpm.R

check_filesR Documentation

Function which checks and processes files

Description

Goes through all matrices and the graph file and checks if the input data is correct and exists. It then prepares the data for local or remote use. For local execution return filepaths for remote reutrn data.frames. For the graph_files always return filepaths.

Usage

check_files(indicator_matrices, graph)

Arguments

indicator_matrices

Filepath, data.frame or as a list of both.

graph

Filepath to the graph file in sif format or an igraph object.

Value

Returns the data prepared for the respective run (local or remote). Indicator matrices: List of paths for local run and list of data.frames for remote run. Graph file: Null if no graph_file provided else path to graph_file.


baumbachlab/keypathwayminer-R documentation built on June 29, 2023, 11:21 a.m.