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_zagreb_m1_valence_vertex_degree(st) |
|
|
|
|
|
|
|
| calculate_zagreb_m2_valence_vertex_degree(st) |
|
|
|
|
|
|
|
| calculate_simple_topological(st) |
|
|
|
|
| calculate_harmonic_topological(st) |
|
|
|
|
| calculate_geometric_topological(st) |
|
|
|
|
| calculate_total_structure_connectivity(st) |
|
|
|
|
|
|
|
| calculate_mean_wiener(st) |
|
|
|
|
| calculate_radial_centric(st) |
|
|
|
|
|
|
|
|
|
|
|
|
|
| calculate_superpendentic(st) |
|
|
|
|
| calculate_mean_square_distance_balaban(st) |
|
|
|
|
|
|
|
|
|
|
| calculate_smt_valence_vertex_degree(st) |
|
|
|
|
|
|
|
| calculate_mean_distance_degree_deviation(st) |
|
|
|
|
| calculate_ramification(st) |
|
|
|
|
| calculate_gutman_molecular_topological(st) |
|
|
|
|
| calculate_gutman_mti_valence_vertex_degrees(st) |
|
|
|
|
| calculate_average_vertex_distance_degree(st) |
|
|
|
|
| calculate_unipolarity(st) |
|
|
|
|
| calculate_centralization(st) |
|
|
|
|
|
|
|
| _calculate_field_effect(st) |
|
|
|
|
|
|
|
|
|
|
|
|
|
| calculate_eccentric_connectivity(st) |
|
|
|
|
| calculate_eccentricity(st) |
|
|
|
|
| calculate_average_eccentricity(st) |
|
|
|
|
|
|
|
| calculate_valence_connectivity_chi_0(st) |
|
|
|
|
| calculate_valence_connectivity_chi_1(st) |
|
|
|
|
| calculate_valence_connectivity_chi_2(st) |
|
|
|
|
| calculate_valence_connectivity_chi_3(st) |
|
|
|
|
| calculate_valence_connectivity_chi_4(st) |
|
|
|
|
| calculate_valence_connectivity_chi_5(st) |
|
|
|
|
| calculate_average_valence_connectivity_chi_0(st) |
|
|
|
|
| calculate_average_valence_connectivity_chi_1(st) |
|
|
|
|
| calculate_average_valence_connectivity_chi_2(st) |
|
|
|
|
| calculate_average_valence_connectivity_chi_3(st) |
|
|
|
|
| calculate_average_valence_connectivity_chi_4(st) |
|
|
|
|
| calculate_average_valence_connectivity_chi_5(st) |
|
|
|
|
| calculate_kier_benzene_likeliness(st) |
|
|
|
|
| calculate_quasi_wiener(st) |
|
|
|
|
| calculate_spanning_tree_number(st) |
|
|
|
|
| calculate_first_mohar(st) |
|
|
|
|
| calculate_second_mohar(st) |
|
|
|
|
| _calculate_charge_term_matrix(st) |
|
|
|
|
| calculate_topological_charge_index_order_n(st,
distance) |
|
|
|
|
| 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_n(st,
distance) |
|
|
|
|
| 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) |
|
|
|
|
| calculate_global_topological_charge(st) |
|
|
|
|
| calculate_hyper_distance_path(st) |
|
|
|
|
| calculate_reciprocal_hyper_distance_path(st) |
|
|
|
|
| calculate_square_reciprocal_distance_sum(st) |
|
|
|
|
| calculate_modified_randic_connectivity(st) |
|
|
|
|
| _get_principal_quantum_number(atomic_number) |
|
|
|
|
| calculate_kier_hall_electronegativity_index(st) |
|
|
|
|
| _calculate_balaban_and_looping_centic(st) |
|
|
|
|
| calculate_balaban_centric_index(st) |
|
|
|
|
| calculate_looping_centric_index(st) |
|
|
|
|
| _calculate_sum_of_topological_distances(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) |
|
|
|
|
| _get_scientific_matrix(st) |
|
|
|
|
| calculate_wiener_z_matrix(st) |
|
|
|
|
| calculate_wiener_electronegativity_matrix(st) |
|
|
|
|
| calculate_wiener_mass_matrix(st) |
|
|
|
|
| calculate_wiener_van_der_waals_matrix(st) |
|
|
|
|
| calculate_wiener_polarizability_matrix(st) |
|
|
|
|
| calculate_balaban_distance_connectivity(st) |
|
|
|
|
| calculate_balaban_z_matrix(st) |
|
|
|
|
| calculate_balaban_electronegativity_matrix(st) |
|
|
|
|
| calculate_balaban_mass_matrix(st) |
|
|
|
|
| calculate_balaban_van_der_waals_matrix(st) |
|
|
|
|
| calculate_balaban_polarizability_matrix(st) |
|
|
|
|
| calculate_topological_diameter(st) |
|
|
|
|
| calculate_topological_radius(st) |
|
|
|
|
| calculate_petitjean_shape(st) |
|
|
|
|
| calculate_solvation_connectivity_indices_0(st) |
|
|
|
|
| calculate_solvation_connectivity_indices_1(st) |
|
|
|
|
| calculate_solvation_connectivity_indices_2(st) |
|
|
|
|
| calculate_solvation_connectivity_indices_3(st) |
|
|
|
|
| calculate_solvation_connectivity_indices_4(st) |
|
|
|
|
| calculate_solvation_connectivity_indices_5(st) |
|
|
|
|
| calculate_reciprocal_distance_randic(st) |
|
|
|
|
| calculate_reciprocal_distance_square_randic(st) |
|
|
|
|
| calculate_connectivity_chi_0(st) |
|
|
|
|
| calculate_randic_connectivity(st) |
|
|
|
|
| calculate_connectivity_chi_2(st) |
|
|
|
|
| calculate_connectivity_chi_3(st) |
|
|
|
|
| calculate_connectivity_chi_4(st) |
|
|
|
|
| calculate_connectivity_chi_5(st) |
|
|
|
|
| calculate_average_connectivity_chi_0(st) |
|
|
|
|
| calculate_average_connectivity_chi_1(st) |
|
|
|
|
| calculate_average_connectivity_chi_2(st) |
|
|
|
|
| calculate_average_connectivity_chi_3(st) |
|
|
|
|
| calculate_average_connectivity_chi_4(st) |
|
|
|
|
| calculate_average_connectivity_chi_5(st) |
|
|
|
|
| calculate_kier_alpha_modified_shape_1(st) |
|
|
|
|
| calculate_kier_alpha_modified_shape_2(st) |
|
|
|
|
| calculate_kier_alpha_modified_shape_3(st) |
|
|
|
|
| calculate_kier_flexbility(st) |
|
|
|
|
| calculate_path_walk_2(st) |
|
|
|
|
| calculate_path_walk_3(st) |
|
|
|
|
| calculate_path_walk_4(st) |
|
|
|
|
| calculate_path_walk_5(st) |
|
|
|
|
|
|
|
|
|
|
| calculate_ringcount(st,
n) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| calculate_ringcount10(st) |
|
|
|
|
| calculate_ringcount11(st) |
|
|
|
|
| calculate_ringcount12(st) |
|
|
|
|
| calculate_ringcount13(st) |
|
|
|
|
| calculate_ringcount14(st) |
|
|
|
|
| calculate_ringcount15(st) |
|
|
|
|
| calculate_ringcount16(st) |
|
|
|
|
| calculate_ringcount17(st) |
|
|
|
|
| calculate_ringcount18(st) |
|
|
|
|
| calculate_ringcount19(st) |
|
|
|
|
| calculate_ringcount20(st) |
|
|
|
|
|
|
|
|
|
|
| calculate_atom_rings_count(st) |
|
|
|
|
| calculate_bond_rings_count(st) |
|
|
|
|
|
|
|
| calculate_num_ring_systems(st) |
|
|
|
|
| calculate_normalized_num_ring_systems(st) |
|
|
|
|
| calculate_total_ring_size(st) |
|
|
|
|
| calculate_ring_perimeter(st) |
|
|
|
|
| calculate_ring_bridge(st) |
|
|
|
|
| calculate_molecule_cyclized_degree(st) |
|
|
|
|
| calculate_ring_fusion_density(st) |
|
|
|
|
| calculate_ring_complexity_index(st) |
|
|
|
|
| calculate_ring_fusion_degree(st) |
|
|
|
|
|
|
|
|
|
|
_calculate_peoe(st,
n)
Return atomic contribution based on Gasteiger charges. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_calculate_mr(st,
n)
Return atomic contribution based on MR values. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
init(st)
Initializes the structure:... |
|
|
|
|
get_mopac_codes()
Returns the list of MOPAC codes. |
|
|
|
|
| _get_mopac_results(mopac_output,
mopacCodes) |
|
|
|
|
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. |
|
|