Skip to content

Commit

Permalink
Merge pull request #120 from lifeomic/update-sample
Browse files Browse the repository at this point in the history
Add option to update sample name when creating a genomic set
  • Loading branch information
mschroering authored Nov 14, 2019
2 parents bed12f7 + 0c25dc3 commit 616d053
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion lib/cmds/genomics_cmds/create-genomic-set.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ exports.builder = yargs => {
describe: 'Update the filter for all variants to be PASS',
type: 'boolean',
default: false
}).option('update-sample', {
describe: 'Update the VCF sample name to a unique value',
type: 'boolean',
default: false
});
};

Expand All @@ -74,7 +78,8 @@ exports.handler = async argv => {
indexedDate: argv.indexedDate,
performerId: argv.performerId,
outputVcfName: argv.outputVcfName,
passFilter: argv.passFilter
passFilter: argv.passFilter,
updateSample: argv.updateSample
});
print(response.data, argv);
};
3 changes: 2 additions & 1 deletion test/unit/commands/ga4gh-genomicset.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ test.serial.cb('The "ga4gh-genomicsets-create" should create a genomic set', t =
performerId: 'performer1',
indexedDate: '1999-01-01 12:00',
outputVcfName: 'foo.vcf.gz',
passFilter: false
passFilter: false,
updateSample: false
});
t.is(printSpy.callCount, 1);
t.is(printSpy.getCall(0).args[0], res.data);
Expand Down

0 comments on commit 616d053

Please sign in to comment.