Skip to content

Commit

Permalink
doc_label
Browse files Browse the repository at this point in the history
  • Loading branch information
RodenLuo committed Oct 4, 2024
1 parent 757737e commit 34adb30
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions src/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,13 @@ def build_single_fit_ui(self, layout):
row = QHBoxLayout()
layout.addLayout(row)

doc_label = QLabel("Fit a single atomic model to a map interactively.")
doc_label.setWordWrap(True)
row.addWidget(doc_label)

row = QHBoxLayout()
layout.addLayout(row)

mol_label = QLabel("Fit")
row.addWidget(mol_label)

Expand Down Expand Up @@ -493,6 +500,16 @@ def _show_or_hide_options(self):

def build_compute_ui(self, layout):
row = 0

doc_label = QLabel("Fit <b>multiple</b> atomic models to a map by specifying the file paths.\n"
"The number of models can be up to hundreds to thousands, limited by the available device memory.\n"
"You may change the device in use from the Device tab.\n"
"Check the doc and tutorial videos for how to set the parameters, especially the \"Sim-map Folder\".\n"
"You may also run this tab's functionality by a Python command independently from ChimeraX "
"on a supercomputer and then view the results in the View tab.")
doc_label.setWordWrap(True)
layout.addWidget(doc_label, row, 0, 1, 3)
row = row + 1

target_vol_path_label = QLabel()
target_vol_path_label.setText("Target Volume:")
Expand Down Expand Up @@ -521,7 +538,7 @@ def build_compute_ui(self, layout):
self.structures_sim_map_dir = QLineEdit()
self.structures_sim_map_dir.textChanged.connect(lambda: self.store_settings())
structures_sim_map_dir_select = QPushButton("Select")
structures_sim_map_dir_select.clicked.connect(lambda: self.select_clicked("Structures sim-map Folder", self.structures_sim_map_dir))
structures_sim_map_dir_select.clicked.connect(lambda: self.select_clicked("Structures Sim-map Folder", self.structures_sim_map_dir))
layout.addWidget(structures_sim_map_dir_label, row, 0)
layout.addWidget(self.structures_sim_map_dir, row, 1)
layout.addWidget(structures_sim_map_dir_select, row, 2)
Expand All @@ -539,7 +556,7 @@ def build_compute_ui(self, layout):
row = row + 1

target_surface_threshold_label = QLabel()
target_surface_threshold_label.setText("Target surface threshold:")
target_surface_threshold_label.setText("Target Surface Threshold:")
self.target_surface_threshold = QDoubleSpinBox()
self.target_surface_threshold.setMinimum(0.0)
self.target_surface_threshold.setMaximum(20.0)
Expand All @@ -558,6 +575,11 @@ def build_compute_ui(self, layout):

# advanced
# TODO:

doc_label = QLabel("Usually, you don't have to touch the parameters below.")
doc_label.setWordWrap(True)
layout.addWidget(doc_label, row, 0, 1, 3)
row = row + 1

min_cluster_size_label = QLabel()
min_cluster_size_label.setText("Min island size:")
Expand Down

0 comments on commit 34adb30

Please sign in to comment.