pdimens / harpy

Process raw haplotagging data, from raw sequences to phased haplotypes, batteries included.
https://pdimens.github.io/harpy
GNU General Public License v3.0
13 stars 1 forks source link

internal API overhaul #73

Closed pdimens closed 6 months ago

pdimens commented 6 months ago

This PR, while incomplete WRT to simulating reads, activates testing for the huge API change inside harpy

The changes:

  1. Modules return the snakemake command that main() will process at the workflow
    • this reduces the code redundancy for each module to have to generate conda deps, run the workflow
  2. deprecated fetch_file() in favor of building the scripts and rules with the harpy package, meaning the files will live alongside the harpy python installation (managed by pip) and the files can be called by importlib_resources.files(), which is much MUCH less brittle than before.