defined main class

This commit is contained in:
Sandro La Bruzzo 2023-09-22 14:24:03 +02:00
parent 6d119457fc
commit 1f20d0ee07
1 changed files with 12 additions and 12 deletions

24
main.py
View File

@ -6,24 +6,24 @@ from uniprot.metadata import MetadataExctractor as ME
from uniprot.uniprot_validator import validate as validate_uniprot
if __name__ == '__main__':
print("UNIPROT -PREPROCESSING")
u = UniprotSwissDownloader()
#u.download()
u.download()
k = ME()
k.extract_metadata()
error, valid, total, error_record = validate_uniprot()
print(error)
print(f"Valid {valid}/{total}")
print(f"Error {error_record}/{total}")
# k.extract_metadata()
# p = PDBDownloader()
# p.get_file_to_downloads(max_item=4)
# m = MetadataExctractor()
# m.extract_metadata()
# error, valid, total, error_record = validate()
# print(error)
# print(f"Valid {valid}/{total}")
# print(f"Error {error_record}/{total}")
print("PDB -PREPROCESSING")
p = PDBDownloader()
p.get_file_to_downloads(max_item=4)
m = MetadataExctractor()
m.extract_metadata()
error, valid, total, error_record = validate()
print(error)
print(f"Valid {valid}/{total}")
print(f"Error {error_record}/{total}")