generate_MUs: Generate motor units (MUs) and muscle fibers for all muscles

View source: R/setup_muscles.r

generate_MUsR Documentation

Generate motor units (MUs) and muscle fibers for all muscles

Description

Set up the muscle structure by generating motor units (MUs) and their contained muscle fibers according to the given configuration.

Usage

generate_MUs(muscles)

Arguments

muscles

A data.frame containing information on the muscle properties. Will usually be generated by a call to convert_muscle_list_to_df.

Details

Generates a set of MUs parameters following an exponential distribution with muscle-specific parameters and then gathers all the MUs generated for the different muscles in a single data.frame.

Value

A data.frame containing categorical columns 'muscle' and 'MU' giving the corresponding indices and 'MU.obj' containing the actual MU objects. These in turn have a property $fibers that contains a list of the muscle fibers contained in that MU. No geometrical information is present at this stage.


ime-luebeck/semgsim documentation built on April 14, 2022, 11:02 p.m.