Skip to content

Commit

Permalink
Subset meta as required for summarizedexperiment (#5088)
Browse files Browse the repository at this point in the history
* Update summarizedexperiment.r

* even simpler

* appease eclint
  • Loading branch information
pinin4fjords authored Mar 8, 2024
1 parent 92e403d commit 05a252a
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ parse_metadata <- function(metadata_path, ids, metadata_id_col = NULL){

rownames(metadata) <- metadata[[metadata_id_col]]

metadata
metadata[ids,, drop=FALSE]
}

################################################
Expand Down Expand Up @@ -173,10 +173,6 @@ if ('$coldata' != ''){
metadata_id_col = args_opt\$coldata_id_col
)

assay_list <- lapply(assay_list, function(m){
m[,rownames(coldata), drop = FALSE]
})

colData(se) <- DataFrame(coldata)
}

Expand All @@ -189,10 +185,6 @@ if ('$rowdata' != ''){
metadata_id_col = args_opt\$rowdata_id_col
)

assay_list <- lapply(assay_list, function(m){
m[rownames(rowdata), , drop = FALSE]
})

rowData(se) <- DataFrame(rowdata)
}

Expand Down

0 comments on commit 05a252a

Please sign in to comment.