
Target factory for csv samples metadata import
Source:R/data_import.R
import_smetadata_csv_factory.RdCreates a list of targets that track each file and import the samples metadata from each csv file.
Arguments
- files
Character vector, vector of paths to the samples metadata csv files.
- col_ids
Character vector, the name of the column in each file that contains the ID of the rows (i.e. the sample IDs).
- 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:
smetadata_file_genoandsmetadata_file_transcripto: targets tracking the genomics and transcriptomics samples metadata files, respectively.smetadata_genoandsmetadata_transcripto: targets that import the genomics and transcriptomics samples metadata datasets, respectively.