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 members.biobricks.ai then go to members.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.0.33.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

biobricks-0.0.33-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: biobricks-0.0.33.tar.gz
  • Upload date:
  • Size: 9.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.0.33.tar.gz
Algorithm Hash digest
SHA256 fa89b2ca8f51a8cb25f90a6c75766b87947c10ccd2e6b72e35ec699b278d04bb
MD5 d1df7c1955a17d286a67905553a41c34
BLAKE2b-256 42476975fd5dd43b2b905ebbc9d27d0ae0c95d1f37bbf18ec7a7f0c929232e9d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: biobricks-0.0.33-py3-none-any.whl
  • Upload date:
  • Size: 8.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.0.33-py3-none-any.whl
Algorithm Hash digest
SHA256 2457a4933957e1687be5b15ffd72d36efb81c30735611f203532f10533e5d110
MD5 48111b3c8f27aab3b2604012e1c6ac01
BLAKE2b-256 2ca465cacc77ec63e2044568b3fd58123e47b991da14681a849f8a25b94e5784

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