Skip to content

Commit

Permalink
fix bug for --mpheno
Browse files Browse the repository at this point in the history
  • Loading branch information
gc5k committed Dec 30, 2021
1 parent f0390db commit ec61361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GEAR/src/gear/subcommands/CommandArguments.java
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ public void setPhenotypeFile(String pheFile) {
public void setPhenotypeIndex(String[] pheIndex) {
CommandSplitter CS = new CommandSplitter.Builder(pheIndex).OPT(Command.OPT_MPHE).IntMin(1).create();
this.mPheno = CS.ParseToInt();
for(int i = 0; i < this.mPheno.length; i++) {
this.mPheno[i]--;
for (int i = 0; i < this.mPheno.length; i++) {
// this.mPheno[i]--;
if (this.mPheno[i] < 0) {
Logger.printUserLog("incorrect --mphe " + (mPheno[i]+1) + ". It should be > 0.");
System.exit(0);
Expand Down

0 comments on commit ec61361

Please sign in to comment.