NEWCLAN

felt like it needed all caps. .cex to .cha.

newclan

This script converts our old .cex CLAN files into the new format (.cha). The script requires a skeleton .cha file generated through Lena, in addition to the input .cex file you're trying to convert.

usage

The newclan.py script takes 4 arguments:

1 $: python newclan.py silences_or_subregion_file.cex annotated_clan.cex its_skeleton.cha output_path

Instead of running newclan.py separately for each clan file, there's an included batch processing script that will walk up and down the Subject_Files directory tree and pull out the necessary file paths to feed as arguments to newclan.py. This batch script is called newclan_batch.py. It takes no arguments:

1 $: python newclan_batch.py

All the skeleton.cha files have already been generated from their corresponding skeleton.its files (produced by the Lena software). These .cha skeletons have been placed in the Audio_Files directory of their respective subject/visit folder, and newclan_batch.py will pull these out and use them as the appropriate .cha skeletons.

After newclan_batch.py has finished running through all the files it found, it'll print out a list of files that should have been found (in-lab visits are known to have happened already) but weren't. This list will be printed in the terminal window after newclan_batch.py is done.

Running batch conversion of the entire Subject_Files directory takes a pretty long time (anywhere from 10-20 minutes). Make sure the computer running newclan_batch.py has a wired network connection to Opus (i.e. not over wifi).

debug output files

There are some text files that will be generated from this script. These can be used for debugging purposes. One of them is called commands.txt (in the main folder). This will list all the files that the batch script found (and then passed as argument to newclan.py). There should be 4 files for each command. If any of them are missing, then that subject/visit never made it to the conversion step.

Last updated