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.41.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

biobricks-0.1.41-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: biobricks-0.1.41.tar.gz
  • Upload date:
  • Size: 11.9 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.41.tar.gz
Algorithm Hash digest
SHA256 1ac161ca3e08b6215e8c1e400d6a3b3f0585701143d9cc5bd36ab1c4c6275db0
MD5 8246f3856899c7cf7924dfb251bcbd98
BLAKE2b-256 234ab2a75c45b83bdad5bf8f4fa60edeac41a3d18b2bd0d2ba05827f63063583

See more details on using hashes here.

File details

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

File metadata

  • Download URL: biobricks-0.1.41-py3-none-any.whl
  • Upload date:
  • Size: 12.8 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.41-py3-none-any.whl
Algorithm Hash digest
SHA256 8ed60ad74a5581ba320783f535fbb99cd9e7e26365fab1389aa78660c47416b2
MD5 4e93c897fd2f8636abb87dd385ffb4e2
BLAKE2b-256 4e7a97a99edf755cbcc2f76d847092d3d4ab7b3319e318c2b865a52961e07f5f

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