Package Bio :: Package NMR :: Module xpktools
[hide private]
[frames] | no frames]

Module xpktools

source code

For manipulating data from nmrview .xpk peaklist files.

XpkEntry class: A class suited for handling single lines of
non-header data from an nmrview .xpk file.  This class
provides methods for extracting data by the field name
which is listed in the last line of the peaklist header.

Classes [hide private]
  XpkEntry
Entry from a .xpk file.
  Peaklist
For loading an entire .xpk file.
Functions [hide private]
 
replace_entry(line, fieldn, newentry)
Helper function replace an entry in a string by the field number.
source code
 
_find_start_entry(line, n) source code
 
data_table(fn_list, datalabel, keyatom)
Generate a data table from a list of input xpk files.
source code
 
_read_dicts(fn_list, keyatom) source code
Variables [hide private]
  HEADERLEN = 6
  __package__ = 'Bio.NMR'
Function Details [hide private]

replace_entry(line, fieldn, newentry)

source code 
Helper function replace an entry in a string by the field number.

No padding is implemented currently.  Spacing will change if
the original field entry and the new field entry are of
different lengths.

data_table(fn_list, datalabel, keyatom)

source code 
Generate a data table from a list of input xpk files.

Give the .xpk files as argument <fn_list>.
The data element reported in <datalabel> and the index for
the data table is by the nucleus indicated by <keyatom>.