Skip to content

Commit

Permalink
Add multi-user support for all genes cached table
Browse files Browse the repository at this point in the history
  • Loading branch information
memgonzales committed Sep 14, 2023
1 parent 1d5a270 commit 2583d3d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion callbacks/lift_over/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,16 @@ def get_all_genes(refs, genomic_intervals):

else:
make_dir(temp_output_dir)
FILENAME = f'{temp_output_dir}/all_genes.csv'
FILENAME_WITH_TIMESTAMP = append_timestamp_to_filename(FILENAME)

all_genes = get_all_genes_if_not_exist(refs, nb_intervals)
all_genes.to_csv(f'{temp_output_dir}/all_genes.csv', index=False)
all_genes.to_csv(FILENAME_WITH_TIMESTAMP, index=False)
try:
os.replace(FILENAME_WITH_TIMESTAMP, FILENAME)
except:
pass

return all_genes


Expand Down

0 comments on commit 2583d3d

Please sign in to comment.