-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Script for 10 SARS-CoV-2 FASTA sequences -- sample_input.fasta.
- Loading branch information
Showing
1 changed file
with
3 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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(): | ||
|