In [5]:
monomer_example1 = {'ident': 'CARNRACE-MONOMER',
'subunit_stoich': {'b0036': 1.0}}
# monomer_example2 = {'ident': '',
# 'subunit_stoich': }
homomer_example1 = {'ident': 'ANSB-CPLX',
'subunit_stoich': {'b2957': 4.0}}
# homomer_example2 = {'ident': '',
# 'subunit_stoich': }
heteromer_example1 = {'ident': 'CPLX0-1762',
'subunit_stoich': {'b1388': 1.0,
'b1389': 1.0,
'b1390': 1.0,
'b1392': 1.0}}
heteromer_example2 = {'ident': 'SULFITE-REDUCT-CPLX',
'subunit_stoich': {'b2763': 4.0,
'b2764': 8.0}}
In [6]:
from ssbio.core.complex import Complex
In [17]:
import tempfile
In [22]:
# Makes a new Complex object
# root_dir is where a folder named after the identifier will be created
monomer = Complex(ident=monomer_example1['ident'],
subunits=monomer_example1['subunit_stoich'],
root_dir=tempfile.gettempdir())
print('id:', monomer.id)
print('complex_dir:', monomer.complex_dir)
print('subunit_dict:', monomer.subunit_dict)
# Should print "monomer"
print('oligomeric_state:', monomer.oligomeric_state)
In [16]:
!ls
In [ ]: