Thread Subject: bioinformatics, getpdb, cell, string

Subject: bioinformatics, getpdb, cell, string

From: Damian

Date: 12 Nov, 2009 13:51:05

Message: 1 of 3

Hi
I have a text file with list of pdb identifier, some like this:

1AFV
1E9N
1FJR
1HD7
1HQJ

I imported this data with
data = importdata('file.txt')

now I want to use function getpdb:
getpdb(data(1))

and error message appear:
Access Number is not a string.

How could I make it work? I try numerous of function but error message still appear;(
Thanks for help

Subject: bioinformatics, getpdb, cell, string

From: Lucio Cetto

Date: 12 Nov, 2009 20:02:18

Message: 2 of 3

You are passing a -cell- with one string to getpdb, it accepts strings, so you need to pull-out each string with

str = data{i}
getpdb(str)

or just

getpdb(data{1})

HTH
Lucio

"Damian " <huckelbeery@gmail.com> wrote in message <hdh3s9$9kl$1@fred.mathworks.com>...
> Hi
> I have a text file with list of pdb identifier, some like this:
>
> 1AFV
> 1E9N
> 1FJR
> 1HD7
> 1HQJ
>
> I imported this data with
> data = importdata('file.txt')
>
> now I want to use function getpdb:
> getpdb(data(1))
>
> and error message appear:
> Access Number is not a string.
>
> How could I make it work? I try numerous of function but error message still appear;(
> Thanks for help

Subject: bioinformatics, getpdb, cell, string

From: Damian

Date: 12 Nov, 2009 22:08:01

Message: 3 of 3

thanks, it work:)

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com