Awk scripts for different kinds of data munging
XML Excel Sheet
- Awk script to generate an XML excel sheet from rows and columns of text data
Two-way IO command pipeline
- Awk script to generate phoneme frequency counts -- Diphthongs are treated as such. Uses the two-way IO pipeline feature of Gawk.
- Awk script to generate phoneme frequency counts -- Diphthongs are split and the parts treated as separate phonemes. Uses the two-way IO pipeline feature of Gawk.
- Awk script to recode and summarise NEO questionnaire responses. Uses the two-way IO pipeline feature of Gawk.
- Awk script to recode NEO questionnaire responses. Uses the two-way IO pipeline feature of Gawk.
Two-way IO command pipeline to run R Scripts
- Awk script to calculate descriptive statistics for specified time-windows in the input EMG data. Uses the two-way IO pipeline feature of Gawk, and calls an executable R Script to calculate basic descriptive statistics. The principle is that awk does what it does best and sends the output data frame to R, which does what it does best, and sends its output back to awk, and awk parses this output to produce the ultimate output table. See also the R section for the R scripts that go hand in hand with this script.
- Awk script to calculate standard deviation of the max-min range over all trials. Another example similar to the above; only, this one runs two different R scripts for two purposes. See also the R section for the R scripts that go hand in hand with this script.
- Awk script to calculate standard deviation of the max-min range over all trials. One more example or running R scripts; this one runs a moving window scan of the data using a supportive R script. See also the R section for the R scripts that go hand in hand with this script.
Parsing and processing Presentation logfiles of various types
- Awk script to extract the a list of ratings participants provided for auditory stimuli
Filter the ERP Anova output texfile and generate a gist of all significant effects
- Awk script step 1 to filter out significant effects from the Tex file generated by ERP Anova (using the main.R method)
This script calls the step 2 script below, since step 2 depends fully upon the output of step 1 and should work in tandem with it.
- Awk script step 2 to filter out significant effects from the Tex file generated by ERP Anova (using the main.R method)
- Awk script for data munging using a start-stop pattern.
- Awk script to process praat-generated output to generate an output file that could be fed into R for plotting approximate auditory contours
- Awk script to parse an html source, such that all html tags are removed using regular expressions so as to filter our the contents
- Awk script to prepare a source text for hyphenation (using Latex in a further step) by removing special characters and punctuation
- Awk script to process hyphenated text generated using Latex
- Awk script to generate a wide-format auditory cues file for acoustic analysis
- Awk script to extract stanzawise word positions
Processing EEProbe Trigger files
- Awk script to insert auditory cues into EEProbe trigger files
- Awk script to insert missing triggers 8 and 9 (in case the Presentation script did not have the hard-coded solution in it)
Page is a work in Progress...;-)
Any and all scripts available on these pages or snippets thereof can be freely copied, reused, redistributed and modified, provided it is exclusively for non-commercial scientific research purposes. Unless otherwise explicitly mentioned in the header block, none of the scripts or snippets provided on these pages involve copyrighted material from or intellectual property of other unacknowledged sources.
Presentation is a registered trademark, owned by Neurobehavioral Systems, Inc., CA, USA.
Whilst the scripts and code snippets provided here are intended to be useful in the broader pursuit of science, they are provided 'as is', with no warranty of any sort, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the author(s) or the Institute be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the scripts provided on these pages or the use or other dealings in the scripts. Comments, criticisms and suggestions for improvements are always welcome. Please get in touch with Dr. R. Muralikrishnan in this regard. Copyleft (ↄ) R. Muralikrishnan (only for the scripts and code snippets on these pages).