load 1gzx.pdb
a = {*.N and connected(1, _C)}.label("%c").join(" ")
what this does:
1. Select the N-terminus (backbone N atoms connected to only one carbon)
{*.N and connected(1, _C)}
2. Create a list of labels consisting of only the chain code:
a = {*.N and connected(1, _C)}.label("%c")
3. Join that list with a space (instead of a new-line character)
a = {*.N and connected(1, _C)}.label("%c").join(" ")
result:
a = "A B C D"
number of them:
a = {*.N and connected(1, _C)}.label("%c").join("").size
Here we join them as "ABCD" and then just get the size of that, which is 4.
Bob Hanson
On 3/26/07, stefanie neumann <[EMAIL PROTECTED]> wrote:
> hi, is their a possibillity to get the number and names of the chains of the
> protein besides the possibilty to parse it out of the pdb-file??
> thanks, steffi
> --
> "Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
> Jetzt GMX ProMail testen: www.gmx.net/de/go/mailfooter/promail-out
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users