@@ -292,18 +292,18 @@ combineCountSes <- function(countsSe, colDataList, annotations){
292292 return (combinedCountsSe )
293293}
294294
295- # ' Generate the colData using the external sampleData .csv provided by the user in the sampleData argument
295+ # ' Generate the colData using the external sampleMetadata .csv provided by the user in the sampleMetadata argument
296296# ' @param readClassList A list object containingmetadata about read classes.
297- # ' @param sampleData A path to a CSV file or NULL/NA if there is no metadata for the sample.
297+ # ' @param sampleMetadata A path to a CSV file or NULL/NA if there is no metadata for the sample.
298298# ' @param demultiplexed Logical; indicates if data is demultiplexed.
299299# '
300300# ' @return A DataFrame containing colData for the sample.
301301# ' @export
302- generateColData <- function (readClassList , sampleData , demultiplexed ) {
303- sampleDataDf <- if (is.null(sampleData ) || is.na(sampleData )) {
302+ generateColData <- function (readClassList , sampleMetadata , demultiplexed ) {
303+ sampleMetadataDf <- if (is.null(sampleMetadata ) || is.na(sampleMetadata )) {
304304 if (demultiplexed ) tibble(barcode = character ()) else tibble(sampleName = character ())
305305 } else {
306- read.csv(sampleData )
306+ read.csv(sampleMetadata )
307307 }
308308 samples <- metadata(readClassList )$ samples
309309 joinKey <- if (demultiplexed ) " barcode" else " sampleName"
@@ -317,7 +317,7 @@ generateColData <- function(readClassList, sampleData, demultiplexed) {
317317 }
318318
319319 colData <- colData %> %
320- left_join(sampleDataDf , by = joinKey ) %> %
320+ left_join(sampleMetadataDf , by = joinKey ) %> %
321321 as.data.frame()
322322
323323 rownames(colData ) <- colData $ id
0 commit comments