Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix non-mandatory prefix option #9

Open
nylander opened this issue Feb 15, 2024 · 1 comment
Open

Fix non-mandatory prefix option #9

nylander opened this issue Feb 15, 2024 · 1 comment

Comments

@nylander
Copy link

Dear @BenoitMorel !

Currently, the -p (prefix) parameter is non mandatory and not set with a default value. When running your minimal example ./asteroid -i GENE_TREES, this will result in "hidden" output files (.allTrees.newick, .bestTree.newick, .scores.txt).

One can solve this in several ways: Check for prefix as a mandatory parameter and stop if not provided, or set a fixed default prefix string if prefix is not provided, or base the prefix on the input. Adding the lines below to Arguments.cpp will do the latter.

Cheers
Johan


Change (starting at line 56):

  if (inputBSGeneTreeFile.size() == 0) {
    inputBSGeneTreeFile = inputGeneTreeFile;
  }   

to

  if (inputBSGeneTreeFile.size() == 0) {
    inputBSGeneTreeFile = inputGeneTreeFile;
  }
  if (prefix.empty()) {
    prefix = inputGeneTreeFile;
  }

@BenoitMorel
Copy link
Owner

BenoitMorel commented Feb 16, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants