import sys
# Define the path to of the package
package_dir = '/path/to/MICLOT'
# Add the 'miclot' package directory to sys.path
if package_dir not in sys.path:
sys.path.insert(0, package_dir)Now you can import the packages:
import miclot.data_analysis as mcaCode
cleaning.structure('/Data/1acb')Result
Return the dataframe and save it as CSV file.
Code
cleaning.neighbor_residues('/Data/1acb')Result
Return the dataframe and save it as CSV file.
Code
cleaning.interactions_table('/Data/1acb')Result
Return the dataframe and save it as CSV file.
Code
cleaning.neighbor_pairs('/Data/1acb')Result
Return the dataframe and save it as CSV file.
Code
concatenate.csv_file('/Data', 'uniprot', use_tqdm=True)Result
Concatenate all CSV file contained 'uniprot' in their name and located in subdirectories of '/Data', and display progress bar. The final file is written as 'final_uniprot.csv' and logfile name 'concatenate_uniprot.log' is created.
Code
df = concatenate.ASA('/Data')
print(df)Result
The final CSV file is written.
complex receptor ligand interface PDB
0 13146.739273 10505.114157 4322.435392 1680.810276 1acb
1 10313.511142 5628.519333 6421.277673 1736.285864 1i8k
2 10064.572511 5926.323958 5809.856860 1671.608307 4h5s
...Code
concatenate.interaction_table('/Data')Result
The final CSV file is written.
Code
concatenate.neighbor_residues('/Data')Result
The final CSV file is written.
Code
concatenate.neighbor_pairs('/Data')Result
The final CSV file is written.
Code
concatenate.structure('/Data')Result
The final CSV file is written.
It is possible to prive directory or file path in the command.
# directory path
a = plot.minimization('/Data/1acb/')
a.show()# file path
a = plot.minimization('/Data/1acb/1acb_noHETATM_pqr_fixed_minimization_log.csv')
a.show()If you want to change the name in the title, you can modify it using pdb_name argument.
a = plot.minimization('/Data/1acb/1acb_noHETATM_pqr_fixed_minimization_log.csv', pdb_name='Hydrolase/Hydrolase inhibitor')
a.show()plot.minimization('/Data/1acb/1acb_noHETATM_pqr_fixed_minimization_log.csv', save_graph=True)Code
removed_files, error = remove.plots('/Data/1acb')
print(removed_files)
print(error)Result
['/Data/1acb/1acb_noHETATM_pqr_fixed_minimization_log_plot_minimization_energies.png']
[]
Code
remove.clean_data('/Data/1acb')Result
Remove all CSV files with 'clean' in their name.
Code
remove.pickles('/Data/1acb')Result
Remove all pkl.gz files with 'class' in their name.
Code
remove.files('/Data/1acb', name='hydrolase', file_format='pdb')Result
Remove any pdb file containing 'hydrolase' in their name in the directory '/Data/1acb'.
Important
Normally the distance map is automatically generated by neighbor_residues or neighbor_pairs commands if the file *.distance_map.csv don't exist. But if any problem occure, it'is possible to regenerate it using the following command.
Code
make_distance_map('/Data/1acb')Result
Generate the file 1acb_distance_map.csv
