GetProteinFromUniprot module


This module is used to download the protein sequence from the uniprot (http://www.uniprot.org/)

website. You can only need input a protein ID or prepare a file (ID.txt) related to ID. You can

obtain a .txt (ProteinSequence.txt) file saving protein sequence you need. You can freely use

and distribute it. If you hava any problem, you could contact with us timely!

Authors: Zhijiang Yao and Dongsheng Cao.

Date: 2016.06.04

Email: gadsby@163.com


GetProteinFromUniprot.GetProteinSequence(ProteinID)[source]

Get the protein sequence from the uniprot website by ID.

Usage:

result=GetProteinSequence(ProteinID)

Input: ProteinID is a string indicating ID such as “P48039”.

GetProteinFromUniprot.GetProteinSequenceFromTxt(path, openfile, savefile)[source]

Get the protein sequence from the uniprot website by the file containing ID.

Usage:

result=GetProteinSequenceFromTxt(path,openfile,savefile)

Input: path is a directory path containing the ID file such as “/home/orient/protein/”

openfile is the ID file such as “proteinID.txt”