You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: workflow/scripts/general_functions.smk
+12-1
Original file line number
Diff line number
Diff line change
@@ -465,4 +465,15 @@ def input_extension():
465
465
ifpaired_end:
466
466
return []
467
467
else:
468
-
return".fastq.gz"
468
+
return".fastq.gz"
469
+
470
+
471
+
defcheck_consensus_peak_settings():
472
+
keep=config["consensus_peaks"]["keep"]
473
+
474
+
# Get number of subdirectories in reads/
475
+
subdirs=glob.glob("reads/*")
476
+
subdirs=len([dfordinsubdirsifos.path.isdir(d)])
477
+
478
+
ifkeep>subdirs:
479
+
raiseValueError(f"Number of overlapping peaks to keep consensus peaks (config > consensus_peak > keep) is greater than number of subdirectories in reads/...")
0 commit comments