Skip to content

Commit

Permalink
validate typescript expression using cwl-ica
Browse files Browse the repository at this point in the history
  • Loading branch information
skanwal committed Feb 18, 2025
1 parent 5c8a6d5 commit c0e4f57
Show file tree
Hide file tree
Showing 5 changed files with 448 additions and 428 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -667,3 +667,9 @@ function generate_ora_mount_points(input_run, output_directory_path, sample_id_l
/* @ts-ignore Type '{ entryname:string; entry:FileProperties; }[]' is not assignable to type 'DirentProperties[]' */
return e;
}
function get_contamination_dir() {
/*
Hardcoded contamination directory in dragen
*/
return "/opt/edico/config/";
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ exports.find_fastq_files_in_directory_recursively_with_regex = find_fastq_files_
exports.get_rgsm_value_from_fastq_file_name = get_rgsm_value_from_fastq_file_name;
exports.get_lane_value_from_fastq_file_name = get_lane_value_from_fastq_file_name;
exports.generate_ora_mount_points = generate_ora_mount_points;
exports.get_contamination_dir = get_contamination_dir;
// Author: Alexis Lucattini
// For assistance on generation of typescript expressions
// In CWL, please visit our wiki page at https://github.com/umccr/cwl-ica/wiki/TypeScript
Expand Down Expand Up @@ -705,3 +706,9 @@ function generate_ora_mount_points(input_run, output_directory_path, sample_id_l
// @ts-ignore Type '{ entryname: string; entry: FileProperties; }[]' is not assignable to type 'DirentProperties[]'
return e;
}
function get_contamination_dir() {
/*
Hardcoded contamination directory in dragen
*/
return "/opt/edico/config/";
}
Original file line number Diff line number Diff line change
Expand Up @@ -777,4 +777,11 @@ export function generate_ora_mount_points(input_run: IDirectory, output_director
// Return the dirent
// @ts-ignore Type '{ entryname: string; entry: FileProperties; }[]' is not assignable to type 'DirentProperties[]'
return e;
}

export function get_contamination_dir(): string {
/*
Hardcoded contamination directory in dragen
*/
return "/opt/edico/config/";
}
16 changes: 8 additions & 8 deletions typescript-expressions/dragen-tools/4.0.3/tests/summary.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Test started at 2024-11-20T21:05:15+11:00
# Test started at 2025-02-18T15:47:25+11:00

PASS tests/dragen-tools__4.0.3.test.js
● Console
Expand All @@ -12,7 +12,7 @@ PASS tests/dragen-tools__4.0.3.test.js
groups: undefined
]

at log (dragen-tools__4.0.3.js:639:17)
at log (dragen-tools__4.0.3.js:640:17)

console.log
[
Expand All @@ -23,7 +23,7 @@ PASS tests/dragen-tools__4.0.3.test.js
groups: undefined
]

at log (dragen-tools__4.0.3.js:639:17)
at log (dragen-tools__4.0.3.js:640:17)

FAIL tests/dragen-tools__4.0.3.test.ts
● Test suite failed to run
Expand All @@ -35,15 +35,15 @@ FAIL tests/dragen-tools__4.0.3.test.ts


=============================== Coverage summary ===============================
Statements : 84.64% ( 248/293 )
Statements : 84.4% ( 249/295 )
Branches : 69.71% ( 99/142 )
Functions : 58.33% ( 21/36 )
Lines : 83.27% ( 224/269 )
Functions : 56.75% ( 21/37 )
Lines : 83.02% ( 225/271 )
================================================================================
Test Suites: 1 failed, 1 passed, 2 total
Tests: 16 passed, 16 total
Snapshots: 0 total
Time: 1.838 s
Time: 1.395 s
Ran all test suites.
# Test completed at 2024-11-20T21:05:18+11:00
# Test completed at 2025-02-18T15:47:28+11:00

Loading

0 comments on commit c0e4f57

Please sign in to comment.