gary thompson wrote:
> Dear All
> is there a simple general way to calculate the aliased position of a
> peak using the Analysis functions eg peakBasic etc. Specifically I
> have a peak which is picked outside the dataset (i.e. at an aliased
> position; for example point -60 in a dimension with width 128 points)
> and want to calculate the datapoint it refers to inside the spectrum
> (which will be something like 128 -60 +-1 for off by 1 errors ;-))
>
>
> regards
> gary
I wrote this this morning after some simple reflection (of course it
maynot be correct)
def unalias_position(position,data_dim):
data_dim_length=data_dim.numPoints()
while position < 0.0:
position = dim_length + position
while position > (dim_length-1):
position = position - dim_length
return position
however, this is only unaliasing and not unfolding. Now I have a found
expDim.isFolded and guess I should assume peaks are aliased unless this
flag is set...
regards
gary
--
-------------------------------------------------------------------
Dr Gary Thompson
Astbury Centre for Structural Molecular Biology,
University of Leeds, Astbury Building,
Leeds, LS2 9JT, West-Yorkshire, UK Tel. +44-113-3433024
email: [log in to unmask] Fax +44-113-2331407
-------------------------------------------------------------------
|