<< btd_getgenbank Data bases btd_getpdb >>

BTD >> BTD > Data bases > btd_getgenpept

btd_getgenpept

Retrieve sequence information from GenPept database

Calling Function

btd_getgenpept(x)

Arguments

x

Unique identifier for a sequence record

filepath

local Path + filename where the file returned by the online query must be stored. The directory must be writable. If only a path to directory in provided, the default filename used is built as filepath+"/genpept_"+x+".txt".

filename

Name of the file returned by the query. By default (if no filepath is provided), it is named "efetch.fcgi" and is stored in the current directory (that must be writeable).

Description

Retrieve sequence information from GenPept database.

Examples

fn = btd_getgenpept('AAA59174', TMPDIR)
// Open the local file in your text editor:
if getos()=="Windows", winopen(fn); else, edit(fn); end
fileparts(fn, "fname")
--> fn = btd_getgenpept('AAA59174', TMPDIR)
 fn  =
 C:\Users\Me\AppData\Local\Temp\SCI_TMP_6764_11518\genpept_AAA59174.txt

--> if getos()=="Windows", winopen(fn); else, edit(fn); end

--> fileparts(fn, "fname")
 ans  =
 genpept_AAA59174

See Also

History

VersionDescription
1.1 Input option filepath added.

Report an issue
<< btd_getgenbank Data bases btd_getpdb >>