Learn R Programming

drugsens (version 0.1.0)

make_count_dataframe: Count the main marker expression

Description

This function counts every single marker present in the "Name" column of the data.frame and return a dataframe of the counts per marker

Usage

make_count_dataframe(
  .data,
  unique_name_row_identifier = "filter_image",
  name_of_the_markers_column = "Name"
)

Value

A dataframe/tibble.

Arguments

.data

The dataframe that is coming from the processing of the microscopy data

unique_name_row_identifier

The name of the column of the .data where the unique name can be used to counts (it defaults to "filter_image")

name_of_the_markers_column

The name of the column of the .data where the marker names are expressed (ie E-Caderin, DAPI), "Defaults as Name"

Examples

Run this code
# \donttest{
# First load example data
pkg_path <- system.file("extdata/to_merge/", package = "drugsens")
bind_data <- data_binding(
  path_to_the_projects_folder = pkg_path,
  files_extension_to_look_for = "csv"
)

# Process the data
counts_dataframe <- make_count_dataframe(bind_data)

# Convert to plotting format
plotting_ready_dataframe <- change_data_format_to_longer(counts_dataframe)
# }

# \donttest{
# Example with custom parameters
make_count_dataframe(
  bind_data,
  name_of_the_markers_column = "Name",
  unique_name_row_identifier = "filter_image"
)
# }

Run the code above in your browser using DataLab