From: Ajasja Ljubetič (ajasja.ljubetic_at_gmail.com)
Date: Wed Apr 05 2017 - 10:06:54 CDT

Hi,

not really sure what you want, but you can list more than one resid:

atomselect top "lipids and same residue as within 15 of resid 1 2 3 5"

or

atomselect top "lipids and same residue as within 15 of protein"

Best,
Ajasja

On 5 April 2017 at 16:36, <udit0000_at_gmail.com> wrote:

> Hello,
>
> I am trying to find number of lipids around residues of my protein. The
> command I am giving is
> “ for { set i 0 } { $i < $n } { incr i } {
>
> set sel [atomselect top "lipids and same residue as within
> 15 of resid 20" frame $i]
>
> set DPPC [$sel get resid]
>
> puts $file "$i $DPPC"
>
> } “
> But this command is valid for only 1 protein residue at a time.
> So, it would be really helpful if someone could tell me a way to do it
> for >1 residue(s) at once.
>
> Regards
>
> Udit
>
>
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
> Windows 10
>
>
>