Skip to content

Commit b6d8a72

Browse files
author
bayraktar1
committed
FLAIR parameters
1 parent 7f6f610 commit b6d8a72

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

config/config.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,15 @@ mincounts: "5"
2020

2121
mindatasets: "2"
2222

23+
# FLAIR parameters
24+
25+
flair_correct_window: 10
26+
27+
flair_collapse_quality: 1
28+
29+
flair_abundance_quality: 1
30+
31+
32+
2333
# threads
2434
threads: 10

workflow/Snakefile

+9-4
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,8 @@ rule flair_correct:
331331
annotation= existing_annotation,
332332
bed = rules.flair_align.output.bed
333333
params:
334-
outdir = lambda wildcards: OUTDIR / "FLAIR" / "corrected" / wildcards.sample / wildcards.sample
334+
outdir = lambda wildcards: OUTDIR / "FLAIR" / "corrected" / wildcards.sample / wildcards.sample,
335+
window = config["flair_correct_window"]
335336
output:
336337
bed_corrected = OUTDIR / "FLAIR" / "corrected" / "{sample}" / "{sample}_all_corrected.bed"
337338
threads: 10
@@ -345,7 +346,7 @@ rule flair_correct:
345346
--gtf {input.annotation} \
346347
--nvrna \
347348
--threads {threads} \
348-
--window 10 \
349+
--window {params.window} \
349350
--output {params.outdir}
350351
'''
351352

@@ -376,7 +377,8 @@ rule flair_collapse:
376377
params:
377378
reads = READS,
378379
temp_dir = OUTDIR / "FLAIR" / "COLLAPSE" / "collapse_logs",
379-
outdir = OUTDIR / "FLAIR" / "COLLAPSE" / "flair.collapse"
380+
outdir = OUTDIR / "FLAIR" / "COLLAPSE" / "flair.collapse",
381+
quality = config["flair_collapse_quality"]
380382
output:
381383
fa = OUTDIR / "FLAIR" / "COLLAPSE" / "flair.collapse.isoforms.fa"
382384
threads: 10
@@ -392,7 +394,7 @@ rule flair_collapse:
392394
--temp_dir {params.temp_dir} \
393395
--generate_map \
394396
--threads {threads} \
395-
--quality 1 \
397+
--quality {params.quality} \
396398
--output {params.outdir}
397399
'''
398400

@@ -419,6 +421,8 @@ rule flair_quantify:
419421
input:
420422
manifest = rules.flair_config.output.config,
421423
coll_fasta = rules.flair_collapse.output.fa
424+
params:
425+
quality = config["flair_abundance_quality"]
422426
output:
423427
abundance = OUTDIR / "FLAIR" / "quantify" / "flair_counts_matrix.tsv"
424428
threads: 10
@@ -431,5 +435,6 @@ rule flair_quantify:
431435
--isoforms {input.coll_fasta} \
432436
--threads {threads} \
433437
--tpm \
438+
--quality {params.quality}
434439
--output {output.abundance}
435440
'''

0 commit comments

Comments
 (0)