MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: A Question about strings in lists

  • To: mathgroup at smc.vnet.net
  • Subject: [mg102273] Re: [mg102240] A Question about strings in lists
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Mon, 3 Aug 2009 05:48:40 -0400 (EDT)
  • Reply-to: hanlonr at cox.net

Use Characters

ProteinData[ProteinData[][[1]], "Sequence"] // Characters


Bob Hanlon

---- Marwa Abd El-Wahaab <m.a.elwahaab at gmail.com> wrote: 

=============
Dear Sir,

I have a question about lists

If I recall a protein sequence for example, the output will be

{ ACDQXXYWT ...............  }

This output contains amino acids but as one element in list & its length is
=1

How can I transform this one element to this form

{A,C,D,Q,X,X,Y,W,T,......... }

So, the length will be number of amino acids the protein contains

I need your advice

Thanks in advance

*Marwa Ali Abd El Wahaab
Teaching Assistant*
Faculty of Engineering
Mansoura University



  • Prev by Date: Image Translations/Registrations to New Grid
  • Next by Date: Re: error with Sum and Infinity
  • Previous by thread: Re: A Question about strings in lists
  • Next by thread: Re: A Question about strings in lists