tolkit / fasta_windows

A Rust implementation of sliding window stats over fastas.
MIT License
13 stars 2 forks source link

handle ambiguity codes in GC and calculate masked proportion #12

Closed rjchallis closed 1 year ago

rjchallis commented 1 year ago

Hi Max

As fasta_windows is being used to replace a python script in the Nextflow version of the BlobToolKit pipeline, it would be really handy to also get the masked proportion so I've made a fork to include this in the output.

Also took the liberty of replacing all the magic numbers with byte literals so I could keep track of which bases were which and included W/S bases in the GC proportion calculation to bring it in line with the current btk implementation.

Rich