bioforensics / MicroHapulator

Tools for empirical microhaplotype calling, forensic interpretation, and simulation.
https://microhapulator.readthedocs.io/
Other
6 stars 1 forks source link

Fix contrib API #70

Closed standage closed 5 years ago

standage commented 5 years ago

While updating a demo of the Python API, I discovered that the microhapulator.contrib.contrib has no way of processing a Profile object already in memory. It could only take a JSON file or BAM/FASTA as input. This update fixes the API so that the microhapulator.contrib.contrib works only on Profile objects, and changes the CLI to accommodate all the requisite handling of input files.


codecov-io commented 5 years ago

Codecov Report

Merging #70 into master will increase coverage by 0.01%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #70      +/-   ##
==========================================
+ Coverage   96.24%   96.25%   +0.01%     
==========================================
  Files          25       25              
  Lines         798      802       +4     
  Branches      157      157              
==========================================
+ Hits          768      772       +4     
  Misses         16       16              
  Partials       14       14
Impacted Files Coverage Δ
microhapulator/contrib.py 100% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 1daceb4...c991a4b. Read the comment docs.