Skip to content

Commit

Permalink
deseq2 salmon
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Apr 10, 2024
1 parent 7771c4a commit 4385081
Showing 1 changed file with 12 additions and 29 deletions.
41 changes: 12 additions & 29 deletions snakePipes/shared/rules/DESeq2.singleComp.snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,23 +52,14 @@ rule DESeq2_Salmon_basic:
fdr = fdr,
importfunc = os.path.join(maindir, "shared", "rscripts", "DE_functions.R"),
allele_info = 'FALSE',
tx2gene_file = "Annotation/genes.filtered.t2g",
tx2gene_file = os.path.join(outdir,"Annotation/genes.filtered.t2g"),
rmdTemplate = os.path.join(maindir, "shared", "rscripts", "DESeq2Report.Rmd"),
formula = config["formula"]
formula = config["formula"],
counts_table = lambda wildcards,input: os.path.join(outdir,input.counts_table),
symbol_file = lambda wildcards,input: os.path.join(outdir,input.symbol_file)
conda: CONDA_RNASEQ_ENV
shell:
"cd {params.outdir} && "
"Rscript {params.script} "
"{input.sampleSheet} " # 1
"../{input.counts_table} " # 2
"{params.fdr} " # 3
"../{input.symbol_file} " # 4
"{params.importfunc} " # 5
"{params.allele_info} " # 6
"../{input.tx2gene_file} " # 7
"{params.rmdTemplate} " # 8
"{params.formula} " # 9
" > ../{log.out} 2> ../{log.err}"
script: "{params.script}"


rule DESeq2_Salmon_allelic:
input:
Expand All @@ -89,18 +80,10 @@ rule DESeq2_Salmon_allelic:
fdr = fdr,
importfunc = os.path.join(maindir, "shared", "rscripts", "DE_functions.R"),
allele_info = 'TRUE',
tx2gene_file = "Annotation/genes.filtered.t2g",
rmdTemplate = os.path.join(maindir, "shared", "rscripts", "DESeq2Report.Rmd")
tx2gene_file = os.path.join(outdir,"Annotation/genes.filtered.t2g"),
rmdTemplate = os.path.join(maindir, "shared", "rscripts", "DESeq2Report.Rmd"),
formula = config["formula"],
counts_table = lambda wildcards,input: os.path.join(outdir,input.counts_table),
symbol_file = lambda wildcards,input: os.path.join(outdir,input.symbol_file)
conda: CONDA_RNASEQ_ENV
shell:
"cd {params.outdir} && "
"Rscript {params.script} "
"{input.sampleSheet} " # 1
"../{input.counts_table} " # 2
"{params.fdr} " # 3
"../{input.symbol_file} " # 4
"{params.importfunc} " # 5
"{params.allele_info} " # 6
"../{input.tx2gene_file} " # 7
"{params.rmdTemplate} " # 8
" > ../{log.out} 2> ../{log.err}"
script: "{params.script}"

0 comments on commit 4385081

Please sign in to comment.