Skip to content

Commit fee19d1

Browse files
author
DocMinus
committed
renamed
1 parent 195fb63 commit fee19d1

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"""
44
V2.1.4 (Mar. 08, 08:00:00 2023)
55
Update: 2023-06-24 (cleanup for ChemRxiv submission)
6+
Update: 2024-02-22 (minor cleanup and file renaming)
67
78
@author: Alexander Minidis (DocMinus)
89
Purpose: TDs from csv
@@ -59,20 +60,20 @@ def main():
5960
# Calculate TDs
6061
transforms_descriptors = transform_descriptors(cmpd1_smi, cmpd2_smi, prod_smi)
6162

62-
# for output create table with structures and combine with calculated TDs
63+
# combination of the three structure list to a df
6364
_df = pd.DataFrame(
6465
{"Compound 1": cmpd1_smi, "Compound 2": cmpd2_smi, "Product": prod_smi}
6566
)
66-
# In addition: filter when empty structures
67+
# filter when empty structures
6768
_df = _df[~((_df.iloc[:, :3] == "").any(axis=1))]
68-
# The three tables are concatenated to one
69+
# Final table combines the structure list and the TDs
6970
final_table = pd.concat(
7071
[in_rct_df["ID"], _df, transforms_descriptors], axis=1, join="inner"
7172
)
72-
# output (optional)
73-
print(final_table.tail())
7473
#############################################################################
75-
# Write pickle & csv file
74+
# Output, multiple options
75+
print(final_table.tail())
76+
# Write binary and tsv
7677
print("\nWriting to file: ", final_output_pkl)
7778
final_table.to_pickle(final_output_pkl)
7879
print("\nWriting to file: ", final_output_tsv)

0 commit comments

Comments
 (0)