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

Uploaded Source

Built Distribution

biobricks-0.1.37-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: biobricks-0.1.37.tar.gz
  • Upload date:
  • Size: 11.3 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.37.tar.gz
Algorithm Hash digest
SHA256 e2546e8acdfd3f503fa555b9b294759a441b6c2fb6d94fbe4727fef16b312c76
MD5 0302f7607a2e2310fdbbbd69238a9ba3
BLAKE2b-256 177f99287a56d7395dd3be356afc9b3cc8365399a698cbcc1f6b58995a0df900

See more details on using hashes here.

File details

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

File metadata

  • Download URL: biobricks-0.1.37-py3-none-any.whl
  • Upload date:
  • Size: 12.0 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.37-py3-none-any.whl
Algorithm Hash digest
SHA256 83d657e19612d7988b4e566b14cc1751e8590bd3b36ca98535a716acf9a9b1d6
MD5 9cea4ce21c99947ed261703cc94eca89
BLAKE2b-256 ab1d1169a02cf963fb4dde8789e238c8f50ee866435730224d7c4bb372689d42

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