Creates a list of targets that track each file and import the dataset from each csv file.
Arguments
- files
Character vector, vector of paths to the dataset csv files.
- col_ids
Character vector, the name of the column in each file that contains the ID of the rows (i.e. feature IDs if value in
features_as_rowss
isTRUE
for the corresponding dataset, or sample IDs if value infeatures_as_rowss
isFALSE
).- features_as_rowss
Logical vector, do the rows in each file correspond to features?
- target_name_suffixes
Character vector, a suffix to add to the name of the targets created by this target factory for each dataset.
Value
A list of target objects. For example, with two files to import and
target_name_suffixes = c("geno", "transcripto")
, the factory returns the
following targets:
dataset_file_geno
anddataset_file_transcripto
: targets tracking the genomics dataset file and the transcriptomics dataset file, respectively.data_geno
anddata_transcripto
: targets that import the genomics and transcriptomics dataset, respectively.