make_count_dataframe {drugsens} | R Documentation |
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"
)
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" |
Value
A dataframe
/tibble
.
Examples
# 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)
# Example with custom parameters
make_count_dataframe(
bind_data,
name_of_the_markers_column = "Name",
unique_name_row_identifier = "filter_image"
)
[Package drugsens version 0.1.0 Index]