Skip to content

Commit

Permalink
Adding new targets of rules
Browse files Browse the repository at this point in the history
  • Loading branch information
skchronicles committed Sep 26, 2023
1 parent eede2f1 commit 4665616
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
22 changes: 18 additions & 4 deletions workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,20 @@ rule all:
join(workpath, "{name}", "bams", "{name}.sorted.sqanti.transcriptome.bam"),
name=samples
),
# NanoCount to quantify novel isoform counts
# these counts are derived from SQANTI-filter
# aligned transcriptome.
# @imported from `rule sqanti_nanocount` in rules/sqanti.smk
expand(
join(workpath, "{name}", "counts", "{name}.nanocount.sqanti_filtered.transcripts.tsv"),
name=samples
),
# NanoCount to quantify novel isoform counts,
# these counts are derived from SQANTI-filter
# aligned transcriptome.
# @imported from `rule sqanti_nanocount_aggregate` in rules/sqanti.smk
join(workpath, "project", "counts", "novel", "nanocount.sqanti_filtered.transcripts.counts.tsv"),
join(workpath, "project", "counts", "novel", "nanocount.sqanti_filtered.transcripts.tpm.tsv"),
# Nanopolish polyA tail length estimation,
# needs index to map basecalled reads to
# raw signal from the ONT sequencer
Expand All @@ -291,28 +305,28 @@ rule all:
# Subset counts matrix for each
# comparison of interest
expand(
join(workpath, "project", "diffexp", "{grp1}_v_{grp2}", "genes_deseq2_{grp1}_v_{grp2}.tsv"),
join(workpath, "project", "diffexp", "{grp1}_v_{grp2}", "flair.transcripts.counts.tsv"),
zip,
grp1=flair_group1,
grp2=flair_group2,
),
# Differential genes expression analysis (DGE)
expand(
join(workpath, "project", "diffexp", "{grp1}_v_{grp2}", "genes_deseq2_{grp1}_v_{grp2}.tsv"),
join(workpath, "project", "diffexp", "{grp1}_v_{grp2}", "workdir", "genes_deseq2_{grp1}_v_{grp2}_results.tsv"),
zip,
grp1=flair_group1,
grp2=flair_group2,
),
# Differential isoform expression analysis (DIE/DTE)
expand(
join(workpath, "project", "diffexp", "{grp1}_v_{grp2}", "isoforms_deseq2_{grp1}_v_{grp2}.tsv"),
join(workpath, "project", "diffexp", "{grp1}_v_{grp2}", "workdir", "isoforms_deseq2_{grp1}_v_{grp2}_results.tsv"),
zip,
grp1=flair_group1,
grp2=flair_group2,
),
# Differential isoform usage analysis (DIU/DTU)
expand(
join(workpath, "project", "diffexp", "{grp1}_v_{grp2}", "isoforms_drimseq_{grp1}_v_{grp2}.tsv"),
join(workpath, "project", "diffexp", "{grp1}_v_{grp2}", "workdir", "isoforms_drimseq_{grp1}_v_{grp2}_results.tsv"),
zip,
grp1=flair_group1,
grp2=flair_group2,
Expand Down
6 changes: 3 additions & 3 deletions workflow/rules/diffexp.smk
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ rule flair_diffexp:
manifest = join(workpath, "project", "counts", "novel", "flair.sample_manifest.tsv"),
output:
counts = join(workpath, "project", "diffexp", "{grp1}_v_{grp2}", "flair.transcripts.counts.tsv"),
deg = join(workpath, "project", "diffexp", "{grp1}_v_{grp2}", "genes_deseq2_{grp1}_v_{grp2}.tsv"),
dei = join(workpath, "project", "diffexp", "{grp1}_v_{grp2}", "isoforms_deseq2_{grp1}_v_{grp2}.tsv"),
diu = join(workpath, "project", "diffexp", "{grp1}_v_{grp2}", "isoforms_drimseq_{grp1}_v_{grp2}.tsv"),
deg = join(workpath, "project", "diffexp", "{grp1}_v_{grp2}", "workdir", "genes_deseq2_{grp1}_v_{grp2}_results.tsv"),
dei = join(workpath, "project", "diffexp", "{grp1}_v_{grp2}", "workdir", "isoforms_deseq2_{grp1}_v_{grp2}_results.tsv"),
diu = join(workpath, "project", "diffexp", "{grp1}_v_{grp2}", "workdir", "isoforms_drimseq_{grp1}_v_{grp2}_results.tsv"),
params:
rname = "flairdiffexp",
outdir = join(workpath, "project", "diffexp", "{grp1}_v_{grp2}"),
Expand Down

0 comments on commit 4665616

Please sign in to comment.