Skip to content

Commit

Permalink
Merge branch 'cw-5321' into 'dev'
Browse files Browse the repository at this point in the history
fix sample name in IGV tracks [ CW-5321 ]

See merge request epi2melabs/workflows/wf-amplicon!98
  • Loading branch information
nggvs committed Nov 19, 2024
2 parents 564d86c + 77a13b7 commit 1cf4682
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 1cf4682

Please sign in to comment.