matsengrp / cft

Clonal family tree
5 stars 3 forks source link

Deal with empty partition-files #244

Closed metasoarous closed 6 years ago

metasoarous commented 6 years ago

In certain cases partis may be reasonably expected to output an empty partition-file. Currently, ClusterPath.readfile throws an error when this happens. @psathyrella has agreed that it might make sense for this method to behave more appropriately (or at least have a descriptive exception one could try/except on?).

For now I'm going to just catch the Exception that currently gets thrown and manually check to see if it's from an empty file. But eventually, we'll want to adapt this solution to match whatever @psathyrella comes up with on his end.