Skip to content

Commit

Permalink
Merge pull request #137 from lifeomic/sequence-id
Browse files Browse the repository at this point in the history
Added sequence id to create-genomic-set
  • Loading branch information
mschroering authored Mar 5, 2020
2 parents 7c0fd13 + 67e8999 commit e869544
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 204 deletions.
6 changes: 5 additions & 1 deletion lib/cmds/genomics_cmds/create-genomic-set.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ exports.builder = yargs => {
}).option('test-id', {
describe: 'The ID of the test to use for grouping related genomic sets.',
type: 'string'
}).option('sequence-id', {
describe: 'The ID to use for the FHIR Sequence resource.',
type: 'string'
});
};

Expand All @@ -83,7 +86,8 @@ exports.handler = async argv => {
outputVcfName: argv.outputVcfName,
passFilter: argv.passFilter,
updateSample: argv.updateSample,
testId: argv.testId
testId: argv.testId,
sequenceId: argv.sequenceId
});
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 @@ -45,7 +45,8 @@ test.serial.cb('The "ga4gh-genomicsets-create" should create a genomic set', t =
outputVcfName: 'foo.vcf.gz',
passFilter: false,
updateSample: false,
testId: undefined
testId: undefined,
sequenceId: undefined
});
t.is(printSpy.callCount, 1);
t.is(printSpy.getCall(0).args[0], res.data);
Expand Down
Loading

0 comments on commit e869544

Please sign in to comment.