<< btd_getgenpept Data bases btd_getuniprot >>

BTD >> BTD > Data bases > btd_getpdb

btd_getpdb

Retrieve protein structure data from Protein Data Bank (PDB) database

Calling Function

filename = btd_getpdb(x)
filename = btd_getpdb(x, filepath)

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+"/pdb_"+x+".txt".

filename

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

Description

Retrieves protein structure data from the online Protein Data Bank (PDB) database. A live Internet connection is required.

Examples

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

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

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

See Also

History

VersionDescription
1.1 Input option filepath added.

Report an issue
<< btd_getgenpept Data bases btd_getuniprot >>