Create fasta file
Browse files
app.py
CHANGED
|
@@ -35,6 +35,12 @@ def compute_Chai1(
|
|
| 35 |
|
| 36 |
if fasta_file is None:
|
| 37 |
fasta_file = here / "inputs" / "chai1_default_input.fasta"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
print(f"🧬 running Chai inference on {fasta_file}")
|
| 39 |
fasta_content = Path(fasta_file).read_text()
|
| 40 |
|
|
|
|
| 35 |
|
| 36 |
if fasta_file is None:
|
| 37 |
fasta_file = here / "inputs" / "chai1_default_input.fasta"
|
| 38 |
+
else:
|
| 39 |
+
name_file = here / "inputs" / "chai1_custom_input.fasta"
|
| 40 |
+
with open(fasta_file, "a") as f:
|
| 41 |
+
f.write(fasta_file)
|
| 42 |
+
fasta_file = name_file
|
| 43 |
+
|
| 44 |
print(f"🧬 running Chai inference on {fasta_file}")
|
| 45 |
fasta_content = Path(fasta_file).read_text()
|
| 46 |
|