A Python script that computes molecular indices for each input
structure in the input file.
The details of the descriptors implemented here is taken from
'Handbook of Molecular Descriptors by Mannhols, Kubinyi and
Timmerman'.
Copyright Schrodinger, LLC. All rights reserved.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
calculate_topological_charge_index_order_1(st) |
|
|
|
calculate_topological_charge_index_order_2(st) |
|
|
|
calculate_topological_charge_index_order_3(st) |
|
|
|
calculate_topological_charge_index_order_4(st) |
|
|
|
calculate_topological_charge_index_order_5(st) |
|
|
|
calculate_topological_charge_index_order_6(st) |
|
|
|
calculate_topological_charge_index_order_7(st) |
|
|
|
calculate_topological_charge_index_order_8(st) |
|
|
|
calculate_topological_charge_index_order_9(st) |
|
|
|
calculate_topological_charge_index_order_10(st) |
|
|
|
|
|
calculate_mean_topological_charge_index_order_1(st) |
|
|
|
calculate_mean_topological_charge_index_order_2(st) |
|
|
|
calculate_mean_topological_charge_index_order_3(st) |
|
|
|
calculate_mean_topological_charge_index_order_4(st) |
|
|
|
calculate_mean_topological_charge_index_order_5(st) |
|
|
|
calculate_mean_topological_charge_index_order_6(st) |
|
|
|
calculate_mean_topological_charge_index_order_7(st) |
|
|
|
calculate_mean_topological_charge_index_order_8(st) |
|
|
|
calculate_mean_topological_charge_index_order_9(st) |
|
|
|
calculate_mean_topological_charge_index_order_10(st) |
|
|
|
|
|
|
|
|
|
|
|
|
|
_get_principal_quantum_number(atomic_number) |
|
|
|
|
|
|
|
calculate_balaban_centric_index(st) |
|
|
|
calculate_looping_centric_index(st) |
|
|
|
|
|
calculate_sum_of_topological_distances_between_N_and_N(st) |
|
|
|
calculate_sum_of_topological_distances_between_N_and_O(st) |
|
|
|
calculate_sum_of_topological_distances_between_N_and_S(st) |
|
|
|
calculate_sum_of_topological_distances_between_N_and_P(st) |
|
|
|
calculate_sum_of_topological_distances_between_N_and_F(st) |
|
|
|
calculate_sum_of_topological_distances_between_N_and_Cl(st) |
|
|
|
calculate_sum_of_topological_distances_between_N_and_Br(st) |
|
|
|
calculate_sum_of_topological_distances_between_N_and_I(st) |
|
|
|
calculate_sum_of_topological_distances_between_O_and_O(st) |
|
|
|
calculate_sum_of_topological_distances_between_O_and_S(st) |
|
|
|
calculate_sum_of_topological_distances_between_O_and_P(st) |
|
|
|
calculate_sum_of_topological_distances_between_O_and_F(st) |
|
|
|
calculate_sum_of_topological_distances_between_O_and_Cl(st) |
|
|
|
calculate_sum_of_topological_distances_between_O_and_Br(st) |
|
|
|
calculate_sum_of_topological_distances_between_O_and_I(st) |
|
|
|
calculate_sum_of_topological_distances_between_S_and_S(st) |
|
|
|
calculate_sum_of_topological_distances_between_S_and_P(st) |
|
|
|
calculate_sum_of_topological_distances_between_S_and_F(st) |
|
|
|
calculate_sum_of_topological_distances_between_S_and_Cl(st) |
|
|
|
calculate_sum_of_topological_distances_between_S_and_Br(st) |
|
|
|
calculate_sum_of_topological_distances_between_S_and_I(st) |
|
|
|
calculate_sum_of_topological_distances_between_P_and_P(st) |
|
|
|
calculate_sum_of_topological_distances_between_P_and_F(st) |
|
|
|
calculate_sum_of_topological_distances_between_P_and_Cl(st) |
|
|
|
calculate_sum_of_topological_distances_between_P_and_Br(st) |
|
|
|
calculate_sum_of_topological_distances_between_P_and_I(st) |
|
|
|
calculate_sum_of_topological_distances_between_F_and_F(st) |
|
|
|
calculate_sum_of_topological_distances_between_F_and_Cl(st) |
|
|
|
calculate_sum_of_topological_distances_between_F_and_Br(st) |
|
|
|
calculate_sum_of_topological_distances_between_F_and_I(st) |
|
|
|
calculate_sum_of_topological_distances_between_Cl_and_Cl(st) |
|
|
|
calculate_sum_of_topological_distances_between_Cl_and_Br(st) |
|
|
|
calculate_sum_of_topological_distances_between_Cl_and_I(st) |
|
|
|
calculate_sum_of_topological_distances_between_Br_and_Br(st) |
|
|
|
calculate_sum_of_topological_distances_between_Br_and_I(st) |
|
|
|
calculate_sum_of_topological_distances_between_I_and_I(st) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_calculate_peoe(st,
*args)
Return atomic contribution based on Gasteiger charges. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_calculate_mr(st,
*args)
Return atomic contribution based on MR values. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
init(st)
Initializes the structure:... |
|
|
|
get_mopac_codes()
Returns the list of MOPAC codes. |
|
|
|
|
|
get_mopac_methods()
Returns the list of MOPAC methods. |
|
|
|
_get_mopac_keyword(method) |
|
|
|
get_qikprop_properties()
Returns the list of QikProp properties. |
|
|
|
_get_command_output(cmd)
Run external command and return output |
|
|
|
_read_yaml_file(file)
Read YAML config file and return list |
|
|
|
_get_descriptors(options)
Return the list of various descriptors to be calculated. |
|
|
|
_calculate_topo_desc(calcTopoDescList,
st,
nstructures,
i)
Calculates the topological descriptors for the given structure 'st' |
|
|
|
_calculate_mopac_desc(calcMopacDescList,
mopac_input,
mopac_tmp_file,
st,
nstructures,
i)
Calculates the mopac descriptors for the given structure 'st' |
|
|
|
_get_qikprop_cmd(options,
structfile,
qikprop_tmp_file) |
|
|
|
_calculate_qikprop_desc(options,
calcQikpropDescList,
qikprop_cmd,
qikprop_tmp_file,
st,
structfile,
nstructures,
i)
Calculates the qikprop descriptors for the given structure 'st' |
|
|
|
_print_descriptors(options,
calcTopoDescList,
calcMopacDescList,
calcQikpropDescList) |
|
|
|
|
|
|
|
_do_cleanup()
Remove the temporary files created by mopac or qikprop |
|
|
|
|
|
_export_to_mae(st,
st_writer,
do_topo,
calcTopoDescList,
descResults,
skip_topo,
do_mopac,
calcMopacDescList,
mopacResults,
skip_mopac,
do_qikprop,
calcQikpropDescList,
qikPropResults,
skip_qikprop)
Exports calculated descriptors into Maestro format file |
|
|
|
_export_to_csv(st,
csv_writer,
do_topo,
calcTopoDescList,
descResults,
skip_topo,
do_mopac,
calcMopacDescList,
mopacResults,
skip_mopac,
do_qikprop,
calcQikpropDescList,
qikPropResults,
skip_qikprop)
Exports calculated descriptors into CSV format file |
|
|
|
add_moldescriptors_options(parser,
options=[ 0, 1, 4, 6, 7] ,
group_options=True)
Adds common molecular descriptors options to a SingleDashOptionParser
instance. |
|
|