data_prep: A function to process the tsv data from T1 modality

Description Usage Arguments Value Examples

View source: R/T1_utilities_function.R View source: R/Permutation_utilities_function.R View source: R/DWI_utilities_function.R

Description

A function to process the tsv data from T1 modality

Usage

1
data_prep(input_tsv, roi_start, roi_end, sep = "\t", decimal = ".")

Arguments

input_tsv

the tsv file containing all the ROI measurement. The file should strictly contian these columns: "participant_id session_id group age_bl prevdemals_family_code sex", then following each column for each ROI

roi_start

the first ROI name

roi_end

the last ROI name

sep

the separator for the tsv file, by default is '\t'

decimal

how to define the decimal in the tsv file, by default is "."

Value

a list of the preprocessed data from the tsv files

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
t1_stats_pipeline(input_tsv, output_dir, roi_start, roi_end)
A function to process the tsv data from T1 modality

This function allows you to express your love of cats.
input_tsv: str, path to tsv
roi_start: str, firt ROI
roi_end: str, last ROI
sep: the delimiter of the tsv
decimal: the decimal in the tsv, . or ,

WARNING: the first 7 columns should be 'participant_id	session_id	group	age_bl	prevdemals_family_code	sex	EstimatedTotalIntraCranialVol'

anbai106/NeuroStatisticR documentation built on May 27, 2020, 2:20 a.m.