Skip to content

Commit

Permalink
fix sample name in IGV tracks [ CW-5321 ]
Browse files Browse the repository at this point in the history
  • Loading branch information
nggvs committed Nov 19, 2024
1 parent 564d86c commit 77a13b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -483,9 +483,10 @@ workflow pipeline {
// publishing the output files
String published_path_str = "${dirname ? "$dirname/" : ""}$path.name"
if (dirname) {
String sample_name = dirname.tokenize( '/' )[0]
// the BAM + VCF files are published in per-sample sub-directories
if (path.name.endsWith(".bam") || path.name.endsWith(".vcf.gz")) {
published_path_str
"$sample_name,$published_path_str"
}
} else {
// the ref file and index are in the top-level output directory
Expand Down

0 comments on commit 77a13b7

Please sign in to comment.