> For the complete documentation index, see [llms.txt](https://gitbook.bergelsonlab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.bergelsonlab.com/archive/seedlings/assorted-scripts/clancomments.md).

# clancomments

How to run the clancomments script

## clancomments script

1. Check that clancomments is on your computer. It should be in Desktop/GitHub/SeedlingsBabylab.

   i. **If clancomments is not there,** you can download it from [Github here](https://github.com/SeedlingsBabylab/clancomments).
2. Open Terminal and change the directory to where the script is.

   ```
   cd /Users/bergelsonlab/Desktop/GitHub/SeedlingsBabylab/clancomments
   ```
3. The clancomments script takes two arguments:

   ```
   python clancomments.py [file directory] [outout.csv]
   ```

* **file directory**: the folder in which your cha file lives
  * NOTE: clancomments runs on a directory (not a single file), so you need to specify a directory that contains *only one .cha*. You may need to copy and paste the .cha file you're working on elsewhere.
* **output.csv**: this is what the script will output. Name it according to the cha file, and add "comments." Ex: 01\_06\_coderSD\_comments.csv

When you're ready, the script should look something like this:

```
python clancomments.py / Volumes/seedlings/Subject_Files/01_01-01-2015/01_06/Home_Vist/Coding/Audio_Annotation 01_06_comments.csv
```

1. This will output a .csv that lists all of the comments in the CLAN file.
