Skip to content

Commit

Permalink
Merge pull request #246 from mgalardini/issue_128
Browse files Browse the repository at this point in the history
Refuse to run in a certain configuration in fixed effects mode
  • Loading branch information
johnlees authored Sep 25, 2023
2 parents 6105868 + c5fb35d commit 500f327
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyseer/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,10 @@ def main():
sys.stderr.write('Option --no-distances must be used when no distance matrix is provided\n')
sys.exit(1)
else:
if not options.lmm and not options.wg and not options.lineage_clusters and options.lineage:
sys.stderr.write('Must provide a lineage clusters file when --no-distances '
'and --lineage are used together in fixed-effects mode\n')
sys.exit(1)
if options.distances or options.load_m:
sys.stderr.write('Cannot use --no-distances with --distances or --load-m\n')
sys.exit(1)
Expand Down

0 comments on commit 500f327

Please sign in to comment.