Skip to contents

Exported files from Synaptosoft's Mini Analysis software (MA, see ref) are saved as ASCII text file (.asc), this function will convert (.asc) files into a data.frame.

Usage

asc_to_df(file_path, merge_iei = FALSE)

Arguments

file_path

Character, path to file. User can call file.choose to interactively select the file.

merge_iei

Logical, if TRUE .asc and .txt files with matching names will be merged. Default is FALSE.

Value

data.frame, column names match default columns within Synaptosoft's Mini Analysis software. Column names are as follows:

  • ma_row: Integer, corresponds to the row number generated in Mini Analysis. It is not recommended for use as a reference/key value.

  • rec_time_ms: Character, continuous time value that is determined from the recording digitization value.

  • amplitude Double, amplitude of the detected event.

  • rise_ms Double, rise time in milliseconds.

  • decay_ms Double, decay time in milliseconds.

  • area Character

  • baseline Double

  • noise Double

  • group: Integer (0 to 255), user-assigned group number within MA.

  • channel: Integer, corresponds to the recording channel as defined by the user's DAC and digitizer.

  • x10_90_rise Double

  • halfwidth Double

  • rise50 Double

  • peak_direction Integer

  • burst Integer

  • burste Integer

  • x10_90slope Character

  • rel_time Double

  • iei: Double, inter-event interval in milliseconds calculated in MA. Optional column, if arg merge_iei is set to TRUE.

Details

Mini Analysis software (MA) independently analyzes inter-event interval from the events file, this function will combine the event file (.asc) with the corresponding inter-event interval (IEI) text file (.txt) if arg merge_iei is set to TRUE.

Note

Several columns are set to the base type "character" to avoid generating NA on number values containing commas and periods, e.g. 1,200.00, on import.