Biobricks automates bioinformatics data.
Project description
BioBricks
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.
TOKEN
: register at biobricks.ai then go to biobricks.ai/tokenBBLIB
: 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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ac161ca3e08b6215e8c1e400d6a3b3f0585701143d9cc5bd36ab1c4c6275db0 |
|
MD5 | 8246f3856899c7cf7924dfb251bcbd98 |
|
BLAKE2b-256 | 234ab2a75c45b83bdad5bf8f4fa60edeac41a3d18b2bd0d2ba05827f63063583 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ed60ad74a5581ba320783f535fbb99cd9e7e26365fab1389aa78660c47416b2 |
|
MD5 | 4e93c897fd2f8636abb87dd385ffb4e2 |
|
BLAKE2b-256 | 4e7a97a99edf755cbcc2f76d847092d3d4ab7b3319e318c2b865a52961e07f5f |