defined main class
This commit is contained in:
parent
6d119457fc
commit
1f20d0ee07
24
main.py
24
main.py
|
@ -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}")
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue