Skip to content

Commit 23565b0

Browse files
author
Ubuntu
committed
modify merge tpm inputs
1 parent 6a19796 commit 23565b0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

modules/preprocess/preprocess_cohort.snakefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ def merge_sep_inputs(inputs):
1414
inputs_format = ' -f '.join(str(i) for i in list(inputs)[0])
1515
return inputs_format
1616

17+
def merge_sal_inputs(inputs):
18+
inputs_format = ','.join(str(i) for i in list(inputs)[0])
19+
return inputs_format
20+
21+
1722
def preprocess_cohort_targets(wildcards):
1823
ls = []
1924
ls.append("analysis/star/STAR_Align_Report.csv" )
@@ -116,7 +121,7 @@ rule salmon_matrix:
116121
benchmark:
117122
"benchmarks/salmon/salmon_gene_matrix.benchmark"
118123
params:
119-
args = lambda wildcards, input: merge_sep_inputs({input.salmon_tpm_files}),
124+
args = lambda wildcards, input: merge_sal_inputs({input.salmon_tpm_files}),
120125
tx2gene = 'static/deseq2/tx2gene.csv',
121126
outpath = 'analysis/salmon/',
122127
path = "set +eu;source activate %s" % config['stat_root']

0 commit comments

Comments
 (0)