Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jan 10, 2025
1 parent 78c254f commit 305e916
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions snakePipes/shared/rules/DESeq2.singleComp.snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def get_outdir(folder_name,sampleSheet):
## DESeq2 (on featureCounts)
rule DESeq2:
input:
counts_table = lambda wildcards : "featureCounts/counts_allelic.tsv" if 'allelic-mapping' in mode or "allelic-counting" in mode else "featureCounts/counts.tsv",
counts_table = lambda wildcards : "featureCounts/counts_allelic.tsv" if 'allelic' in mode else "featureCounts/counts.tsv",
sampleSheet = sampleSheet,
symbol_file = "Annotation/genes.filtered.symbol" #get_symbol_file
output:
Expand All @@ -20,7 +20,7 @@ rule DESeq2:
outdir = get_outdir("DESeq2",sampleSheet),
fdr = fdr,
importfunc = os.path.join(maindir, "shared", "rscripts", "DE_functions.R"),
allele_info = lambda wildcards : 'TRUE' if 'allelic-mapping' in mode or "allelic-counting" in mode else 'FALSE',
allele_info = lambda wildcards : 'TRUE' if 'allelic' in mode else 'FALSE',
tx2gene_file = 'NA',
rmdTemplate = os.path.join(maindir, "shared", "rscripts", "DESeq2Report.Rmd"),
formula = config["formula"],
Expand Down
4 changes: 2 additions & 2 deletions snakePipes/workflows/mRNAseq/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ else:
include: os.path.join(maindir, "shared", "rules", "LinkBam.snakefile")


if "allelic-mapping" in mode or "allelic-counting" in mode or "allelic-whatshap" in mode:
if "allelic" in mode:
## featureCounts_allelic
include: os.path.join(maindir, "shared", "rules", "featureCounts_allelic.snakefile")
else:
Expand Down Expand Up @@ -254,7 +254,7 @@ def make_nmasked_genome():
return([])

def run_allelesp_mapping():
if "allelic-mapping" in mode or "allelic-counting" in mode or "allelic-whatshap" in mode:
if "allelic" in mode:
allele_suffix = ['allele_flagged', 'genome1', 'genome2', 'unassigned']
file_list = [
expand("allelic_bams/{sample}.{suffix}.sorted.bam", sample = samples,
Expand Down

0 comments on commit 305e916

Please sign in to comment.