-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
54 lines (43 loc) · 1.63 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import argparse
from db_build.db_build import create_db_from_fasta, merge_fastas
from db_build.db_download import download_PDBdb, download_fastaPDB
from clustering_seqs.clustering_seqs import clustering_huge_data_seqs
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--fasta_db_file',
type=str,
required=False,
help='path of the Fasta file to convert to a mmseqs parseable db')
parser.add_argument('--fasta_files_list',
nargs='+',
default=[],
required=False,
help='path to the fasta files to merge sepatared by an space')
parser.add_argument('--download_PDB',
type=str,
required=False,
help='path to the output path')
parser.add_argument('--download_fastaPDB',
type=str,
required=False,
help='complete path to the PDBs fasta output name')
parser.add_argument('--clustering_seqs',
nargs='+',
default=[],
required=False,
help='path to the fasta file to cluster and the output directory name sepatared by an space')
args = parser.parse_args()
if args.fasta_db_file:
create_db_from_fasta(args.fasta_db_file)
elif args.fasta_files_list:
merge_fastas(args.fasta_files_list, './data/final_fasta.fasta')
elif args.download_PDB:
download_PDBdb(args.download_PDB)
elif args.download_fastaPDB:
download_fastaPDB(args.download_fastaPDB)
elif args.clustering_seqs:
clustering_huge_data_seqs(args.clustering_seqs[0],args.clustering_seqs[1])
else:
parser.print_help()
if __name__ == "__main__":
main()