Skip to content

Commit

Permalink
Fixes pnrobinson#15 and pnrobinson#16 issues related to default/other…
Browse files Browse the repository at this point in the history
… assemblies

Adds a defaultValue parameter for the assembly command line option and adds a break so hg38/GRCh38 can be identified.
  • Loading branch information
josephcmurray committed Oct 19, 2021
1 parent 4f856c3 commit 6ce39d6
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
*/
public abstract class GenomicDataCommand extends Command {
@CommandLine.Option(names = {"-a", "--assembly"},
defaultValue = "hg19",
scope = CommandLine.ScopeType.INHERIT,
description = "genome assembly: ${COMPLETION-CANDIDATES}, default ${DEFAULT_VALUE}")
protected Assembly assembly = Assembly.GRCh19;
description = "genome assembly: ${COMPLETION-CANDIDATES}, default ${DEFAULT-VALUE}")
protected Assembly assembly;

@CommandLine.Option(names = "--database",
scope = CommandLine.ScopeType.INHERIT,
Expand Down Expand Up @@ -53,6 +54,7 @@ protected String getJannovarPath() {
} else {
throw new Vcf2OmopRuntimeException("Could not identify databasae " + genomeDatabase);
}
break;
default:
throw new Vcf2OmopRuntimeException("Could not identify assembly " + assembly.toString());
}
Expand Down

0 comments on commit 6ce39d6

Please sign in to comment.