xingjianleng / DBGA

The repository for the genome sequence alignment research project
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

MERS virus sequences dataset. #9

Closed xingjianleng closed 2 years ago

xingjianleng commented 2 years ago
GavinHuttley commented 2 years ago

from cogent3.parse.genbank import RichGenbankParser

path = "/Users/gavin/Desktop/Inbox/mers.gb"
with open(path) as infile:
    n, seq = list(RichGenbankParser(infile, moltype="dna"))[0]

len(seq) # 30111

mers.gb.zip

GavinHuttley commented 2 years ago

I just downloaded this via a search for mers at NCBI Viruses, clicked the "search by virus name", entered MERS, selected the "MERS-CoV", clicked on the "Ref genome" tab and selected the most recent. Downloaded that directly onto my machine in GenBank format.