1 # Copyright (C) The Lightning Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
8 InlineJavascriptRequirement: {}
10 LoadListingRequirement:
11 loadListing: shallow_listing
22 secondaryFiles: [.csi]
29 for (var i = 0; i < inputs.chrs.length; i++) {
30 var chr = inputs.chrs[i];
31 var sample = inputs.sample+"."+chr;
32 for (var j = 0; j < inputs.vcfdir.listing.length; j++) {
33 var file = inputs.vcfdir.listing[j];
34 if (file.basename.includes("."+chr+".")) {
39 for (var j = 0; j < inputs.gnomaddir.listing.length; j++) {
40 var file = inputs.gnomaddir.listing[j];
41 if (file.basename.includes("."+chr+".")) {
46 for (var j = 0; j < inputs.gnomaddir.listing.length; j++) {
47 var file = inputs.gnomaddir.listing[j];
48 if (file.basename == gnomad.basename+".csi") {
49 gnomad.secondaryFiles = [file];
58 return {"samples": samples, "vcfs": vcfs, "gnomads": gnomads};