specify_damage: Specify damaged areas per sample

Description Usage Arguments Examples

View source: R/cleaning_functions.R

Description

specify_damage() uses tidyr functions to filter a dataframe containing a summary of damaged areas for all samples and adapt it for later use in cleaning functions.

Usage

1

Arguments

data

Dataframe with summary of damaged brain areas for all samples. Long format in which each row is a damaged area. Requires the following variables: "sample" with the name of the sample; "area" with the acronym of damaged brain area according to Allen Brain Atlas nomenclature; "hemisphere" to specify which hemisphere.

sample_id

String used to select relevant sample.

Examples

1
2
3
4
5
6
7
8
9
x <- data.frame(
sample_id = c(1,1,2,3),
area = c("BLA", "VTA", "CA1", "DG"),
hemisphere = c("left", "left", "right", "right")
)

my_sample <- 1

specify_damage(my_sample, x)

valeriabonapersona/abc4d documentation built on Dec. 23, 2021, 2:09 p.m.