每个生物数据库的当前版本是什么?
项目描述
Bioversions
每个生物数据库的当前版本是什么?
所有当前版本(已包含)的每日更新静态列表可以在https://biopragmatics.github.io/bioversions找到。
🚀 安装
$ pip install bioversions
💪 使用
import bioversions
assert bioversions.get_version('biogrid') == '4.2.192', 'This was true on Dec 5th, 2020!'
# If you want more information, use the resolve() function
bioversion = bioversions.resolve('biogrid')
assert bioversion.version == '4.2.192'
默认情况下,结果被缓存,并且每天只刷新一次,借助cachier
。缓存存储在~/.data/bioversions
。可以通过设置pystow
中的环境变量BIOVERSIONS_HOME
来覆盖缓存位置。
🌐 网络应用
虽然https://biopragmatics.github.io/bioversions提供了一个每日更新的数据库静态列表,但您可以使用以下方式从shell运行具有API的动态版本:
$ bioversions web
可以使用bioversions web --help
列出选项。
您可以通过访问 http://localhost:5000 来查看所有版本的HTML展示或通过 http://localhost:5000/database/<name>
接口程序化地解析给定的数据库,如下所示
import requests
res = requests.get('http://localhost:5000/database/biogrid').json()
assert res['success']
assert res['result']['name'] == 'BioGRID'
assert res['result']['version'] == '4.2.192', 'This was true on Dec 5th, 2020!'
命令行使用
您可以使用 bioversions get
命令将最新版本集成到您的shell脚本或REPL使用中,如下所示
$ wget "https://downloads.thebiogrid.org/Download/BioGRID/Release-Archive/BIOGRID-$(bioversions get biogrid)/BIOGRID-ALL-$(bioversions get biogrid).mitab.zip"
🙏 贡献
要添加更多数据库到列表中,您可以创建 bioversions.sources
的一个新子模块,并扩展 bioversions.utils.Getter
类来识别目标数据库的最新版本。以 bioversions.sources.biogrid
为例。
👋 属性
⚖️ 许可证
代码受MIT许可证的许可。
🎁 支持
Bioversions服务由INDRA Lab开发,INDRA Lab是Harvard Medical School的系统药理学实验室和Harvard Program in Therapeutic Science (HiTS)的一部分。具体信息请访问 INDRA Lab,系统药理学实验室 和 Harvard Program in Therapeutic Science (HiTS)。
💰 资金
Bioregistry的开发由DARPA Young Faculty Award W911NF2010255资助(PI: Benjamin M. Gyori)。
项目详情
下载文件
下载适用于您平台的文件。如果您不确定该选择哪一个,请了解更多关于安装包的信息。
源代码分发
构建分发
bioversions-0.5.503.tar.gz的散列值
算法 | 散列摘要 | |
---|---|---|
SHA256 | 97cc638c5bf13d3a7ad7e34d91b858842e541f7098ec68a2df159e419400b77b |
|
MD5 | b0330ebd898a6bdbd43eb733b05c9191 |
|
BLAKE2b-256 | f9c5fef9f40f52d990d7921e1324201156cd107424ac7f6b72a1c138b625cde2 |
bioversions-0.5.503-py3-none-any.whl的散列值
算法 | 散列摘要 | |
---|---|---|
SHA256 | 29e3552867947c932c82ade6dab2d885b9ed90a73e3ad0631125af493f99ddae |
|
MD5 | 5bf95bd335f37f38f8a2348dbbb42ed1 |
|
BLAKE2b-256 | 184fcf3fd40f87e94b0de89e0ecaa8ca74c199aefa7a16e339bfcbcfbdee1abb |