ksahlin / NGSpeciesID

Reference-free clustering and consensus forming of long-read amplicon sequencing
GNU General Public License v3.0
49 stars 14 forks source link

feat: open/close files using 'with' context manager to avoid closing unopened files #16

Closed Coppini closed 2 years ago

Coppini commented 2 years ago

I encountered an error when running NGSpeciesID, as described in issue #15

This PR would fix #15, as well as printing some additional information to the user about the number of discarded singletons and clusters, which can be helpful in identifying when you're using a higher abundance_ratio than you should (for large primer pools, with multiple amplicons, for example).