Analysing features in R
The R package tglow-r provides downstream analysis of the pipeline's
output: reading the CellProfiler features into a single object, quality
control, transformation and scaling, dimensionality reduction, clustering,
and modelling. Its vignettes are written for the output structure of this
pipeline.
- Documentation: tglow-r
- Repository: TrynkaLab/tglow-r
Useful pipeline outputs to combine with tglow-r:
rr__features/cellprofiler/<plate>_cells.parquetand<plate>_image.parquet: the CellProfiler features, aggregated per plate.rr__features/measurements/<unscaled or scaled>/: the pipeline's own intensity features, per well.rr__features/cellprofiler/features/: the per-well CellProfiler zip archives. Since v0.2.0 these are only published withcpr_publish_features_per_well = true.rr__qc/well_qc.tsv: the per-well QC verdicts, for filtering wells. See QC report.rr__cellcrops/: the cell crops index, for linking cells to their images.
See Understanding output for details on each folder.
Loading the features
Both feature sets load into a TglowDataset:
Both take a plates argument to read only some plates, for example
plates = c("plate1", "plate2").
read_pipeline_parquet() numbers the plates P1, P2, ... in the order of
plates (alphabetical by default). These match the plate ids in the
CellProfiler output only if plates is given in the order of the pipeline
manifest. Object ids also differ between the two: the intensity features use
the Cellpose label, the CellProfiler features use CellProfiler's object
number (see Turning masks into objects).