owmeta.worm module

class owmeta.worm.Worm(*args, no_type_decl=False, **kwargs)[source]

Bases: BiologyType

A representation of the whole worm

defined_augment()[source]

True if the name is defined

get_neuron_network()[source]

Return the neuron network of the worm.

Example:

# Grabs the representation of the neuronal network
>>> net = P.Worm().get_neuron_network()

# Grab a specific neuron
>>> aval = net.aneuron('AVAL')

>>> aval.type()
set([u'interneuron'])

#show how many connections go out of AVAL
>>> aval.connection.count('pre')
77
Returns

An object to work with the network of the worm

Return type

owmeta.Network

get_semantic_net()[source]

Get the underlying semantic network as an RDFLib Graph

Returns

A semantic network containing information about the worm

Return type

rdflib.ConjunctiveGraph

identifier_augment(*args, **kwargs)[source]

Result is derived from the name property

muscles()[source]

Get all Muscle objects attached to the Worm.

Example:

>>> muscles = P.Worm().muscles()
>>> len(muscles)
96
Returns

A set of all muscles

Return type

set

property cell

A type of cell in the worm

property muscle

A type of muscle which is in the worm

property name

Alias to scientific_name

property neuron_network

The neuron network of the worm

property scientific_name

Scientific name for the organism