# 质谱数据管理
质谱数据管理包括质谱实验相关的所有信息
# 质谱数据组成
质谱数据库组成如下图所示。
# flagrate_data表
| 字段名称 | 字段功能 | 字段类型 |
|---|---|---|
| id | 数据ID | bigint |
| description | 描述 | text |
| activated | 是否可用 | Boolean |
| deleted | 是否删除 | Boolean |
| created | 创建时间 | time stamp with time zone |
| updated | 更新时间 | time stamp with time zone |
| mrzfile | mrz文件 | Character varying |
| status | 状态 | integer |
| db_file | 数据库文件 | Character varying |
| db_version | 数据库版本 | Character varying |
| expected_result | 期待结果 | jsonb |
| analysis_result | 实际的分析结果 | jsonb |
| extra_info | 其他信息 | jsonb |
| case_id | 测试用例ID,关联flagrate_case | bigint |
| device_id | 设备ID,关联reparo_device | bigint |
| organization_id | 组织id,关联user_organization | bigint |
说明: flagrate_data表用于存储数据信息
# flagrate_case表
| 字段名称 | 字段功能 | 字段类型 |
|---|---|---|
| id | 测试用例ID | bigint |
| description | 描述 | text |
| activated | 是否可用 | Boolean |
| deleted | 是否删除 | Boolean |
| created | 创建时间 | time stamp with time zone |
| updated | 更新时间 | time stamp with time zone |
| sample_amount | 试剂量 | numeric |
| algorithm_data | 算法数据 | jsonb |
| algorithm_parameters | 算法参数 | jsonb |
| analysis_parameters | 分析参数 | jsonb |
| quant_methods | 定量方法 | jsonb |
| config_parameters | 配置参数 | jsonb |
| expected_result | 期待结果 | jsonb |
| cartridge_id | 试剂盒ID,关联accio_cartridge | bigint |
| eluent_id | eluent id, 关联erecto_eluent | bigint |
| matrix_id | 基质id,关联erecto_matrix | bigint |
| sample_unit_id | sample_unit_id,关联erecto_unit | bigint |
| organization_id | 组织id,关联user_organization | bigint |
说明: flagrate_case表用于存储case信息
# flagrate_datatag表
| 字段名称 | 字段功能 | 字段类型 |
|---|---|---|
| id | 数据标签ID | bigint |
| name | 数据标签名称 | Character varying |
| description | 描述 | text |
| activated | 是否可用 | Boolean |
| deleted | 是否删除 | Boolean |
| created | 创建时间 | time stamp with time zone |
| updated | 更新时间 | time stamp with time zone |
| organization_id | 组织id, 关联user_organization | bigint |
说明: flagrate_datatag表用于关联数据标签
# flagrate_data_datatag表
| 字段名称 | 字段功能 | 字段类型 |
|---|---|---|
| id | ID | bigint |
| datatag_id | 标签ID,关联flagrate_datatag | bigint |
| data_id | 数据ID,关联flagrate_data | bigint |
说明: flagrate_data_datatag表用于关联数据和标签的关联信息
# flagrate_substance表
| 字段名称 | 字段功能 | 字段类型 |
|---|---|---|
| id | substance ID | bigint |
| description | 描述 | text |
| activated | 是否可用 | Boolean |
| deleted | 是否删除 | Boolean |
| created | 创建时间 | time stamp with time zone |
| updated | 更新时间 | time stamp with time zone |
| concentration | 浓度 | numeric |
| is_positive | 是否阳性 | boolean |
| case_id | case id,关联flagrate_case | bigint |
| compound_id | compound id,关联accio_compound | bigint |
| conc_unit_id | conc_unit id, 关联erecto_concunit | bigint |
说明: flagrate_substance表用于记录实验用例的参数设置
# flagrate_data_dfn_compound表
| 字段名称 | 字段功能 | 字段类型 |
|---|---|---|
| id | table id | bigint |
| data_id | data id, 关联flagrate_data | bigint |
| compound_id | compound id, 关联accio_compound | bigint |
说明: flagrate_data_dfn_compound表用于记录DDA实验的假阴结果的数据
# flagrate_data_dfp_compound表
| 字段名称 | 字段功能 | 字段类型 |
|---|---|---|
| id | table id | bigint |
| data_id | data id, 关联flagrate_data | bigint |
| compound_id | compound id, 关联accio_compound | bigint |
说明: flagrate_data_dfp_compound表用于记录DDA实验的假阳结果的数据
# flagrate_data_dtp_compound表
| 字段名称 | 字段功能 | 字段类型 |
|---|---|---|
| id | table id | bigint |
| data_id | data id, 关联flagrate_data | bigint |
| compound_id | compound id, 关联accio_compound | bigint |
说明: flagrate_data_dtp_compound表用于记录DDA实验的真阳结果的数据
# flagrate_data_tfn_compound表
| 字段名称 | 字段功能 | 字段类型 |
|---|---|---|
| id | table id | bigint |
| data_id | data id, 关联flagrate_data | bigint |
| compound_id | compound id, 关联accio_compound | bigint |
说明: flagrate_data_tfn_compound表用于记录targeted实验的假阴结果的数据
# flagrate_data_tfp_compound表
| 字段名称 | 字段功能 | 字段类型 |
|---|---|---|
| id | table id | bigint |
| data_id | data id, 关联flagrate_data | bigint |
| compound_id | compound id, 关联accio_compound | bigint |
说明: flagrate_data_tfp_compound表用于记录targeted实验的假阳结果的数据
# flagrate_data_ttp_compound表
| 字段名称 | 字段功能 | 字段类型 |
|---|---|---|
| id | table id | bigint |
| data_id | data id, 关联flagrate_data | bigint |
| compound_id | compound id, 关联accio_compound | bigint |
说明: flagrate_data_ttp_compound表用于记录targeted实验的真阳结果的数据