PlaszymeDB API 测试

1. 数据库连接测试

✓ 数据库连接成功

✓ plaszymedb表存在

✓ 数据库包含 474 条记录

2. 统计API测试

✓ 统计API工作正常

{
    "total_enzymes": 474,
    "plastic_types": 35,
    "unique_sequences": 474,
    "structures_3d": 50,
    "plastic_distribution": [
        {
            "plastic": "PET",
            "count": 203
        },
        {
            "plastic": "PHB",
            "count": 83
        },
        {
            "plastic": "PE",
            "count": 71
        },
        {
            "plastic": "PCL",
            "count": 60
        },
        {
            "plastic": "PLA",
            "count": 59
        },
        {
            "plastic": "PA",
            "count": 51
        },
        {
            "plastic": "PU",
            "count": 43
        },
        {
            "plastic": "PBAT",
            "count": 29
        },
        {
            "plastic": "PBSA",
            "count": 21
        },
        {
            "plastic": "PBS",
            "count": 18
        },
        {
            "plastic": "PES",
            "count": 18
        },
        {
            "plastic": "PHBV",
            "count": 8
        },
        {
            "plastic": "NR",
            "count": 8
        },
        {
            "plastic": "PVA",
            "count": 5
        },
        {
            "plastic": "PS",
            "count": 5
        },
        {
            "plastic": "PHV",
            "count": 5
        },
        {
            "plastic": "PEF",
            "count": 4
        },
        {
            "plastic": "PEA",
            "count": 3
        },
        {
            "plastic": "PHO",
            "count": 3
        },
        {
            "plastic": "P3HP",
            "count": 3
        },
        {
            "plastic": "P4HB",
            "count": 3
        },
        {
            "plastic": "PEG",
            "count": 2
        },
        {
            "plastic": "PBSeT",
            "count": 2
        },
        {
            "plastic": "ECOVIO_FT",
            "count": 2
        },
        {
            "plastic": "Impranil",
            "count": 2
        },
        {
            "plastic": "O_PVA",
            "count": 2
        },
        {
            "plastic": "PHPV",
            "count": 1
        },
        {
            "plastic": "PHBH",
            "count": 1
        },
        {
            "plastic": "PHBVH",
            "count": 1
        },
        {
            "plastic": "P3HV",
            "count": 1
        },
        {
            "plastic": "PMCL",
            "count": 1
        },
        {
            "plastic": "PPL",
            "count": 1
        },
        {
            "plastic": "ECOFLEX",
            "count": 1
        }
    ],
    "host_distribution": [
        {
            "host": "Uncultured bacterium",
            "count": 17
        },
        {
            "host": "Compost metagenome\/Uncultured bacterium",
            "count": 6
        },
        {
            "host": "Caldibacillus thermoamylovorans",
            "count": 6
        },
        {
            "host": "Paucimonas lemoignei (Pseudomonas lemoignei)",
            "count": 6
        },
        {
            "host": "Uncultured bacterium\/uncultured bacterium",
            "count": 6
        },
        {
            "host": "Pseudomonas chlororaphis",
            "count": 6
        },
        {
            "host": "Cupriavidus necator",
            "count": 5
        },
        {
            "host": "Thermobifida cellulosilytica",
            "count": 5
        },
        {
            "host": "Ketobacter sp.",
            "count": 4
        },
        {
            "host": "Clostridium botulinum",
            "count": 4
        }
    ],
    "ec_distribution": [
        {
            "ec_number": "3.1.1[PRED]",
            "count": 65
        },
        {
            "ec_number": "3.1.1.74[PRED]",
            "count": 43
        },
        {
            "ec_number": "3.2.1[PRED]",
            "count": 35
        },
        {
            "ec_number": "3.1.1.3[PRED]",
            "count": 34
        },
        {
            "ec_number": "3.1.1.101[PRED]",
            "count": 32
        },
        {
            "ec_number": "1.1.3.41[PRED]",
            "count": 8
        },
        {
            "ec_number": "3.1.1.1",
            "count": 7
        },
        {
            "ec_number": "3.5.1.46[PRED]",
            "count": 6
        },
        {
            "ec_number": "3.5.2.12[PRED]",
            "count": 5
        },
        {
            "ec_number": "3.1.1.75",
            "count": 5
        }
    ]
}

3. 搜索API测试

✓ 搜索API工作正常

搜索结果: 74 条记录

示例结果:

{
    "PLZ_ID": "0515046867",
    "protein_id": "X0183",
    "enzyme_name": "KaPETase",
    "ec_number": "",
    "taxonomy": "Thermobifida (Thermomonspora) fusca",
    "host_organism": "Kibdelosporangium aridum",
    "sequence": "MHTRSLFALLTLTIATLVSPAQAQAAANPYERGPAPTVASIEASRGPFAIAQTTVAASAVRGFGGGTIYYPTSTSEGTFGAVAISPGFTARQTSVAWYGPRLASQGFVVITIDTLSTLDQPDQRGAQLLAALDYLVQTSSVRSRIDGTRLGVMGHSMGGGGSLRAAATRPALQAAIPLTAWHTTKNWSSVQVPTLIVGAENDTTASVSAHSEPFYQSLSSTPDKAYLELNNAGHSAPTSANTTIAKYSISWLKRFIDNDTRYEQFLCPPPPPSSLIEEYRHTCPHS",
    "genbank_ids": "",
    "uniprot_ids": "A0A1W2FU08",
    "pdb_ids": "",
    "refseq_ids": "WP_143447025.1",
    "gene_name": "",
    "reference": "Cavus, 2025",
    "source_name": "pazy",
    "sequence_source": "uniport",
    "structure_source": "AlphaFoldDB",
    "ec_number_source": "",
    "predicted_ec_number": "",
    "ec_prediction_source": "\r",
    "can_degrade_PET": 1,
    "can_degrade_PE": 0,
    "can_degrade_PLA": 0,
    "can_degrade_PCL": 0,
    "can_degrade_PBS": 0,
    "can_degrade_PBAT": 0,
    "can_degrade_PHB": 0,
    "can_degrade_PU": 0,
    "plastic": "PET"
}

4. 详情API测试

✗ 详情API返回错误

{"success":false,"error":"PLZ_ID parameter is missing"}

5. 测试完成

如果所有测试都显示 ✓,那么BROWSE页面应该可以正常工作。

点击这里访问PlaszymeDB主页