1 # Copyright (C) The Lightning Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
7 label: Create list of VCFs and sample names
9 LoadListingRequirement:
10 loadListing: shallow_listing
14 label: Input directory of VCFs
21 label: Sample names of VCFs
23 InlineJavascriptRequirement: {}
28 for (var i = 0; i < inputs.dir.listing.length; i++) {
29 var file = inputs.dir.listing[i];
30 if (file.nameext == ".gz") {
32 var sample = file.basename.split(".").slice(0, -2).join(".");
36 return {"vcfs": vcfs, "samples": samples};