Skip to content

Commit

Permalink
Cleaning up
Browse files Browse the repository at this point in the history
  • Loading branch information
Annaldasula committed Mar 19, 2024
1 parent fbe190a commit 06f9a05
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ workdir: "/scratch/sjannalda/projects/ArnicaProcessing"

# Samples to analyze
samples:
#spain1: /remote/trove/bgbm/baobab/2018_ArnicaSNP/spain/FASTQ/HFYM3DSX7_1_379UDI-idt-UMI
spain1: /scratch/reichel/pipelinetest/Spain/FASTQ/HFYM3DSX7_1_379UDI-idt-UMI
#ERR8268641: /scratch/sjannalda/bgbm/data/DownloadedData/ERR8268641/test/ERR8268641
SRR17032099: /scratch/sjannalda/projects/PlastidPipelineTesting/rawdata/SRR17032099/SRR17032099
#SRR17032099: /scratch/sjannalda/projects/PlastidPipelineTesting/rawdata/SRR17032099/SRR17032099
#SRR12917849: /scratch/sjannalda/projects/PlastidPipelineTesting/rawdata/SRR12917849/SRR12917849
SRR12917857: /scratch/sjannalda/projects/PlastidPipelineTesting/rawdata/SRR12917857/SRR12917857
#SRR12917857: /scratch/sjannalda/projects/PlastidPipelineTesting/rawdata/SRR12917857/SRR12917857
#ERR5529317: /scratch/sjannalda/projects/PlastidPipelineTesting/rawdata/ERR5529317/ERR5529317
#ERR5529436: /scratch/sjannalda/projects/PlastidPipelineTesting/rawdata/ERR5529436/ERR5529436
#ERR5554746: /scratch/sjannalda/projects/PlastidPipelineTesting/rawdata/ERR5554746/ERR5554746
Expand Down
12 changes: 6 additions & 6 deletions workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@ import os
workdir:config["workdir"]

for sample in config["samples"]:
if os.path.exists("%s_1.fq" %config["samples"][sample]):
end=".fq"
elif os.path.exists("%s_1.fq.gz" %config["samples"][sample]):
if os.path.exists("%s_1.fq.gz" %config["samples"][sample]):
end=".fq.gz"
elif os.path.exists("%s_1.fastq" %config["samples"][sample]):
end=".fastq"
elif os.path.exists("%s_1.fastq.gz" %config["samples"][sample]):
end=".fastq.gz"
elif os.path.exists("%s_1.fastq" %config["samples"][sample]):
end=".fastq"
elif os.path.exists("%s_1.fq" %config["samples"][sample]):
end=".fq"
else:
raise Exception("Input data %s not in proper format (either '.fq', '.fq.gz', '.fastq', or '.fastq.gz') or does not exist." %sample)
print(end)

def allInputFunction(wildcards):
output = []
Expand All @@ -24,7 +25,6 @@ def allInputFunction(wildcards):

output += expand("{sample}/01_data/{sample}.trimmed.qc.html",sample=config["samples"])



if (config["Standardization"]):
output += expand("{sample}/03_annotation/{sample}.standardardized.filt.gb", sample=config["samples"])
Expand Down
2 changes: 1 addition & 1 deletion workflow/rules/01_Processing.smk
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ rule SortReads:
read="{sample}/01_data/{sample}_{read}.trimmed.sorted.fastq.gz"
resources:
mem_mb=20000,
time="0-01:00:00"
time="0-03:00:00"
envmodules:
"bioawk"
shell:
Expand Down

0 comments on commit 06f9a05

Please sign in to comment.