summarizeWells: Summarize cell features

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/summarize.R

Description

Compute phenotypic profiles by summarizing cell population features.

Usage

1
summarizeWells(x, uname, featurePar, profileFilename="data/profiles.tab", access='cache')

Arguments

x

An imageHTS object.

uname

A character vector, containing the well names to summarize. See getUnames for details.

featurePar

A character string, indicating the filename containing the feature extraction parameters.

profileFilename

A character string, indicating the output filename to store the phenortpic profiles.

access

A character string indicating how to access the data. Valid values are local, server and cache, the default. See fileHTS for details.

Details

summarizeWells computes for each well, summary statistics about cell features. Currently, cell number n and median cell feature med.* (for each feature) are computed.

Moreover, if the DCF segmentation parameters file pointed by featurePar includes the field cell.classes, containing a list of comma-separated cell classes, cell classes ratio are computed and included in the phenotypic profiles.

summarizeWells creates the file data/profiles.tab which contains the phenotypic profiles. Use readHTS to read this file.

Value

A data frame, containing the phenotypic profiles.

Author(s)

Gregoire Pau, gregoire.pau@embl.de, 2010

See Also

extractFeatures, readHTS

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
  ## Not run: 
    ## initialize imageHTS object using the local submorph screen
    local = tempdir()
    server = system.file('submorph', package='imageHTS')
    x = parseImageConf('conf/imageconf.txt', localPath=local, serverURL=server)
    x = configure(x, 'conf/description.txt', 'conf/plateconf.txt', 'conf/screenlog.txt')
    
    ## segment non-empty wells
    unames = setdiff(getUnames(x), getUnames(x, content='empty'))
    segmentWells(x, uname=unames, segmentationPar='conf/segmentationpar.txt')
    
    ## extract features
    extractFeatures(x, uname=unames, 'conf/featurepar.txt')
    
    ## cell classification
    readLearnTS(x, 'conf/featurepar.txt', 'conf/trainingset.txt')
    predictCellLabels(x, unames)
    
    ## summarize features
    summarizeWells(x, unames, 'conf/featurepar.txt')
    
    ## get profiles
    profiles = readHTS(x, type='file', filename='data/profiles.tab', format='tab')
  
## End(Not run)

imageHTS documentation built on Nov. 8, 2020, 8:29 p.m.