I have tried BioPython SeqIO and other parsers but couldn't find any good tool to parse DAT files.
https://omics.pnl.gov/software/uniprot-dat-file-parser
I have tried this one but they don't provide any gene annotations
http://biopython.org/wiki/SeqIO
They mostly talk about taking inputs of FASTA and not DAT file.
from Bio import SeqIO
for record in SeqIO.parse("Fasta/f002", "fasta"):
... print("%s %i" % (record.id, len(record)))
Dear Muhammad Zeeshan,
you can use the query functions of the python library
pyuniprot
to get sequence (or many thing else)install (with pip or git clone) and update. Find out which taxonomy identifier fits to your organisms. Example here (human, mouse, rat). Don't make a full update for all organisms (takes very long).
Use following python code for your problem:
Assuming 1433E_HUMAN and A4_HUMAN are the identifier of interest:
Python code: