Skip to content

Creating MultiAssayExperiment with experiments and colData matching criteria #72

Description

@tonyliang19

MultitAssayExperiment requires to map the colData from rownames to colnames of the experiments list

# Assuming X is list of matrix of P_j x n where colnames(X$m1) == colnames(X$m2) = sample_name
X <- list(m1 = ... , m2 = ... , m3 = ....)
colData_df = data.frame(response, sample_name), with rownames(colData_df) = colData_df$sample_name
# When colnames(X$m1) == colnames(X$m2) == .... == rownames(colData_df) 
# Then this works
MultiAssayExperiment(experiments = X, colData = colData_df)

# However if col data is the following:
colData_df = data.frame(response, sample_name), rownames(colData_df) = NULL
# Then this would not work, even sample_name is a column in the col data

MultiAssayExperiment(experiments = X, colData = colData_df)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions