draw_f_map_table: draw_f_map_table

View source: R/fragility_functions.R

draw_f_map_tableR Documentation

draw_f_map_table

Description

Generates the parameters needed for the 3D brain viewer, fragility map, most/least fragility table, and selected trials outputs.

Usage

draw_f_map_table(
  tnum,
  f_path,
  subject_code,
  requested_electrodes,
  sort_fmap,
  check,
  f_list_length
)

Arguments

tnum

An integer vector specifying which trials are selected. If multiple trials are selected, their fragility maps/values will be averaged.

f_path

Pathname to subject's fragility files, with the trial number left empty. Will generally be something similar to 'rave_data/data_dir/ProjectName/SubjectCode/rave/module_data/SubjectCode_f_info_trial_'

subject_code

Character object specifying subject's code.

requested_electrodes

Integer vector specifying which electrodes to display.

sort_fmap

Specifies whether to sort map by electrode number or by fragility. Will be either "Electrode" or "Fragility".

check

Check list generated by check_subject.

f_list_length

Integer specifying how many values should be included on the most/least fragile list.

Examples

outputs <- draw_f_map_table(
    tnum = c(1,2,3), 
    f_path = 'rave_data/data_dir/OnsetZone/PT01/rave/module_data/PT01_f_info_trial_', 
    subject_code = 'PT01', 
    requested_electrodes = c(1:24,26:36,42:43,46:54,56:70,72:95), 
    sort_fmap = 'Electrodes', 
    check = check, 
    f_list_length = 10
)

ozmosis17/Fragility documentation built on March 22, 2023, 2:16 a.m.