华为云用户手册

  • 步骤2:安装eihealth-toolkit 本示例中以Windows系统为例,介绍安装命令行工具的方法。 下载Windows版本的客户端,得到health.exe文件,health文件无需安装,放置在任一文件夹中即可。 图1 下载命令行工具 使用win键+R,输入cmd打开windows的cmd窗口。进入工具所在的目录,输入health命令,即可使用。 如果cmd窗口显示目录不是health文件所在目录,请使用cd命令切换路径。例如,切换至D盘: cd /d d: 图2 客户端 使用Linux版本命令行工具时,您需要在本地搭建Linux环境,并将下载的health文件放置所需的目录下,例如: 如果当前目录为health所在目录,可以使用./health命令执行命令行工具。 如果当前目录不是health所在目录,需要使用绝对路径。如当前目录为/opt,假设health存放在/root/health-toolkit/下,需要指定/root/health-toolkit/health路径进行使用。 如果无法运行,使用chmod 755 health命令设置执行权限。
  • 步骤3:初始化配置 在使用命令行工具前,需要初始化配置信息,通过config命令对eihealth-toolkit进行初始化配置。本节以Windows为例介绍配置过程,Linux和macOS环境配置过程相同。 命令结构 执行health config add命令配置AK、SK、region、platform-id信息,获取方法请参见获取认证信息。 health config add [flags] 表2 参数说明 参数 简写 是否必选 说明 --domain-name -d 是 与管理员(购买平台的账户)的账号名一致。 --user-name -u 是 子用户的用户名。 管理员(购买平台的账户)登录时,user-name和domain-name一致。 --password -w 是 密码。 --ak -a 是 AK(Access Key ID):访问密钥ID。 --sk -s 是 SK(Secret Access Key):与访问密钥ID结合使用的密钥。 --region -r 是 服务区 域名 称。 --platform-id -i 是 平台ID,获取方法请参见获取认证信息。 --iam-endpoint -m 否 IAM 终端节点名称,请在地区与终端节点中获取。 --health-endpoint -e 否 EIHealth 终端节点名称,请在地区与终端节点中获取。 --swr-endpoint -t 否 SWR镜像仓库地址。 获取方式: 登录 容器镜像服务 管理控制台。 单击界面右侧“登录指令”,获取内网登录指令末尾的SWR镜像仓库地址。例如100.78.15.50:20202。 --log-path -l 否 日志路径,不填写时默认为命令行工具当前路径下healthcli.log文件。 路径设置格式: Windows系统为“路径\文件名”。 Linux系统格式为“路径/文件名”。 --http-proxy -p 否 HTTP代理配置,格式为“http://username:password@your-proxy:your-port”。 --obs-endpoint -o 否 OBS终端节点名称,请在地区与终端节点中获取。 --obs-install-path -q 否 设置obsutil安装路径,默认安装在当前运行目录。 设置时,该路径必须为obsutil运行文件名,如/home/path/obsutil、/home/path/obsutil-1.1.1 --obs_down_load_url -D 否 obsutil下载链接,obsutil将下载到obs-install-path上。 参数有改动时才会触发下载。 下载链接的内容可以是zip、tar.gz文件、二进制文件,如果是压缩文件,文件夹内的obsutil必须命名为obsutil(和obsutil官方链接保持一致)。 --force -f 否 强制操作。如果下载obsutil时,指定的obs-install-path上已经有同名文件,不带-f时会提示用户,带上-f会直接覆盖原文件。 命令示例 health config add -d xxx -u xxx -w xxx -i xxx -r cn-north-4 -o obs.cn-north-4.myhuaweicloud.com -a xxx -s xxx -D https://obs-wwx-2022.obs.cn-north-4.myhuaweicloud.com/obsuti-windows/obsutil.exe -q obsutil-linux/obsutil.exe –f -m xxx -e xxx -t xxx # 执行成功返回结果如下 add ak successfully! add sk successfully! add region successfully! add platform-id successfully! add user-name successfully! add password successfully! add domain-name successfully! add obs-endpoint successfully! add obs_install_path successfully! add obs_down_load_url successfully! add iam-endpoint successfully! add health-endpoint successfully! add swr-endpoint successfully! 图3 命令示例 执行以上命令行,会在系统所在的用户目录下自动生成一个.health文件夹,文件夹中包含config.ini配置文件,用于存储任务执行所涉及到的配置,如密钥、区域、当前项目等信息。 生成的配置文件不建议直接修改,如需改动请使用命令行工具修改。 配置文件中保存有用户的AK、SK信息,为了避免密钥泄露,会对文件中的SK进行加密以保护密钥安全。 清空配置请执行health config clear命令。
  • 步骤1:下载eihealth-toolkit 针对不同操作系统,eihealth-toolkit下载地址如下所示。 表1 下载列表 支持平台 下载地址 Windows 64位 health-windows-x86_64.zip、health-windows-x86_64.zip.sha256 Linux ARM 64位 health-linux-aarch64.tar、health-linux-aarch64.tar.sha256 Linux AMD 64位 health-linux-x86_64.tar、health-linux-x86_64.tar.sha256 macOS health-macOS-x86_64.tar、health-macOS-x86_64.tar.sha256 本页面命令行工具下载后,在使用时,需用到您 注册华为账号 并开通华为云时提供的用户名等信息,用于登录并操作EIHealth平台的项目、数据等资产。这些信息的处理将遵循您已接收的《华为云用户协议》及《隐私政策声明》约束。
  • 聚类分析 目前分子优化返回的结果小分子数较多,无法进行批量分析,通过一些聚类的辅助方式能更好的选择分子。从每个类里挑选出一两个分子进行后续分析和验证,提高分析的效率和分析质量。也可以通过聚类找出一些关键的骨架,来进行下游分析或者优化等。 在输出结果页面左上角单击“聚类分析”后,系统开始进行分析,同时显示“聚类分析中”。 图16 聚类分析 待聚类分析完成后,单击“查看聚类结果”。进入聚类结果页。 在聚类结果页面,可以查看每个聚类的分子数量等信息。 图17 查看聚类结果 单击某个聚类的操作列的“查看详情”,即可进入聚类详情页面,聚类详情页支持以卡片、列表以及3D的形式查看。默认展示卡片页面,用户可自行进行切换。 每个结果页面只用进行一次聚类分析操作。 聚类结果是存成文件,如果文件被删或者获取不到的话会有警告, 聚类结果不存在。此时可以单击“重新聚类分析”。 如果聚类失败,根据提示失败原因解决问题后,可单击“重新聚类分析”。
  • 自由能微扰 自由能微扰基于纯国产分子动力学模拟库SPONGE,产生自动化FEP工作流,端到端计算配体修饰造成的亲和能改变。 单击“自由能微扰”功能卡片,进入上传文件页面。 在上传页面右侧,选择上传受体,上传配体,选择中心配体。 上传受体:受体仅支持PDB格式的文件。 上传配体:配体仅支持SDF、MOL2、PDB格式文件,且只支持3D结构。 选择参考配体:当前自由能微扰支持自动规划路径,选择参考配体后系统自动计算,用户也可自主添加或删除配体对。 图1 上传文件 引用外部桶时,需要确保所引用的数据不超过45层级的目录。 单击“下一步”,选择配体对。 页面显示:正在规划自动路径,您也可以直接选择配体对后进行下一步。 待计算路径:选择待计算的路径。待计算路径起点是中心配体名称,终点是其他配体的名称。在相似度计算完成之前默认未勾选。您也可以添加路径或者重置路径。添加路径和重置路径可以通过单击右边的“添加路径”或者“重置”进行操作。添加路径也可以在左侧微扰图中直接通过两个分子之间进行连线添加。可以在微扰图中单击某条待计算路径上的,删除该条待计算路径。 图2 添加或者删除待计算路径 图3 选择配体对 返回相似度后默认全勾选,您可以进行勾选或去除勾选要计算的路径,如果未勾选,则后面就不会对其进行FEP计算。在相似度返回之前,您也可以直接选择配体对进入下一步。 图4 选择计算路径 单击“下一步”,进入FEP设置页面,设置相关参数。 时间步长:默认值:0.002,取值范围:0.001 ≤ dt ≤ 0.005,单位:ps。分子动力学模拟的步长,建议不超过0.002ps,步长越大,越难收敛。 预平衡时长:默认值:100ps,取值范围:0-200ps。对体系进行预平衡模拟,使体系温度、压强、密度等达到平衡状态。预平衡模拟时长=预平衡步数×时间步长。时长增加,作业运行时间延长。 平衡时长:默认值:1ns,取值范围:0-10ns。平衡阶段的模拟,用于自由能微扰计算。平衡模拟时长=时间步长×平衡步数/1000,单位为ns。时长增加,作业运行时间延长。 λ个数:默认值20,输入范围为2-30。自由能微扰的窗口数量。 名称:可修改,修改后左上角也同步修改。长度为5~64个字符;仅可以使用字母、数字、下划线“_”、中划线“-”和空格;首位只能以数字或字母开头。 标签:设置任务标签。 功能调用消耗:每一对会消耗一次功能调用,因此计算几条路线就显示调用几次。 图5 设置FEP参数 单击“提交”,可在作业中心查看该作业的运行情况。 查看运行结果。 输出每对配体的相对结合自由能、分子图、相似性等。也可以单击右边“查看轨迹”,下载运动轨迹。结果页面支持Pair和Ligand两种查看方式。 Ligand查看方式下,可对结果进行收藏,在Ligand中的收藏同步3D视图。如果取消收藏,单击,弹出取消收藏页面,单击“确认”,取消收藏。 也可以下载输出结果文件包含小分子的基本信息和属性。 下载操作将会产生流量费用,具体可参考《 医疗智能体 -产品介绍》的计费说明章节。 图6 查看结果(1) 图7 查看结果(2) 图8 查看结果(3) 单击查看全部展示收敛性分析、 RMS F和RMSD结果。 图9 查看结果(4) 单击查看轨迹预览轨迹动图。 图10 查看结果(5) 父主题: 先导化合物优化
  • 禁止/允许删除数据 您可以对某个数据设置禁止删除。设置禁止删除后,该目录只能添加数据,不支持删除数据。也可以通过“允许删除”取消禁止删除设置。 图7 开启禁止删除数据 支持设置最多15个数据的禁止删除状态。 如果平台或者父目录设置禁止删除状态,则对应的数据根路径或者子路径均为禁止删除状态,子路径不支持同时设置允许删除状态;如果平台或者父目录设置允许删除,则之前子路径设置的禁止删除权限失效,全部子路径允许删除。
  • 恢复数据 平台支持数据的恢复机制,您可以将归档的核心数据进行恢复,避免造成损失。 数据归档成功后,可以在“归档”页面查看归档记录,并进行恢复、删除操作。归档恢复时,您可以将数据恢复至本项目或有权限的其他项目。 数据归档成功后,选择“归档”页签。 图10 选择归档页签 选择需要恢复的数据,单击操作列“恢复”。在恢复归档数据页面,选择需要恢复数据的位置和数据。 图11 选择恢复数据的位置 单击“确定”。
  • 命令示例 health nextflow get workflow 550e8400-e29b-41d4-a716-446655440000 -p a.yaml wirte nextflow workflow 5b5cd09c-bc14-11ed-b7f6-fa163e504fdd params file h3 success { "create_time": "2023-03-06T11:45:13Z", "description": "h test 2", "id": "5b5cd09c-bc14-11ed-b7f6-fa163xxx", "labels": [ "a", "b", "c" ], "main_file": "m1.nf", "name": "h3", "params_file": "h3-params.yaml", "source_resource_id": "", "update_time": "2023-03-06T11:51:13Z", "workflow_file": "testzip.zip", "workflow_file_url": "https://xxx/__nextflow__/assets/e6dcd289-dadb-48d9-b53b-e0c6c256932e/h3-compress/testzip.zip?AccessKeyId=VQ52M3Q7I4WPWPDUB5XZ\u0026Expires=1678139581\u0026Signature=XmQTSYDCq2Xl2pVDVE4S%2BoMBH3M%3D" } health nextflow get workflow { "workflows": [ { "id": "5b5cd09c-bc14-11ed-b7f6-fa163exxx", "name": "h3", "description": "h test 2", "labels": [ "a", "b", "c" ], "create_time": "2023-03-06T11:45:13Z", "update_time": "2023-03-06T11:51:13Z", "creator": "ei_eihealth_h00541446_01", "source_resource_id": "" }, { "id": "cff53a66-b7d3-11ed-b7f6-fa163xxx", "name": "dsxs", "description": "xxx", "labels": [], "create_time": "2023-03-01T01:53:07Z", "update_time": "2023-03-01T01:53:07Z", "creator": "ei_eihealth_h00541446_01", "source_resource_id": "" } ], "count": 2 }
  • 命令示例 health nextflow edit workflow 5b5cd09c-bc14-11ed-b7f6-fa163e504fdd -w "D:\testzip.zip" -d "h test 2" -l "a,b,c" -m "m1.nf" -p "D:\param1.json" edit nextflow workflow 5b5cd09c-bc14-11ed-b7f6-fa163e504fdd successful
  • 命令示例 health nextflow create workflow -n h2 -w "D:\testzip.zip" -d "h test" -l "a,b" -m "m.nf" -p "D:\param1.json" { "id": "5b5cd09c-bc14-11ed-b7f6-fa163e504fdd" } create nextflow workflow h2 successful
  • 命令示例 获取task列表 health nextflow get task -j "7991e0b4-bffe-4166-ac2e-45a261592dcc" { "tasks": [ { "task_id": "1", "process": "readfile", "hash": "f2/a0f16c", "status": "RUNNING", "container": "swr.xxx/eihealth-0659ea54-5ae6-4e9d-b014-a2b041a26f62/admet:2.0.0.1659942728536", "pod_name": "nf-f2a0f16c66bbe8e28824e8ccabbddd25", "submit": "2023-03-09T08:50:37Z" } ], "count": 1 } 获取task详情 health nextflow get task 1 -j "7991e0b4-bffe-4166-ac2e-45a261592dcc" { "id": "1", "command": "\n echo /test;sleep 1000;echo \"end /test\";\n ", "status": "RUNNING", "exit": 2147483647, "work_dir": "/nextflow/__nextflow_work__/e6dcd289-dadb-48d9-b53b-e0c6c256932e/mb79e5e6-1b14-41b4-ac3b-e8fb0122d64d/f2/a0f16c66bbe8e28824e8ccabbddd25", "module": [], "container": "swr.xxx/eihealth-0659ea54-5ae6-4e9d-b014-a2b041a26f62/admet:2.0.0.1659942728536", "attempt": 1, "execution_time": { "submit": "2023-03-09T08:50:37Z", "start": "2023-03-09T08:50:40Z" }, "resource_requested": { "container": "swr.xxx/eihealth-0659ea54-5ae6-4e9d-b014-a2b041a26f62/admet:2.0.0.1659942728536", "cpus": 1 }, "resource_usage": {} } 获取task日志 health nextflow get task 1 -j "7991e0b4-bffe-4166-ac2e-45a261592dcc" -t logs { "count": 1, "logs": [ "2023-03-09T08:50:44Z /test\n" ] }
  • 命令示例 health nextflow create job -n "j1" -w "113b2ee6-bcb3-11ed-b7f6-fa163e504fdd" -d "htest" -l "a,b,c" -a "hello" -p "/param1.json"​ 输出结果: { "id": "fe88c9fe-2623-4b08-8f75-df60bb216072" } ​create nextflow job j1 successful
  • 命令示例 删除计算节点标签 health edit compute-resources -t delete-labels -l "[\"h1\",\"h2\"]" -n 9b1727a3-2102-4d92-95b9-7eaa86b398ac edit compute resources using the delete-labels mode is successful 添加计算节点标签 health edit compute-resources -t add-labels -l "[\"h1\",\"h2\"]" -n 9b1727a3-2102-4d92-95b9-7eaa86b398ac the edit compute-resources using add-labels mode is successful 设置节点可调度 health edit compute-resources -t schedulable -n 9b1727a3-2102-4d92-95b9-7eaa86b398ac the edit compute-resources using schedulable mode is successful 停止计算节点 health edit compute-resources -t stop -n 9b1727a3-2102-4d92-95b9-7eaa86b398ac The stop operation is started successfully...
  • 命令结构 health edit compute-resources [flags] 表1 参数说明 参数 简写 是否必选 描述 --force -f 否 是否强制操作。 --labels -l 否 需要添加或删除的标签列表。json数组格式。如:-l "[\"h1\",\"h2\"]" --node -n 是 计算资源节点id --operation-type -t 是 对计算资源的操作:[add-labels \| delete-labels \| stop \| reboot \| start \| schedulable \| non-schedule]。add-labels:添加计算节点标签。delete-labels:删除计算节点标签。stop:停止节点。reboot:重启节点。start:启动节点。schedulable:设置节点可被调度。non-schedule:设置节点不可被调度
  • 命令结构 health create compute-resources [flags] 表1 参数说明 参数 简写 是否必选 描述 --code -s 是 计算节点规格。 --data-disk-spec-code -d 否 额外数据盘规格。 --extra-data-disk-size -e 否 额外数据盘大小。 单位:G。 默认值:100。 --zone -z 是 可用区id。如:cn-north-7c。 --purchased-quantity c 否 购买节点数。 默认值:1。
  • 命令示例 health stat huo:/huo/ --bf human-readable Start at 2022-09-01 06:53:01.0466497 +0000 UTC Key: obs://xxx/huo/ LastModified: 2022-08-30T11:13:48Z Size: 0B StorageClass: standard ETag: 6c2d85292e26b513c2670998ecf8427e ContentType: application/x-directory Type: folder Metadata: mtime=1661858028 mode=16832
  • 命令示例 本节以Windows为例介绍eihealth-toolkit的使用过程,Linux和macOS环境使用方法基本相同,可参考。 删除某个文件的分段任务 health abort /tmp/a -r -f # 返回结果如下 Start at 2022-04-11 11:36:44.7982446 +0000 UTC [_______________________________________________________] ?% tps:0.00 0/0 236ms Warn: No task to run
  • 命令示例 本节以Windows为例介绍eihealth-toolkit的使用过程,Linux和macOS环境使用方法基本相同,可参考。 增量同步上传 health sync ./bb2/ /tmp/bb3/ --type=upload --fr -j # 返回结果如下 Start at 2022-04-11 12:04:45.0966584 +0000 UTC Parallel: 5 Jobs: 2 Threshold: 50.00MB PartSize: auto VerifyLength: false VerifyMd5: false CheckpointDir: C:\Users\xxx\.obsutil_checkpoint OutputDir: C:\Users\xxx\.obsutil_output [----------------------------------------] 100.00% tps:0.00 ?/s 1/1 0B/0B 435ms Succeed count is: 1 Failed count is: 0 Skip count is: 1 Succeed bytes is: 0B Metrics [max cost:n/a, min cost:n/a, average cost:0.00 ms, average tps:0.00, transfered size:0B] Task id is: 1b3cdbdc-972f-40cd-9ef0-f233991207c3
  • 命令示例 本节以Windows为例介绍eihealth-toolkit的使用过程,Linux和macOS环境使用方法基本相同,可参考。 更新单列 health edit database instance xxxx --update -v "`USER_NAME:column1`;`volume1:1`" -n 19; # 返回结果如下 database xxxx update successfully! 插入 health edit db instance 14e4b880-e3bc-42f1-a35e-7c31d561ac57 --insert --values "`USER_NAME:column1`;`volume1:1`" # 返回结果如下 database xxxx insert successfully! 删除 health edit db instance xxxx --delete --row-num 19 # 返回结果如下 database xxx delete successfully!
  • 命令示例 本节以Windows为例介绍eihealth-toolkit的使用过程,Linux和macOS环境使用方法基本相同,可参考。 使用job-id导出作业 health export job -i f17a3542-3f7c... # 返回结果如下 export job successfully! 使用job-id文件导出作业 health export job -f /user/path/ids.txt # 返回结果如下 export job successfully!
  • 命令示例 本节以Windows为例介绍eihealth-toolkit的使用过程,Linux和macOS环境使用方法基本相同,可参考。 获取notebook列表 health get notebook # 返回结果如下 Name ID Status Container Image Created Updated notebook-01 xxx Running mul-kernel-cpu-cp27 2021-02-01 11:11:27 2021-02-01 11:11:27 notebook-02 xxx Failed mul-kernel-cpu-cp27 2021-02-01 11:11:27 2021-02-01 11:11:27 notebook-03 xxx Succeed mul-kernel-cpu-cp27 2021-02-01 11:11:27 2021-02-01 11:11:27 获取notebook详情 health get notebook xxxx # 返回结果如下 { "id": "439274bd-be09-4300...", "name": "a", "creator": "ei_eihealth_02", "url": "https://x.x.x.x/v1/0xxx/notebooks/xxx/services/notebook", "flavor": { "cpu": 1.0, "gpu": 0.0, "memory": 2.0 }, "status": "Creating", "image": { "image_type": "SYSTEM", "image_info": { "source_project_name": "", "image_name": "eihealth-notebook", "image_tag": "cuda11.0-custom-v1.0.6", "profile": "PY3" } }, "storages": [ { "path": "/home/health-user/work/wyq-test" } ], "create_time": "2022-06-30T11:25:43Z", "update_time": "2022-06-30T11:25:53Z", "failed_message": "pod failed for:Unschedulable, message:0/2 nodes are available: 2 Insufficient cpu.", "events": [ { "type": "Warning", "count": 3, "reason": "FailedScheduling", "message": "0/2 nodes are available: 2 Insufficient cpu.", "first_timestamp": "2022-06-30T11:25:43Z", "last_timestamp": "2022-06-30T11:25:46Z" } ] } 获取打开notebook的地址信息 health get notebook xxxx --url # 返回结果如下https://x.x.x.x/v1/0xxx/notebooks/xxx/services/notebook?token=xxxx
  • 命令示例 本节以Windows为例介绍eihealth-toolkit的使用过程,Linux和macOS环境使用方法基本相同,可参考。 创建SYSTEM镜像类型的notebook health create notebook lmx-notebook-system -i PY3 -f 1:0:2 -s lmx-test-01:/path1/;lmx-test-02:/path2/ # 返回结果如下 create notebook successfully! notebook id is xxx 创建CUSTOMER镜像类型的notebook health create notebook lmx-notebook-customer -i lmx-test-01/image1:tag1 -f 1:0:2 -s lmx-test-02:/path1/ # 返回结果如下 create notebook successfully! notebook id is xxx
  • 命令示例 本节以Windows为例介绍eihealth-toolkit的使用过程,Linux和macOS环境使用方法基本相同,可参考。 从源项目lmx-project导入流程,并重命名流程。 health import workflow lmx-wf:v1:lmx-project --rename XXX 或 health import workflow 1467490-2-hfddff:lmx-project --rename XXX # 返回结果如下 import workflow successfully!
  • 命令示例 本节以Windows为例介绍eihealth-toolkit的使用过程,Linux和macOS环境使用方法基本相同,可参考。 从源项目lmx-project-01导入应用,并重命名应用。 health import app ae81debc-c209-11eb-8a0d-fa163e3ddba1:lmx-project-01 --rename lmx-test-import-app 或 health import app testapp:testversion:lmx-project-01 --rename lmx-test-import-app # 返回结果如下 import app finished! result is: [ { "source_app_id": "93a4f757-f5b9-11eb-9fef-fa163ef9b34d", "destination_app_id": "0c13b198-f5c9-11eb-9fef-fa163ef9b34d", "destination_app_name": "lmx-test-import-app", "version": "1.0.0", "status": "IMPORT_SUC CES S" } ]
  • 命令示例 假设当前所在项目为lmx-project-01,命令及返回结果示例: 删除其他项目lmx-project-02的导入镜像tag。 health docker rmi lmx-project-02/demo-image:v1.1 # 执行成功返回结果如下 untagged:lmx-project-02/demo-image:v1.1 删除资产市场订阅的镜像tag。 health docker rmi [AssetMarket]/demo-image:v1.1 # 执行成功返回结果如下 untagged:[AssetMarket]/demo-image:v1.1 删除本项目的私有镜像tag,可不填源项目名。 health docker rmi demo-image:v1.1 或 health docker rmi lmx-project-01/demo-image:v1.1 # 执行成功返回结果如下 untagged:lmx-project-01/demo-image:v1.1
  • 命令示例 Linux ./health docker update lmx-project-01/demo-image --type APP --description 'this is a demo' Windows health docker update lmx-project-01/demo-image --type APP --description "this is a demo" 不填写项目名时,若当前所在项目是lmx-test-01,则执行如下命令后会更新当前项目中源项目为lmx-test-01的镜像demo-image的类型。 health docker update demo-image --type APP --chip ARM # 执行成功返回结果如下 update image successfully!
  • 命令示例 本节以Windows为例介绍eihealth-toolkit的使用过程,Linux和macOS环境使用方法基本相同,可参考。 引用单个数据库实例 health import db instance 12345 --src-project demo-project # 返回结果如下 reference database finished! result is: [ { "source_project_id": "879d952e-93c6-4b09-.....", "source_database_id": "5ea7d345-d1b4-4520-.....", "destination_database_id": "a94e72de-1305-4cc5-.....", "destination_database_name": "test001", "failed_reason": "", "status": "success" } ] 引用多个数据库实例 health import database instance 12345;123333;56777 --project demo-project # 返回结果如下 reference database finished! result is: [ { "source_project_id": "879d952e-93c6-4b09-aee6-....", "source_database_id": "e06f784f-c561-4323-92cd-....", "destination_database_id": "0589ab48-d685-483f-92b7-....", "destination_database_name": "test003", "failed_reason": "", "status": "success" }, { "source_project_id": "879d952e-93c6-4b09-aee6-c5cf....", "source_database_id": "cac4cfb9-0160-4221-b7c4-092f3da8....", "destination_database_id": "a1d7b16f-92b7-4344-a74d-e9eb0abe....", "destination_database_name": "test002", "failed_reason": "", "status": "success" } ] 导入数据到指定数据库 health import database instance 12345 --skip-lines 1 --delimiter \t --files project-01:/test1.txt;project-01:/test2/txt # 返回结果如下 import data to database successfully!
  • 命令示例 本节以Windows为例介绍eihealth-toolkit的使用过程,Linux和macOS环境使用方法基本相同,可参考。 获取数据库实例列表 health get db instance # 返回结果如下 Database ID Template Source Project Creator Number of Records Created Modified demo-01 xxx template1 project-01 EIHealth 1234 xxx xxx demo-02 xxx template1 project-02 EIHealth 347 xxx xxx 获取模板详情 health get db instance 12345 # 返回结果如下 { "id": "xxxx", "name": "job-1622803262953", "description": "database instance for drug screening, do not delete", "template": { "id": "xxxx", "name": "job-1622803262953-d69d2162", "description": "template for drug screening, study name is study-rbqr5mvgrqm086kz, job name is job-1622803262953", "source_project_name": "drug-screening-demo-01", "source_project_id": "xxxx", "source_template_id": "", "creator": "ei_eihealth_02", "columns": [ { "name": "drugs", "type": "String", "description": "The name of the drug", "nullable": false, "primary": true, "searchable": true, "unique": true, "tips": "" }, { "name": "Nsp10_6zct_pure", "type": "Double", "description": "The binding energy between the ligand and receptor", "nullable": true, "primary": false, "searchable": false, "unique": false, "tips": "" }, { "name": "NSP13_pure", "type": "Double", "description": "The binding energy between the ligand and receptor", "nullable": true, "primary": false, "searchable": false, "unique": false, "tips": "" }, { "name": "Average", "type": "Double", "description": "The average of the binding energy", "nullable": false, "primary": false, "searchable": false, "unique": false, "tips": "" }, { "name": "Standard_Deviation", "type": "Double", "description": "The standard deviation of the binding energy", "nullable": true, "primary": false, "searchable": false, "unique": false, "tips": "" } ], "create_time": "2021-06-04T10:41:32Z", "primary_key": "drugs", "is_prefab": false }, "creator": "ei_eihealth_02", "create_time": "2021-06-04T10:43:25Z", "update_time": "2021-06-04T10:43:26Z", "data_count": 2, "source_project_name": "drug-screening-demo-01", "source_project_id": "xxxx", "source_id": "", "is_prefab": false } 查询数据 health get db instance 12345 --data --limit 2 # 返回结果如下 drugs nsp3 mpro average standard_deviation _row_num Pyridoxal-phosphate -5.1 -4.7 -4.9 0.2 8496 Tetrahydrofolic-acid -7.8 -8.3 -8.05 0.25 8495 按列查询数据 health get db instance 12345 --data --limit 2 --columns 'drugs;nsp3;mpro' # 返回结果如下 drugs nsp3 mpro _row_num Pyridoxal-phosphate -5.1 -4.7 8496 Tetrahydrofolic-acid -7.8 -8.3 8495
  • 命令示例 本节以Windows为例介绍eihealth-toolkit的使用过程,Linux和macOS环境使用方法基本相同,可参考。 health create db instance demo --description desc --template-id 123456 --skip-lines 1 --delimiter '\t' --files project-01:/test1.txt;project-01:/test2/txt # 返回结果如下 create database instance successfully! instance id is xxx.
  • 命令示例 本节以Windows为例介绍eihealth-toolkit的使用过程,Linux和macOS环境使用方法基本相同,可参考。 health import db template 1223454 --src-project lmx-test-01 --rename demo # 返回结果如下 import database template finished! result is: [ { "source_project_id": "xxxx", "source_template_id": "xxxx", "destination_template_id": "", "destination_template_name": "lmx-cli-template", "failed_reason": "", "status": "success" } ]
共100000条
提示

您即将访问非华为云网站,请注意账号财产安全