Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cluster/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ set-resources:
- cca_classify:queue="gpu"
- cca_classify:gpu_opts="-gpu num=1:j_exclusive=yes"
- cca_classify:ngpu=1
- resquiggle:queue="gpu"
- resquiggle:gpu_opts="-gpu num=1:j_exclusive=yes"
- resquiggle:ngpu=1


printshellcmds: True
Expand Down
7 changes: 5 additions & 2 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: aatrnaseqpipe
name: aa-trna-seq-pipeline

channels:
- conda-forge
Expand All @@ -17,9 +17,12 @@ dependencies:
- gitpython
- pip
- dorado >= 0.7.2
- f5c
- squigualiser
- pip:
- pod5
- ont-remora >= 3.2
- snakemake-executor-plugin-lsf
- snakemake-executor-plugin-slurm
- snakemake-executor-plugin-cluster-generic
- snakemake-executor-plugin-cluster-generic
- blue-crab
1 change: 1 addition & 0 deletions workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ PIPELINE_DIR = os.path.dirname(SNAKEFILE_DIR)

include: "rules/common.smk"
include: "rules/aatrnaseq.smk"
include: "rules/squigualiser.smk"


report_metadata()
Expand Down
9 changes: 5 additions & 4 deletions workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ def pipeline_outputs():
values=["cpm", "counts"],
)

outs += expand(
os.path.join(outdir, "squigualizer", "{sample}", "{sample}.tsv"),
sample=samples.keys(),
)

if (
"remora_kmer_table" in config
and config["remora_kmer_table"] != ""
Expand All @@ -137,10 +142,6 @@ def pipeline_outputs():
sample=samples.keys(),
)

# if "trna_table" in config and config["trna_table"] != "" and config["trna_table"] is not None:
# outs += expand(os.path.join(outdir, "tables", "{sample}", "{sample}.charging_status.tsv"),
# sample = samples.keys())

return outs


Expand Down
33 changes: 33 additions & 0 deletions workflow/rules/squigualiser.smk
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@

rule blue_crab:
input:
rules.merge_pods.output,
output:
os.path.join(outdir, "squigualizer", "{sample}", "{sample}.blow5"),
log:
os.path.join(outdir, "logs", "blue_crab", "{sample}"),
shell:
"""
blue-crab p2s {input} -o {output}
"""


rule resquiggle:
input:
fastq=rules.ubam_to_fq.output,
signal=rules.blue_crab.output,
output:
os.path.join(outdir, "squigualizer", "{sample}", "{sample}.tsv"),
log:
os.path.join(outdir, "logs", "resquiggle", "{sample}"),
shell:
"""
f5c_x86_64_linux_cuda \
resquiggle \
# XXX -B depends on memory available
-B 10 \
--rna \
-c {input.fastq} \
{input.signal} \
-o {output}
"""
Loading