No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-29 15:48:58 -07:00
src Initial working commit 2026-09-29 13:44:46 -07:00
.gitignore Initial working commit 2026-09-29 13:44:46 -07:00
Cargo.lock Shorter binary name 2026-09-29 13:47:28 -07:00
Cargo.toml Shorter binary name 2026-09-29 13:47:28 -07:00
README.md README 2026-09-29 15:48:58 -07:00

Butterworth Utilities

Make it easier to find a reasonable Butterworth filter

Usage

bwutil has two modes. Both modes accept a --json flag, which prints a JSON that can be copy-pasted onto a CryoSPARC Volume Tools job to set the relevant parameters.

Find a filter with a given 0.143 crossing

In cryoEM, we report the resolution of a map based on where its FSC crosses 0.143. This tool finds you a filter of the desired order that crosses 0.143 at the desired resolution.

> bwutil crossing 3.5 --order 8
For a GSFSC-like Butterworth filter at 3.5 with order 8, use corner freq 4.377979

Fit to CryoSPARC FSC curve

This mode finds a Butterworth filter that approximates a reconstruction's GSFSC curve. You'll need to download the TXT format FSC curve from a CryoSPARC refinement or reconstruction. Provide the path to this TXT file and the reconstruction's pixel size.

> bwutil fsc J717_fsc_iteration_006_after_fsc_mask_auto_tightening.txt 0.6575
Corner frequency: 3.2144446
Filter order: 14