KLUSTA(1)

πŸ“¦ version 3.0.16, in fedora 43

πŸ‘‘ KLUSTA πŸ’…

okay bestie, welcome to klusta β€” it's a User Command, it lives in section 1 of the manual, and it is literally here to spikesort your dataset. no cap. 🧚✨


✨ NAME ✨

klusta β€” spikesort a dataset πŸ¦‹


🌸 SYNOPSIS 🌸

klusta [OPTIONS] PRM_FILE

that's it. that's the whole vibe. options, then your PRM file. periodt. πŸ’–


πŸ’œ DESCRIPTION πŸ’œ

Spikesort a dataset. yes queen, that's the whole job description and she ate. πŸ”₯

By default, klusta performs spike detection (with SpikeDetekt) and automatic clustering (with KlustaKwik2) β€” the whole glow-up, start to finish. But bestie, you can also choose to run only one step if that's the energy you're on. πŸ™ˆ

You need to specify three pieces of information to spikesort your data, and no you cannot skip any of them, i'm so serious:

  • The raw data file β€” typically a .dat file. πŸ“
  • The PRM file β€” a Python file with the .prm extension, containing the parameters for your sorting session. this one goes in the command line, iykyk.
  • The PRB file β€” a Python file with the .prb extension, containing the layout of your probe. πŸ”

three little files, one big slay. 🌈


πŸ’… OPTIONS πŸ’…

  • --output-dir DIRECTORY β€” where the output goes. your output directory, bestie. πŸŽ€
  • --interval <FLOAT FLOAT>... β€” interval in seconds, e.g. --interval 0 2. two floats, one interval. πŸ‘‘
  • --channel-group INTEGER β€” the channel group to cluster. all of them by default, because she's generous like that. πŸ’–
  • --detect-only β€” only do spike detection. that's it. just the detection. nothing else. πŸ’€
  • --cluster-only β€” only do automatic clustering. skip the detection, go straight to the clustering. main character energy. ✨
  • --legacy-output β€” save .res and .clu files in addition to .kwik. for the people who still want the old files. we love a nostalgic moment. 🫢
  • --overwrite β€” overwrite the Kwik file. be careful bestie, she will not ask twice. 😭
  • --debug β€” use the DEBUG logging level. everything gets loud. πŸ”₯
  • --version β€” show the version and exit. quick lil flex. 🌸
  • --help β€” show this message and exit. you're already here tho. πŸ™ˆ

heads up bestie: --detect-only and --cluster-only are how you run just one step, and --overwrite really does overwrite the Kwik file, so like… know what you're doing. πŸ’…

this lil icon was brought to you by klusta 3.0.16, dated June 2025 β€” mwah, kiss the manual goodbye, go sort some spikes πŸ’‹πŸŒˆβœ¨

πŸ“¦ where this page comes from