suchapalaver / krust

Bioinformatics 101 tool for counting unique k-length substrings in DNA
MIT License
30 stars 5 forks source link

change the Config struct member kmer_len to be a usize #1

Closed suchapalaver closed 3 years ago

suchapalaver commented 3 years ago

Rather than do let kmer_len = config.kmer_len.parse::().unwrap();, I would instead change the Config struct member kmer_len to be a usize, and perform parsing while constructing Config - Config::new already returns Result.