jpuglia commited on
Commit
a76085f
Β·
1 Parent(s): 2491d7e

Remove hardcoded NCBI credentials in fetch_refseq_sequence function

Browse files
Files changed (1) hide show
  1. 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 = "puglia.jd@gmail.com"
525
- Entrez.api_key = "d768134734612d58be85117e1ff22e243807"
 
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: