Remove hardcoded NCBI credentials in fetch_refseq_sequence function
Browse files- src/my_utils.py +3 -2
src/my_utils.py
CHANGED
|
@@ -521,8 +521,9 @@ def fetch_refseq_sequence(refseq_id: str) -> str | None:
|
|
| 521 |
Returns the raw amino-acid sequence as a string, or None on failure.
|
| 522 |
"""
|
| 523 |
# βββ NCBI credentials βββ
|
| 524 |
-
Entrez.email = "
|
| 525 |
-
|
|
|
|
| 526 |
|
| 527 |
# βββ 1) Try NCBI Entrez βββ
|
| 528 |
try:
|
|
|
|
| 521 |
Returns the raw amino-acid sequence as a string, or None on failure.
|
| 522 |
"""
|
| 523 |
# βββ NCBI credentials βββ
|
| 524 |
+
Entrez.email = "" # Replace with your email
|
| 525 |
+
|
| 526 |
+
Entrez.api_key = "" # Replace with your NCBI API key if available
|
| 527 |
|
| 528 |
# βββ 1) Try NCBI Entrez βββ
|
| 529 |
try:
|