![]() |
CCP4i: Graphical User Interface |
Documentation for Programmers | |
CreateLabinLine |
![]() ![]() ![]() |
CreateLabinLine, CreateLabinLine4 - draw a line for the user to select labelled columns from an input file
CreateLabinLine line_id message_text filenameVar label column_labelVar priority_name_list
Optional Arguments:
-sigma labeln column_labelVarn priority_name_listn
-dependent labeln column_labelVarn priority_name_listn
-help help_target
-command command
-toggle_display controlVar status control_value_list
Create a line which enables the user to select labelled columns from a list of the appropriate columns extracted from the input file. Return the id of the line line_id. The line is drawn with a text label label and the message message_text will appear in the message line when the cursor is over the input widgets in the line. filenameVar is the name of the variable which will contain the name of the input file. When an input file is selected, it is read and the names of the labelled columns are stored in the CCP4i program.
CreateLabelLine will create one or (if the -sigma and/or -dependent arguments are used) more menus (up to four) that list all labelled columns in the input MTZ file of the appropriate type for the variable column_labelVar.
The appropriate type depends on the data type of the variable which is set in the taskname.def file. The first column label of the appropriate type will be set as the default value for column_labelVar unless the MTZ file contains a label with one of the names listed in priority_name_list in which case it is set as the default.
The priority_name_list can be useful if, for example, you know the user probably wants to select the FP but is not useful in other instances when it can be set to "".
Note that the CreateLabinLine4 command is now just a wrapper for CreateLabinLine, which incorporates the functionality outlined above.
The following are standard examples of using the CreateLabinLine for different situations:
Example for specifying structure factor amplitudes plus a dependent sigma:
CreateLabinLine line \ "Enter labels for native" HKLIN \ "FPH" F { F } -sigma "SigFPH" SIGF { NULL }
Example of Friedel pairs:
CreateLabinLine line \ "Enter labels for Friedel pairs" HKLIN \ "F(+)" Fp { F } \ -sigma "SigF(+)" SIGFp { NULL } \ -dependent "F(-)" Fm { NULL } \ -sigma2 "SigF(-)" SIGFm { NULL }
Example with anomalous difference data:
CreateLabinLine line \ "Enter labels for derivative with anomalous differences" HKLIN \ "FPH" F { F } \ -sigma "SigFPH" SIGF { NULL } \ -dependent "DPH" D { NULL } \ -sigma "SigDPH" SIGD { NULL }
Example with Hendrickson-Lattman coefficients:
CreateLabinLine line \ "Enter labels for Hendrickson-Lattman coefficients" HKLIN \ "HLA" HLA { H } \ -dependent "HLB" HLB { NULL } \ -dependent "HLC" HLC { NULL } \ -dependent "HLD" HLD { NULL }