Skip to main content

parse_swc_lines

Function parse_swc_lines 

Source
pub fn parse_swc_lines<R: BufRead, S: StructureIdentifier>(
    reader: R,
) -> impl Iterator<Item = Result<SwcLine<S>, SwcParseError>>
Expand description

Parse lines from a SWC file.

Skips blank lines and treats all #-prefixed lines as comments. Does not check the neuron for consistency, but does check for valid structures.