Hi Vaheh,

Thank you for the clarification. 
There are at least five numbering schemes 
(https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6198058).
Which one are you following?

Best regards,

Blaine

Blaine Mooers, Ph.D.
Associate Professor
Department of Biochemistry and Molecular Biology
College of Medicine
University of Oklahoma Health Sciences Center
S.L. Young Biomedical Research Center (BRC) Rm. 466
975 NE 10th Street, BRC 466
Oklahoma City, OK 73104-5419

________________________________________
From: Oganesyan, Vaheh [vaheh.oganes...@astrazeneca.com]
Sent: Monday, June 15, 2020 12:26 PM
To: Mooers, Blaine H.M.  (HSC); Jarrett Johnson
Cc: pymol-users@lists.sourceforge.net
Subject: [EXTERNAL] RE: [PyMOL] renumber

Blain,

The command will not change the numbering of amino acids starting from #1. But 
if you got missing ones, like in my case, it will. Except for those having also 
letter in the number field. I mean the numbering used for CDRs of antibodies, 
not alternatives. Hence, my question, is there a command that will ignore the 
letters in the number field and renumber the amino acids in the order they 
appear in the file.

Thank you.

From: Mooers, Blaine H.M. (HSC) <blaine-moo...@ouhsc.edu>
Sent: Monday, June 15, 2020 12:06 PM
To: Oganesyan, Vaheh <vaheh.oganes...@astrazeneca.com>; Jarrett Johnson 
<jarrett.john...@schrodinger.com>
Cc: pymol-users@lists.sourceforge.net
Subject: RE: [PyMOL] renumber

Hi Vaheh,

alter vh, resi=str(int(resi)+0)

will not change the residue numbers because 0 is being added.
Replace 0 with your desired residue number offset.

Best regards,

Blaine

Blaine Mooers, Ph.D.
Associate Professor
Department of Biochemistry and Molecular Biology
College of Medicine
University of Oklahoma Health Sciences Center
S.L. Young Biomedical Research Center (BRC) Rm. 466
975 NE 10th Street, BRC 466
Oklahoma City, OK 73104-5419

________________________________________
From: Oganesyan, Vaheh [vaheh.oganes...@astrazeneca.com]
Sent: Monday, June 15, 2020 10:49 AM
To: Jarrett Johnson
Cc: pymol-users@lists.sourceforge.net<mailto:pymol-users@lists.sourceforge.net>
Subject: [EXTERNAL] Re: [PyMOL] renumber

Thank you Jarrett,

Then the command

alter vh, resi=str(int(resi)+0)

should work, right? But it doesn’t because there are residue numbers with 
letters. Is there a command that will either remove the letters or won’t pay 
attention to them and renumber sequentially.

Regards,


From: Jarrett Johnson 
<jarrett.john...@schrodinger.com<mailto:jarrett.john...@schrodinger.com>>
Sent: Monday, June 15, 2020 11:38 AM
To: Oganesyan, Vaheh 
<vaheh.oganes...@astrazeneca.com<mailto:vaheh.oganes...@astrazeneca.com>>
Cc: pymol-users@lists.sourceforge.net<mailto:pymol-users@lists.sourceforge.net>
Subject: Re: [PyMOL] renumber

Hello,

The command shown on this page 
https://pymolwiki.org/index.php/Renumber<https://urldefense.proofpoint.com/v2/url?u=https-3A__pymolwiki.org_index.php_Renumber&d=DwMF-g&c=VjzId-SM5S6aVB_cCGQ0d3uo9UfKByQ3sI6Audoy6dY&r=k0gMbcsdOcdbPUNV5tW66KQSZfXL0ewVDPVBp7tqbks&m=4dzsKdOHbAkCGKexdfLvVa0K8k-qU58swt-barF9CJ0&s=TYgabYRElhEIt4RUkDkBQVeUct1uHkGNprlmTIrt35o&e=><https://urldefense.proofpoint.com/v2/url?u=https-3A__pymolwiki.org_index.php_Renumber&d=DwMGaQ&c=VjzId-SM5S6aVB_cCGQ0d3uo9UfKByQ3sI6Audoy6dY&r=k0gMbcsdOcdbPUNV5tW66KQSZfXL0ewVDPVBp7tqbks&m=HQhXfRvgQZ3mFRTUuOGKZTZZVlTRi9o87ygYqEDnPog&s=ziFhw29qVsmpI-rra_AyanmqFEsNZVmEsXF4VIjUMmI&e=>
 is not one that comes with PyMOL by default. Try downloading the script and 
importing it via the `run` command in the PyMOL command-line:

run 
renumber.py<https://urldefense.proofpoint.com/v2/url?u=http-3A__renumber.py&d=DwQGaQ&c=VjzId-SM5S6aVB_cCGQ0d3uo9UfKByQ3sI6Audoy6dY&r=k0gMbcsdOcdbPUNV5tW66KQSZfXL0ewVDPVBp7tqbks&m=HQhXfRvgQZ3mFRTUuOGKZTZZVlTRi9o87ygYqEDnPog&s=FHmoNz1s1Pj-_paiWCTfneG3RkPiLccu2uI2KNr8ROw&e=>

and then you should be able to use the command as shown on the Wiki page.

Hope that helps,
Jarrett J.

On Mon, Jun 15, 2020 at 11:29 AM Oganesyan, Vaheh 
<vaheh.oganes...@astrazeneca.com<mailto:vaheh.oganes...@astrazeneca.com<mailto:vaheh.oganes...@astrazeneca.com%3cmailto:vaheh.oganes...@astrazeneca.com>>>
 wrote:

Hello PyMOLers,

Wiki uses renumber command to alter residue numbers, but PyMOL doesn’t 
recognize it. Is it that Wiki is old, or my PyMOL version is dusty?


Regards,

Vaheh

_______________________________________________
PyMOL-users mailing list
Archives: 
http://www.mail-archive.com/pymol-users@lists.sourceforge.net<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.mail-2Darchive.com_pymol-2Dusers-40lists.sourceforge.net&d=DwMF-g&c=VjzId-SM5S6aVB_cCGQ0d3uo9UfKByQ3sI6Audoy6dY&r=k0gMbcsdOcdbPUNV5tW66KQSZfXL0ewVDPVBp7tqbks&m=4dzsKdOHbAkCGKexdfLvVa0K8k-qU58swt-barF9CJ0&s=sawruVx__AsYwpdRP2n7U9_YJ8XHRR8IgvXUq-OiwQg&e=><https://urldefense.proofpoint.com/v2/url?u=http-3A__www.mail-2Darchive.com_pymol-2Dusers-40lists.sourceforge.net&d=DwMGaQ&c=VjzId-SM5S6aVB_cCGQ0d3uo9UfKByQ3sI6Audoy6dY&r=k0gMbcsdOcdbPUNV5tW66KQSZfXL0ewVDPVBp7tqbks&m=HQhXfRvgQZ3mFRTUuOGKZTZZVlTRi9o87ygYqEDnPog&s=0jiLKKRpirp3ZmCRyyo_9R1IshveF24db_HqbNveLVE&e=>
Unsubscribe: 
https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe<https://urldefense.proofpoint.com/v2/url?u=https-3A__sourceforge.net_projects_pymol_lists_pymol-2Dusers_unsubscribe&d=DwMF-g&c=VjzId-SM5S6aVB_cCGQ0d3uo9UfKByQ3sI6Audoy6dY&r=k0gMbcsdOcdbPUNV5tW66KQSZfXL0ewVDPVBp7tqbks&m=4dzsKdOHbAkCGKexdfLvVa0K8k-qU58swt-barF9CJ0&s=xsu4EJ4r4LLd_zcm6XImTIDn7zutyAzeapOSu7pKZgc&e=><https://urldefense.proofpoint.com/v2/url?u=https-3A__sourceforge.net_projects_pymol_lists_pymol-2Dusers_unsubscribe&d=DwMGaQ&c=VjzId-SM5S6aVB_cCGQ0d3uo9UfKByQ3sI6Audoy6dY&r=k0gMbcsdOcdbPUNV5tW66KQSZfXL0ewVDPVBp7tqbks&m=HQhXfRvgQZ3mFRTUuOGKZTZZVlTRi9o87ygYqEDnPog&s=u0GfpqJznDAnSRPi-ENNk5i5F203FOoK4e8tFBNx-fc&e=>


--

Jarrett Johnson | Senior Developer

[Schrodinger 
Logo]<https://urldefense.proofpoint.com/v2/url?u=https-3A__www.schrodinger.com_&d=DwMGaQ&c=VjzId-SM5S6aVB_cCGQ0d3uo9UfKByQ3sI6Audoy6dY&r=k0gMbcsdOcdbPUNV5tW66KQSZfXL0ewVDPVBp7tqbks&m=HQhXfRvgQZ3mFRTUuOGKZTZZVlTRi9o87ygYqEDnPog&s=my7IR5rxG-1yA5AP52htw3MT5MKRSqHAwEmOVfdcSdc&e=>


_______________________________________________
PyMOL-users mailing list
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net
Unsubscribe: 
https://sourceforge.net/projects/pymol/lists/pymol-users/unsubscribe

Reply via email to