Skip to main content

A Python client for Sherlok

Project description

See <>.

pip install --upgrade sherlok

from sherlok import Sherlok

print list(Sherlok().annotate('neuroner', 'layer 4 neuron'))

[(0, 14, 'layer 4 neuron', u'Neuron', {}),
 (8, 14, 'neuron',  u'Neuron', {}),
 (8, 14, 'neuron',  u'NeuronTrigger', {}),
 (0, 7,  'layer 4', u'Layer', {u'ontologyId': u'HBP_LAYER:0000004'})]

 # filtering and finding the text back
s = Sherlok()
txt = 'parvalbumin-positive fast-spiking basket cells, somatostatin-positive regular-spiking bipolar and multipolar cells, and cholecystokinin-positive irregular-spiking bipolar and multipolar cells'
morphology ='neuroner', txt), u'Morphology')
for m in morphology:
    print m

(175, 185, 'multipolar', u'Morphology', {})
(163, 170, 'bipolar', u'Morphology', {})
(98, 108, 'multipolar', u'Morphology', {})
(86, 93, 'bipolar', u'Morphology', {})
(34, 40, 'basket', u'Morphology', {})

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sherlok, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size sherlok-0.1.3.tar.gz (2.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page