Skip to content

Commit e6a745c

Browse files
committed
Fix: Updating renaming of col names for ISA sample sheet.
1 parent c9496e6 commit e6a745c

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

workflow/rules/isoformswitchanalyzer.smk

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,8 @@ rule isoformswitchanalyzer_mkgroups:
263263
# Nth column(s) = Covariates
264264
# Create header for file, IsoformSwitchAnalyzeR
265265
# expects the certain column names in design file
266-
paste \\
267-
<(head -1 {input.sample_sheet} | cut -f1 | sed 's/Sample/sampleID/') \\
268-
<(head -1 {input.sample_sheet} | cut -f2 | sed 's/Group/condition/') \\
269-
<(head -1 {input.sample_sheet} | cut -f3-) \\
266+
awk -F '\\t' -v OFS='\\t' \\
267+
'NR==1 {{$1="sampleID"; $2="condition"; print}}' \\
270268
> {output.grp}
271269
# Create sample sheet for IsoformSwitchAnalyzeR
272270
awk -F '\\t' -v OFS='\\t' \\

0 commit comments

Comments
 (0)