Open brentp opened 1 year ago
currently, it's required to get chrom_ordering from a .genome (fai) file. But bedder should also support reading it from a bam/sam/cram header or a .dict file. It can use the current sniffers and get the appropriate info into the HashMap<String, Chromosome> format: https://github.com/quinlan-lab/bedder-rs/blob/fe37df328dac154067cc1c1c535e45fb3b58983f/src/chrom_ordering.rs#L5-L12
bedder
Should probably also update length to u64 and use u64::MAX if it's not given.
length
currently, it's required to get chrom_ordering from a .genome (fai) file. But
bedder
should also support reading it from a bam/sam/cram header or a .dict file. It can use the current sniffers and get the appropriate info into the HashMap<String, Chromosome> format: https://github.com/quinlan-lab/bedder-rs/blob/fe37df328dac154067cc1c1c535e45fb3b58983f/src/chrom_ordering.rs#L5-L12