Skip to content

Commit

Permalink
feature: replace merging by NGmerge
Browse files Browse the repository at this point in the history
close replace MergeTrimReadsBAM.py kircherlab#57
  • Loading branch information
Max Schubach committed Nov 10, 2022
1 parent 682726d commit 0aa8cad
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 10 deletions.
6 changes: 3 additions & 3 deletions config/sbatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ assignment_merge:
time: "0-08:00"
queue: medium
assignment_fastq_split:
time: "0-02:00"
time: "0-04:00"
threads: 1
mem: 10G
queue: medium
Expand All @@ -28,9 +28,9 @@ assignment_collect:
mem: 10G
queue: medium
assignment_getBCs:
time: "0-04:00"
time: "1-08:00"
threads: 1
queue: short
queue: medium
assignment_statistic_totalCounts:
time: "0-01:00"
threads: 1
Expand Down
15 changes: 9 additions & 6 deletions workflow/rules/assignment.smk
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
SPLIT_FILES_NUMBER = 1


include: "assignment/statistic.smk"


Expand Down Expand Up @@ -78,9 +75,15 @@ rule assignment_merge:
"results/assignment/{assignment}/fastq/merge_split{split}.join.fastq.gz"
),
params:
min_overlap=20,
frac_mismatches_allowed=0.10,
min_dovetailed_overlap=50,
min_overlap=lambda wc: config["assignments"][wc.assignment]["NGmerge"][
"min_overlap"
],
frac_mismatches_allowed=lambda wc: config["assignments"][wc.assignment][
"NGmerge"
]["frac_mismatches_allowed"],
min_dovetailed_overlap=lambda wc: config["assignments"][wc.assignment][
"NGmerge"
]["min_dovetailed_overlap"],
log:
temp("results/logs/assignment/merge.{assignment}.{split}.log"),
shell:
Expand Down
2 changes: 1 addition & 1 deletion workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def withoutZeros(project, conf):


def getSplitNumber():
split = SPLIT_FILES_NUMBER
split = 1

if "global" in config:
if "assignments" in config["global"]:
Expand Down
19 changes: 19 additions & 0 deletions workflow/schemas/config.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,24 @@ properties:
type: string
minItems: 1
uniqueItems: true
NGmerge:
type: object
properties:
min_overlap:
type: integer
default: 20
frac_mismatches_allowed:
type: number
default: 0.1
min_dovetailed_overlap:
type: integer
default: 20
required:
- min_overlap
- frac_mismatches_allowed
- min_dovetailed_overlap
default: {}
additionalProperties: false
reference:
type: string
configs:
Expand Down Expand Up @@ -106,6 +124,7 @@ properties:
- configs
- alignment_start
- sequence_length
- NGmerge
additionalProperties: false
additionalProperties: false
minProperties: 1
Expand Down

0 comments on commit 0aa8cad

Please sign in to comment.