-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsummarize.nf
More file actions
55 lines (50 loc) · 1.62 KB
/
Copy pathsummarize.nf
File metadata and controls
55 lines (50 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* SUMMARIZE
* Reads all upstream Parquet outputs and writes final TSV deliverables
* and a human-readable summary report.
*
* Inputs:
* scored_nodes.parquet : final node table
* expanded_edges.parquet : full edge list
* reassigned_groups.parquet : final group assignments
* entropy_scores.parquet : entropy scores
* duplicated_edges.parquet : duplicated edge assignments
* expansion_log.parquet : expansion round log
*
* Outputs:
* final_nodes.tsv : all nodes with kind, feature combo, edge source
* final_edges.tsv : all edges
* final_groups.tsv : anchor groups with entropy and combo signatures
* summary_report.txt
*/
process SUMMARIZE {
tag "summarize"
label "process_low"
publishDir "${params.outdir}", mode: 'copy'
input:
path scored_nodes
path expanded_edges
path reassigned_groups
path entropy_scores
path duplicated_edges
path expansion_log
output:
path "final_nodes.tsv", emit: nodes
path "final_edges.tsv", emit: edges
path "final_groups.tsv", emit: groups
path "summary_report.txt", emit: report
script:
"""
python3 ${projectDir}/bin/core/summarize.py \
--nodes ${scored_nodes} \
--edges ${expanded_edges} \
--groups ${reassigned_groups} \
--scores ${entropy_scores} \
--duplicates ${duplicated_edges} \
--log ${expansion_log} \
--out_nodes final_nodes.tsv \
--out_edges final_edges.tsv \
--out_groups final_groups.tsv \
--out_report summary_report.txt
"""
}