Skip to content

Commit

Permalink
Script for 10 SARS-CoV-2 FASTA sequences -- sample_input.fasta.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkayasth authored May 6, 2024
1 parent a38d188 commit 9807430
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions Sample Input FASTA/sarsCov2DataExtract.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from Bio import Entrez, SeqIO
import requests

# replace with YOUR email id.
# replace with YOUR email id. This here is mine:
Entrez.email = "[email protected]"

# mapping accession numbers to strain names
Expand All @@ -15,15 +15,10 @@
"OR829491": "CH.1.1",
"PP250483": "BF.10",
"PP316714": "JN.1",
"PP435534": "HV.1",
"OQ437945": "B.1.1.7",
"PP421053": "P.1",
"PP299611": "B.1.617.2",
"PP292591": "BE.1",
"OQ938406": "DN.2"
"PP435534": "HV.1"
}

output_file = "tool_input.fasta"
output_file = "sample_input.fasta"

with open(output_file, 'w') as outfile:
for accession, strain_name in accession_to_strain.items():
Expand Down

0 comments on commit 9807430

Please sign in to comment.