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

Improved error messages when parameter missing #1

Open
jfy133 opened this issue Jun 7, 2018 · 0 comments
Open

Improved error messages when parameter missing #1

jfy133 opened this issue Jun 7, 2018 · 0 comments

Comments

@jfy133
Copy link
Contributor

jfy133 commented Jun 7, 2018

It would be useful that the tool does a check for the number of required parameters (those prior to the list of input VCFs), and give a clear error message when not all the expected parameters are provided.

For example, running the following:

$MULTIVCFANALYZER \
NA \
/projects1/calculus_microbiome/evolution/04-analysis/screening/eager/references/${SPECIES^}/*.fa \
/projects1/calculus_microbiome/evolution/04-analysis/screening/eager/references/${SPECIES^}/*.gff \
/projects1/calculus_microbiome/evolution/04-analysis/screening/multivcfanalyzer/output/$PARAM/$SPECIES \
T \
30 \
1 \
0.9 \
0.9 \
${FILES[*]}

where the 'positions to include' parameter is missing, gives the following error:

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 3
        at Main.getPositionsToExclude(Main.java:1103)
        at Main.main(Main.java:77)

which for a novice command line/java user would not be clear what the issue would be.

alexherbig pushed a commit that referenced this issue Nov 20, 2019
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

1 participant