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
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@ tmp/
.java/
.cache/
.nv/

# Beads / Dolt files (added by bd init)
.dolt/
*.db
.beads-credential-key
4 changes: 2 additions & 2 deletions rules/basic/analysis.smk
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ rule run_homer:
outdir="output/homer/finemapped_results/{wildcards.experiment_label}"
mkdir -p "$outdir"

# Skip HOMER gracefully if there are no finemapped windows.
if [ "$(zcat {input.finemapped_windows} | wc -l)" -eq 0 ]; then
# Skip HOMER gracefully if there are less than 5 windows (very minimal cutoff).
if [ "$(zcat {input.finemapped_windows} | wc -l)" -lt 5 ] || [ "$(zcat {input.background} | wc -l)" -lt 5 ]; then
echo "No finemapped windows found. Skipping HOMER." | tee -a {log.stdout}

cat > {output.report} <<EOF
Expand Down
2 changes: 1 addition & 1 deletion rules/basic/repeat.smk
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ rule quantify_repeats:
conda:
"envs/bedbam_tools.yaml"
resources:
mem_mb=lambda wildcards, attempt: 32000 * (1.5 ** (attempt - 1)),
mem_mb=lambda wildcards, attempt: 48000 * (2 ** (attempt - 1)),
runtime=lambda wildcards, attempt: 60 * (2 ** (attempt - 1)),
shell:
r"""
Expand Down