Skip to content

Commit

Permalink
add options to the entry point
Browse files Browse the repository at this point in the history
  • Loading branch information
sroet committed Aug 23, 2024
1 parent fb137ab commit 8bbf93e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/pytom_tm/entry_points.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,23 @@ def extract_candidates(argv=None):
action=ParseLogging,
help="Can be set to `info` or `debug`",
)
parser.add_argument(
"--tophat-bins",
type=int,
required=False,
default=50,
action=LargerThanZero,
help="Number of bins to use in the histogram of occurences in the "
"tophat transform code (for both the estimation and the plotting).",
)
parser.add_argument(
"--plot-bins",
type=int,
required=False,
default=20,
action=LargerThanZero,
help="Number of bins to use for the occurences vs LCC_max plot.",
)

# ---8<--- [end:extract_candidates_usage]

Expand All @@ -552,6 +569,8 @@ def extract_candidates(argv=None):
tophat_connectivity=args.tophat_connectivity,
relion5_compat=args.relion5_compat,
ignore_tomogram_mask=args.ignore_tomogram_mask,
tophat_bins=args.tophat_bins,
plot_bins=args.plot_bins,
)

# write out as a RELION type starfile
Expand Down

0 comments on commit 8bbf93e

Please sign in to comment.