Skip to main content

Biobricks automates bioinformatics data.

Project description

BioBricks

codecov Lifecycle: experimental

BioBricks makes loading data from biological datasets easy.

pip install biobricks

initialize

To initialize BioBricks you must set the BBLIB environmental variable and get a user token.

  1. TOKEN: register at biobricks.ai then go to biobricks.ai/token
  2. BBLIB: Set this to a path on your local file system with plenty of space for large bricks
import biobricks as bb
os.environ['BBLIB'] = '/some/path' # typically set this up to persist between python sessions
bb.initialize(<TOKEN>) # see step 1 above

Pull Bricks

To download a brick and save it locally in your library use bb.pull. An example using the Tox21 dataset:

bb.pull('tox21') # save the brick to BBLIB and download it's resources
tox21 = bb.load('tox21') # load a SimpleNamespace with all the brick tables

# List the resources in the brick
for tablename in sorted(list(vars(tox21).keys())):
    print(tablename)
    
tox21.tox21_ache_p4.to_pandas() # get a pyarrow Table and convert to pandas dataframe

To list the bricks currently available visit github.com/biobricks-ai

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

biobricks-0.1.39.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

biobricks-0.1.39-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file biobricks-0.1.39.tar.gz.

File metadata

  • Download URL: biobricks-0.1.39.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for biobricks-0.1.39.tar.gz
Algorithm Hash digest
SHA256 da48e22848bac508747f2d46fe2d3216b8f844010978ea4958ea13ff3a79af49
MD5 1c186398ddaff391fb56c06682728eac
BLAKE2b-256 7fe12bf9f4e4c6f14a78daa21901e613919eaaf6203d9460add7bbd4cd8b54d7

See more details on using hashes here.

File details

Details for the file biobricks-0.1.39-py3-none-any.whl.

File metadata

  • Download URL: biobricks-0.1.39-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for biobricks-0.1.39-py3-none-any.whl
Algorithm Hash digest
SHA256 e22f15a24136ae21b7f5adbc78d3a147b0dfc38e697fd40c865a07ae7c1f3658
MD5 488e1360a9233a13b1de2a0a56111dec
BLAKE2b-256 057e8332e4345ada12745c371b71fd69ca769eba0f1fababf191c2cb3d3844eb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page