Skip to main content

Table 4 Common usage patterns for the nmrstarlib module

From: A fast and efficient python library for interfacing with the Biological Magnetic Resonance Data Bank

Usage

Example

Reading:

sf_gen = nmrstarlib.read_files(‘path’)

starfile = next(sf_gen)

Access/Modification:

starfile[‘saveframe’][‘key’]

starfile[‘saveframe’][‘key’] = new_value

Writing:

starfile.write(fileobj, fileformat=‘nmrstar’)

starfile.write(fileobj, fileformat=‘json’)