Package lib :: Package software :: Module bruker_dc
[hide private]
[frames] | no frames]

Module bruker_dc

source code

Module for the reading of Bruker Dynamics Centre (DC) files.

Functions [hide private]
 
convert_relax_data(data)
Determine the relaxation data from the given DC data.
source code
 
get_res_num(data)
Determine the residue number from the given DC data.
source code
list of float, list of float, list of int, str, float, str, str, str, str
parse_file(file=None, dir=None)
Parse the DC data file and return the extracted data.
source code
Variables [hide private]
  __package__ = 'lib.software'

Imports: search, split, RelaxError, open_read_file


Function Details [hide private]

convert_relax_data(data)

source code 

Determine the relaxation data from the given DC data.

Parameters:
  • data (list of str) - The list of Tx, Tx error, and scaling factor for a given residue from the DC file.

get_res_num(data)

source code 

Determine the residue number from the given DC data.

Parameters:
  • data (list of str) - The list of residue info, split by whitespace, from the DC file.

parse_file(file=None, dir=None)

source code 

Parse the DC data file and return the extracted data.

Parameters:
  • file (str) - The name of the file to open.
  • dir (str or None) - The directory containing the file (defaults to the current directory if None).
Returns: list of float, list of float, list of int, str, float, str, str, str, str
The data from the Bruker Dynamics Centre file. This includes the values, the errors, the residue numbers, the integration type, the field strength frequency, the relaxation data type, the isotope, the spin name, and the BDC version number.