File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4646n_imgs = None # Set to None for all images in starfile, can set smaller for tests
4747img_size = 129 # Downsample the images/reconstruction to a desired resolution
4848n_classes = 1000 # How many class averages to compute and use for reconstruction
49- n_nbor = 100 # How many neighbors to stack for each class average
49+ n_nbor = 32 # How many neighbors to stack for each class average
5050
5151# Outputs
52- preprocessed_fn = f"11618_preprocessed_pf_lds { img_size } px_lnbg_lwt_inv .star"
52+ preprocessed_fn = f"11618_preprocessed_pf_ds { img_size } px_nbg_wt_inv .star"
5353class_avg_fn = f"11618_rand{ n_classes } _cls_avgs_m{ n_nbor } _{ img_size } px.star"
5454volume_output_filename = f"11618_abinitio_c{ n_classes } _m{ n_nbor } _{ img_size } px.mrc"
5555
7676src = src .downsample (img_size ).cache ()
7777
7878# Normalize the background of the images.
79- src = src .legacy_normalize_background ().cache ()
79+ src = src .normalize_background ().cache ()
8080
8181# Estimate the noise and whiten based on the estimated noise.
82- src = src .legacy_whiten ().cache ()
82+ src = src .whiten ().cache ()
8383
8484# Optionally invert image contrast.
8585logger .info ("Invert the global density contrast" )
You can’t perform that action at this time.
0 commit comments