@@ -6,6 +6,7 @@ metadata = pd.read_csv(config["metasheet"], index_col=0, sep=',')
6
6
metadata = pd .read_csv (config ["metasheet" ], index_col = 0 , sep = ',' )
7
7
options = [config ["Treatment" ],config ["Control" ]]
8
8
design = config ["design" ]
9
+ #batch = config["batch"]
9
10
10
11
def getsampleIDs (meta ):
11
12
return meta [meta [design ].isin (options )].index
@@ -57,13 +58,13 @@ rule preprocess_prada:
57
58
"benchmarks/fusion/{design}_preprocess_prada.benchmark"
58
59
conda : "../envs/stat_perl_r.yml"
59
60
params :
60
- outdir = "analysis/fusion/" ,
61
+ outdir = "analysis/fusion/{design}_ " ,
61
62
path = "set +eu;source activate %s" % config ['stat_root' ],
62
- pheno = config ["design" ],
63
+ # pheno = config["design"],
63
64
gtf = config ['annotation_pyprada' ],
64
65
anno = 'analysis/fusion/pyprada_annotation.txt'
65
66
shell :
66
- "{params.path}; Rscript src/mutation/preprocess_prada.R --fusion {input} --outdir {params.outdir} --phenotype {params.pheno} "
67
+ "{params.path}; Rscript src/mutation/preprocess_prada.R --fusion {input} --outdir {params.outdir} "
67
68
""" && cat {output.table} | sed 's/\\ t/\\ n/g' | sort | uniq > {output.uniquegene} """
68
69
""" && grep -f {output.uniquegene} {params.gtf} > {params.anno} """
69
70
0 commit comments