@@ -63,6 +63,8 @@ def get_identifier(namespace: str, name: str) -> str:
63
63
@click .option ('--debug-links' , is_flag = True )
64
64
def html (directory : str , debug_links : bool ):
65
65
"""Export FamPlex as a static HTML site."""
66
+ click .echo (f'outputting to { directory } ' )
67
+
66
68
fplx_ids = load_entities ()
67
69
68
70
descriptions = {
@@ -71,7 +73,7 @@ def html(directory: str, debug_links: bool):
71
73
}
72
74
73
75
xrefs = defaultdict (set )
74
- for namespace , identifier , fplx_id in tqdm (load_equivalences ()):
76
+ for namespace , identifier , fplx_id in tqdm (load_equivalences (), desc = 'loading equivalences' ):
75
77
xrefs [fplx_id ].add ((namespace , identifier , get_name (namespace , identifier )))
76
78
77
79
grounding_map = load_grounding_map ()
@@ -83,7 +85,7 @@ def html(directory: str, debug_links: bool):
83
85
84
86
incoming_relations = defaultdict (set )
85
87
outgoing_relations = defaultdict (set )
86
- for ns1 , id1 , rel , ns2 , id2 in tqdm (load_relations ()):
88
+ for ns1 , id1 , rel , ns2 , id2 in tqdm (load_relations (), desc = 'loading relations' ):
87
89
if ns1 == 'FPLX' :
88
90
if ns2 == 'HGNC' :
89
91
id2 , name2 = get_identifier (ns2 , id2 ), id2
@@ -119,7 +121,7 @@ def html(directory: str, debug_links: bool):
119
121
with open (os .path .join (directory , 'index.html' ), 'w' ) as file :
120
122
print (index_html , file = file )
121
123
122
- for _ , row in tqdm (terms_df .iterrows (), total = len (terms_df .index )):
124
+ for _ , row in tqdm (terms_df .iterrows (), total = len (terms_df .index ), desc = 'writing terms' ):
123
125
subdirectory = os .path .join (directory , row .identifier )
124
126
os .makedirs (subdirectory , exist_ok = True )
125
127
term_html = term_template .render (
0 commit comments