Skip to content

Commit

Permalink
fix: pydeseq2 (#52)
Browse files Browse the repository at this point in the history
* fix: fixed read filter.py for read_length=0

* feat: samples lookup through params

* fix: renamed tsv to all_counts

* chore: removed 3 bad samples

* debug: until heatmap

* fix: could not get the workflow to work without this insane amount of memory

* feat: demanding correlation matrix and normalized counts (as csv) as outputs

* fix: requireing bam as input

* feat: working again, saver, needs cleaning up

* fix: removed unnecessary R scripts

* style: formatting + removed print statements

* style: snakefmt

---------

Co-authored-by: Yannic Eising <yeising@students.uni-mainz.de>
  • Loading branch information
cmeesters and yeising authored Jul 18, 2024
1 parent 992346b commit f8d566a
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 260 deletions.
6 changes: 3 additions & 3 deletions config/Mainz-MogonNHR/samples.csv
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ m18_bc06 male condition2 batch1 NANOPORE 1
ma_bc07 male condition2 batch2 NANOPORE 1
ma_bc08 male condition2 batch2 NANOPORE 1
ma_bc09 female condition2 batch2 NANOPORE 1
ma_bc10 male condition2 batch2 NANOPORE 1
ma_bc11 male condition2 batch2 NANOPORE 1
ma_bc12 female condition2 batch2 NANOPORE 1
#ma_bc10 male condition2 batch2 NANOPORE 1
#ma_bc11 male condition2 batch2 NANOPORE 1
#ma_bc12 female condition2 batch2 NANOPORE 1
7 changes: 5 additions & 2 deletions workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,17 @@ rule write_de_params:
rule de_analysis:
input:
de_params=rules.write_de_params.output.de_params,
coldata=rules.write_coldata.output.coldata,
tsv=rules.merge_counts.output,
all_counts=rules.merge_counts.output,
output:
dispersion_graph="de_analysis/dispersion_graph.svg",
ma_graph="de_analysis/ma_graph.svg",
de_heatmap="de_analysis/heatmap.svg",
correlation_matrix="de_analysis/correlation_matrix.svg",
normalized_counts="de_analysis/normalized_counts.csv",
de_top_heatmap="de_analysis/heatmap_top.svg",
lfc_analysis="de_analysis/lfc_analysis.csv",
params:
samples=samples,
log:
"logs/de_analysis.log",
threads: 4
Expand Down
2 changes: 1 addition & 1 deletion workflow/profile/Mainz-MogonNHR/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ set-resources:

sam_sort:
cpus_per_task: 4
mem_mb_per_cpu: 3600
mem_mb_per_cpu: 7200
runtime: "2h"

sam_view:
Expand Down
2 changes: 1 addition & 1 deletion workflow/rules/qc.smk
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ rule sam_sort:

rule map_qc:
input:
sorted_bam=rules.sam_sort.output,
bam=rules.sam_sort.output,
output:
directory("QC/qualimap/{sample}"),
log:
Expand Down
163 changes: 0 additions & 163 deletions workflow/scripts/de_analysis.R

This file was deleted.

Loading

0 comments on commit f8d566a

Please sign in to comment.