abuendia commited on
Commit
fc3d984
1 Parent(s): d02ce4c

S3 in proscope

Browse files
Files changed (1) hide show
  1. app/main.py +6 -2
app/main.py CHANGED
@@ -87,8 +87,12 @@ plt.rcParams["figure.dpi"] = 100
87
 
88
 
89
  def visualize_AF2(tf_pair, a):
90
- strcture_dir = f"{args.s3_uri}/structures/causal/{tf_pair}"
91
- fasta_dir = f"{args.s3_uri}/sequences/causal/{tf_pair}"
 
 
 
 
92
  if not os.path.exists(strcture_dir):
93
  gr.ErrorText("No such gene pair")
94
 
 
87
 
88
 
89
  def visualize_AF2(tf_pair, a):
90
+ if args.s3_uri:
91
+ strcture_dir = f"{args.s3_uri}/structures/causal/{tf_pair}"
92
+ fasta_dir = f"{args.s3_uri}/sequences/causal/{tf_pair}"
93
+ else:
94
+ strcture_dir = f"{args.data}/structures/causal/{tf_pair}"
95
+ fasta_dir = f"{args.data}/sequences/causal/{tf_pair}"
96
  if not os.path.exists(strcture_dir):
97
  gr.ErrorText("No such gene pair")
98