Function to extract the metadata from a DEprot object.

get.metadata(DEprot.object)

Arguments

DEprot.object

Any object of class DEprot.

Value

Data.frame corresponding to the metadata of the provided object.

Author

Sebastian Gregoricchio

Examples

# Extract metadata for DEprot oeejct
get.metadata(DEprot::dpo.imputed.counts)
#>              column.id           sample.id cell  condition    combined.id
#> 1         BCa_FBS_rep1        BCa_FBS_rep1  BCa        FBS        BCa_FBS
#> 2     BCa_6h.DMSO_rep1    BCa_6h.DMSO_rep1  BCa    6h.DMSO    BCa_6h.DMSO
#> 3  BCa_6h.10nM.E2_rep1 BCa_6h.10nM.E2_rep1  BCa 6h.10nM.E2 BCa_6h.10nM.E2
#> 4         BCa_FBS_rep2        BCa_FBS_rep2  BCa        FBS        BCa_FBS
#> 5     BCa_6h.DMSO_rep2    BCa_6h.DMSO_rep2  BCa    6h.DMSO    BCa_6h.DMSO
#> 6  BCa_6h.10nM.E2_rep2 BCa_6h.10nM.E2_rep2  BCa 6h.10nM.E2 BCa_6h.10nM.E2
#> 7         BCa_FBS_rep3        BCa_FBS_rep3  BCa        FBS        BCa_FBS
#> 8     BCa_6h.DMSO_rep3    BCa_6h.DMSO_rep3  BCa    6h.DMSO    BCa_6h.DMSO
#> 9  BCa_6h.10nM.E2_rep3 BCa_6h.10nM.E2_rep3  BCa 6h.10nM.E2 BCa_6h.10nM.E2
#> 10        BCa_FBS_rep4        BCa_FBS_rep4  BCa        FBS        BCa_FBS
#> 11    BCa_6h.DMSO_rep4    BCa_6h.DMSO_rep4  BCa    6h.DMSO    BCa_6h.DMSO
#> 12 BCa_6h.10nM.E2_rep4 BCa_6h.10nM.E2_rep4  BCa 6h.10nM.E2 BCa_6h.10nM.E2
#>    replicate old.column.id
#> 1       rep1      Sample_A
#> 2       rep1      Sample_B
#> 3       rep1      Sample_C
#> 4       rep2      Sample_D
#> 5       rep2      Sample_E
#> 6       rep2      Sample_F
#> 7       rep3      Sample_G
#> 8       rep3      Sample_H
#> 9       rep3      Sample_I
#> 10      rep4      Sample_J
#> 11      rep4      Sample_K
#> 12      rep4      Sample_L

# Extract metadata for DEprot object
get.metadata(DEprot::test.toolbox$diff.exp.limma)
#>    column.id           sample.id cell  condition    combined.id replicate
#> 1   Sample_A        BCa_FBS_rep1  BCa        FBS        BCa_FBS      rep1
#> 2   Sample_B    BCa_6h.DMSO_rep1  BCa    6h.DMSO    BCa_6h.DMSO      rep1
#> 3   Sample_C BCa_6h.10nM.E2_rep1  BCa 6h.10nM.E2 BCa_6h.10nM.E2      rep1
#> 4   Sample_D        BCa_FBS_rep2  BCa        FBS        BCa_FBS      rep2
#> 5   Sample_E    BCa_6h.DMSO_rep2  BCa    6h.DMSO    BCa_6h.DMSO      rep2
#> 6   Sample_F BCa_6h.10nM.E2_rep2  BCa 6h.10nM.E2 BCa_6h.10nM.E2      rep2
#> 7   Sample_G        BCa_FBS_rep3  BCa        FBS        BCa_FBS      rep3
#> 8   Sample_H    BCa_6h.DMSO_rep3  BCa    6h.DMSO    BCa_6h.DMSO      rep3
#> 9   Sample_I BCa_6h.10nM.E2_rep3  BCa 6h.10nM.E2 BCa_6h.10nM.E2      rep3
#> 10  Sample_J        BCa_FBS_rep4  BCa        FBS        BCa_FBS      rep4
#> 11  Sample_K    BCa_6h.DMSO_rep4  BCa    6h.DMSO    BCa_6h.DMSO      rep4
#> 12  Sample_L BCa_6h.10nM.E2_rep4  BCa 6h.10nM.E2 BCa_6h.10nM.E2      rep4