Skip to main content

chrom_sizes

Function chrom_sizes 

Source
pub fn chrom_sizes(input: &Path) -> Result<Vec<ChromSize>>
Expand description

Read just the names and lengths of each record.

bigWig stores chromosome sizes in its header, so they must all be known before any value is written. Sequences are read and dropped rather than retained, which costs a second pass over the file but keeps only one record in memory at a time.