pub fn detect_format(path: &Path) -> Result<Format>
Detect the tractogram format from a file path or directory.
Returns Err if the path does not match a known format.
Err