{"id":115234,"date":"2026-10-11T15:16:59","date_gmt":"2026-10-11T07:16:59","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/115234.html"},"modified":"2026-10-11T15:16:59","modified_gmt":"2026-10-11T07:16:59","slug":"%e4%bb%aa%e5%99%a8%e6%95%b0%e6%8d%ae%e8%a6%81%e5%af%b9%e6%8e%a5%e8%bf%9b-lims%ef%bc%8c%e7%bb%93%e6%9e%9c%e6%96%87%e4%bb%b6%e5%92%8c%e6%a0%b7%e5%93%81%e5%8f%b7%e6%80%8e%e4%b9%88%e8%87%aa%e5%8a%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/115234.html","title":{"rendered":"\u4eea\u5668\u6570\u636e\u8981\u5bf9\u63a5\u8fdb LIMS\uff0c\u7ed3\u679c\u6587\u4ef6\u548c\u6837\u54c1\u53f7\u600e\u4e48\u81ea\u52a8\u5bf9\u4e0a"},"content":{"rendered":"<p><img decoding=\"async\" alt=\"\u4eea\u5668\u5bfc\u51fa\u7ed3\u679c\u6587\u4ef6\u6309\u6837\u54c1\u53f7\u81ea\u52a8\u5f52\u5806\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261011071658-6acb37ea055e5.png\" \/><\/p>\n<p>\u8272\u8c31\u5de5\u4f5c\u7ad9\u8dd1\u5b8c\u4e00\u6279\u6837&#xff0c;\u5bfc\u51fa\u4e00\u5806\u7ed3\u679c\u6587\u4ef6&#xff1b;\u8981\u8fdb LIMS&#xff0c;\u7b2c\u4e00\u6b65\u5c31\u5361\u5728\u300c\u8fd9\u4e2a\u6587\u4ef6\u3001\u8fd9\u4e00\u884c\u662f\u8c01\u7684\u6837\u54c1\u300d\u3002\u6587\u4ef6\u540d\u6709\u7684\u5e26\u6837\u54c1\u53f7&#xff0c;\u6709\u7684\u53ea\u6709\u65f6\u95f4\u6233&#xff0c;\u6837\u54c1\u53f7\u85cf\u5728\u300c\u8fdb\u6837\u74f6\u4f4d\u300d\u5217\u91cc&#xff0c;\u8fd8\u5f97\u5bf9\u7740\u53f0\u8d26\u4e00\u6761\u6761\u7ffb\u3002\u4e00\u5929\u51e0\u5341\u4e2a\u6587\u4ef6&#xff0c;\u624b\u5de5\u5bf9\u4e0b\u6765\u53c8\u6162\u53c8\u5bb9\u6613\u9519\u3002<\/p>\n<p>\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898&#xff0c;Python \u63d0\u4f9b\u4e86 pandas \u548c openpyxl \u8fd9\u5957\u7ec4\u5408&#xff1a;\u8bfb\u6587\u4ef6\u3001\u6309\u5217\u540d\u53d6\u6570\u3001\u6309\u8868\u5f52\u5806\u3001\u5199\u51fa Excel\u3002\u8fd9\u91cc\u4e0d\u78b0 LIMS \u63a5\u53e3&#xff0c;\u4e5f\u4e0d\u78b0\u4eea\u5668\u534f\u8bae\u2014\u2014\u53ea\u89e3\u51b3\u6700\u524d\u9762\u90a3\u4e00\u6b65&#xff1a;\u628a\u4eea\u5668\u7ed3\u679c\u6587\u4ef6\u6309\u6837\u54c1\u53f7\u5f52\u597d\u5806\u3001\u5bf9\u4e0d\u4e0a\u7684\u6311\u51fa\u6765\u3001\u6bcf\u4e00\u6b65\u7559\u75d5&#xff0c;\u5f97\u5230\u4e00\u4efd\u53ef\u5165\u5e93\u6e05\u5355\u3002<\/p>\n<h3>\u5148\u60f3\u6e05\u695a&#xff1a;\u4e00\u4efd\u7ed3\u679c\u6587\u4ef6\u600e\u4e48\u8ba4\u5230\u6837\u54c1\u53f7<\/h3>\n<p>LIMS \u91cc\u7684\u6837\u54c1\u6709\u81ea\u5df1\u7684\u7f16\u53f7&#xff08;\u5982 0000182&#xff09;&#xff0c;\u53ef\u4eea\u5668\u5410\u51fa\u6765\u7684\u7ed3\u679c\u6587\u4ef6\u91cc\u5f80\u5f80\u6ca1\u6709&#xff0c;\u53ea\u6709\u8fdb\u6837\u74f6\u4f4d\u3001\u6587\u4ef6\u5e8f\u53f7\u3001\u4eea\u5668\u5185\u90e8\u540d\u3002\u5bf9\u63a5\u7684\u7b2c\u4e00\u6b65\u4e0d\u662f\u8fde\u63a5\u53e3&#xff0c;\u662f\u300c\u628a\u4eea\u5668\u7684\u4e1c\u897f\u7ffb\u8bd1\u6210\u5b9e\u9a8c\u5ba4\u7684\u6837\u54c1\u53f7\u300d\u3002 \u8ba4\u53f7\u6709\u4e24\u6761\u8def&#xff0c;\u4f18\u5148\u7ea7\u4e0d\u80fd\u98a0\u5012&#xff1a;<\/p>\n<table>\n<tr>\u4f18\u5148\u7ea7\u8ba4\u53f7\u65b9\u5f0f\u4ec0\u4e48\u65f6\u5019\u7528\u8ba4\u4e0d\u51fa\u600e\u4e48\u529e<\/tr>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>\u6587\u4ef6\u540d\u5e26\u6837\u54c1\u53f7<\/td>\n<td>\u8001\u4eea\u5668\u547d\u540d\u89c4\u8303&#xff0c;\u5982 RESULT_0000190_*.csv<\/td>\n<td>\u9000\u56de\u7b2c 2 \u6761<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>\u6309\u300c\u8fdb\u6837\u74f6\u4f4d\u300d\u53cd\u67e5\u5bf9\u7167\u8868<\/td>\n<td>\u6587\u4ef6\u540d\u53ea\u6709\u65f6\u95f4\u6233&#xff0c;\u6837\u54c1\u53f7\u5728\u6587\u4ef6\u91cc<\/td>\n<td>\u6574\u884c\u6302\u8d77&#xff0c;\u4e0d\u731c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5bf9\u7167\u8868\u662f\u5916\u7f6e CSV&#xff0c;\u628a\u300c\u4eea\u5668\u6807\u8bc6 \u2194 \u5b9e\u9a8c\u5ba4\u6837\u54c1\u53f7\u300d\u5199\u5728\u4e00\u5904&#xff0c;\u4eea\u5668\u6362\u4e86\u3001\u7f16\u53f7\u89c4\u5219\u6539\u4e86\u6539\u8868\u4e0d\u6539\u4ee3\u7801\u3002<\/p>\n<h3>\u7b2c\u4e00\u6b65&#xff1a;\u914d\u7f6e\u8def\u5f84\u4e0e\u5b57\u6bb5<\/h3>\n<p>\u628a\u6240\u6709\u4f1a\u53d8\u7684\u4e1c\u897f\u2014\u2014\u54ea\u4e9b\u662f\u6570\u636e\u6587\u4ef6\u3001\u54ea\u5f20\u662f\u5bf9\u7167\u8868\u3001\u54ea\u4e9b\u5217\u8981\u2014\u2014\u63d0\u5230\u6587\u4ef6\u9876\u90e8\u5f53\u5e38\u91cf\u3002<\/p>\n<p>\u51fa\u5904&#xff1a;run.py \u9876\u90e8\u7684\u8def\u5f84\u4e0e\u5b57\u6bb5\u5e38\u91cf\u533a<\/p>\n<p>BASE &#061; Path(__file__).resolve().parent<br \/>\nRAW_DIR &#061; BASE \/ &#034;01_raw_data&#034;<br \/>\nOUT_DIR &#061; BASE \/ &#034;02_output&#034;<br \/>\nSRC_DIR &#061; BASE \/ &#034;source&#034;<br \/>\nTPL_DIR &#061; SRC_DIR \/ &#034;templates&#034;<br \/>\nMAP_FILE &#061; TPL_DIR \/ &#034;\u6837\u54c1\u5bf9\u7167\u8868.csv&#034;<br \/>\nLOG_FILE &#061; SRC_DIR \/ &#034;run_log.txt&#034;<\/p>\n<p>DATA_SUFFIX &#061; {&#034;.csv&#034;, &#034;.xlsx&#034;, &#034;.xls&#034;}<br \/>\nID_COL &#061; &#034;\u8fdb\u6837\u74f6\u4f4d&#034;            # \u4eea\u5668\u6807\u8bc6\u6240\u5728\u7684\u5217&#xff08;\u6587\u4ef6\u540d\u8ba4\u4e0d\u51fa\u6765\u65f6\u9760\u5b83\u53cd\u67e5\u6837\u54c1\u53f7&#xff09;<br \/>\nFILE_ID_RE &#061; re.compile(r&#034;(\\\\d{6,})&#034;)   # \u6587\u4ef6\u540d\u91cc 6 \u4f4d\u4ee5\u4e0a\u7684\u6570\u5b57\u6bb5&#xff0c;\u89c6\u4e3a\u5019\u9009\u6837\u54c1\u53f7<br \/>\nOUT_NAME &#061; &#034;\u4eea\u5668\u7ed3\u679c\u5f52\u5806\u8868.xlsx&#034;<br \/>\nNUM_COLS &#061; [&#034;\u4fdd\u7559\u65f6\u95f4&#034;, &#034;\u5cf0\u9762\u79ef&#034;, &#034;\u5cf0\u9ad8&#034;, &#034;\u7ed3\u679c&#034;, &#034;\u542b\u91cf(%)&#034;]<\/p>\n<p>\u8def\u5f84\u4e00\u5f8b\u7528 Path(__file__).resolve().parent \u8d77\u5934&#xff0c;\u4e0d\u5199\u7edd\u5bf9\u8def\u5f84\u3002DATA_SUFFIX \u628a\u975e\u6570\u636e\u6587\u4ef6&#xff08;\u5982\u8bf4\u660e txt&#xff09;\u6321\u5728\u5916\u9762&#xff1b;\u540c\u5217\u4e0d\u540c\u4eea\u5668\u5199\u6cd5\u4f1a\u98d8&#xff08;\u8fdb\u6837\u74f6\u4f4d \/ \u74f6\u4f4d \/ Vial&#xff09;&#xff0c;\u522b\u540d\u5168\u6536\u5728 pick_columns() \u91cc\u7ba1\u3002<\/p>\n<h3>\u7b2c\u4e8c\u6b65&#xff1a;\u8bfb\u6570\u636e&#xff0c;\u628a\u6837\u54c1\u53f7\u8ba4\u51fa\u6765<\/h3>\n<p>\u539f\u59cb\u8868\u4e0d\u505a\u4efb\u4f55\u89e3\u91ca&#xff0c;\u5148\u539f\u6837\u8bfb\u6210\u4e8c\u7ef4\u8868&#xff1b;\u8ba4\u53f7\u3001\u5207\u884c\u653e\u5230\u540e\u9762\u5355\u72ec\u505a&#xff0c;\u51fa\u9519\u65f6\u597d\u5b9a\u4f4d\u662f\u300c\u8bfb\u9519\u300d\u8fd8\u662f\u300c\u8ba4\u9519\u300d\u3002 \u51fa\u5904&#xff1a;run.py \u7684 load_sample_map() \u4e0e sample_no_from_name()&#xff08;\u6587\u4ef6\u524d\u4e2d\u90e8&#xff09;<\/p>\n<p>def load_sample_map(path):<br \/>\n    &#034;&#034;&#034;\u8bfb\u6837\u54c1\u5bf9\u7167\u8868&#xff0c;\u8fd4\u56de (\u4eea\u5668\u6807\u8bc6 \u2192 \u6837\u54c1\u53f7, \u4eea\u5668\u6807\u8bc6 \u2192 \u68c0\u6d4b\u9879\u76ee)\u3002<\/p>\n<p>    \u5bf9\u7167\u8868\u662f\u4e1a\u52a1\u8d44\u4ea7&#xff1a;\u5199\u5728\u8868\u91cc\u3001\u4e0d\u5199\u6b7b\u5728\u4ee3\u7801\u91cc\u2014\u2014\u4eea\u5668\u6362\u4e86\u3001\u7f16\u53f7\u89c4\u5219\u6539\u4e86&#xff0c;\u6539\u8868\u4e0d\u6539\u4ee3\u7801\u3002<br \/>\n    &#034;&#034;&#034;<br \/>\n    with path.open(encoding&#061;&#034;utf-8-sig&#034;, newline&#061;&#034;&#034;) as f:<br \/>\n        rows &#061; [r for r in csv.reader(f) if any(str(c).strip() for c in r)]<br \/>\n    id2no, id2item &#061; {}, {}<br \/>\n    for r in rows[1:]:<br \/>\n        ident &#061; str(r[0]).strip()<br \/>\n        no &#061; str(r[1]).strip() if len(r) &gt; 1 else &#034;&#034;<br \/>\n        if not ident or not no:<br \/>\n            continue<br \/>\n        id2no[norm(ident)] &#061; no<br \/>\n        id2item[norm(ident)] &#061; str(r[2]).strip() if len(r) &gt; 2 else &#034;&#034;<br \/>\n    return id2no, id2item<\/p>\n<p>def sample_no_from_name(fname, id2no):<br \/>\n    &#034;&#034;&#034;\u5148\u4ece\u6587\u4ef6\u540d\u91cc\u627e\u6837\u54c1\u53f7&#xff1a;\u6587\u4ef6\u540d\u91cc\u7684\u6570\u5b57\u6bb5\u76f4\u63a5\u547d\u4e2d\u5bf9\u7167\u8868\u7684\u6837\u54c1\u53f7\u5373\u91c7\u7528\u3002<\/p>\n<p>    \u6587\u4ef6\u540d\u8ba4\u4e0d\u51fa\u6765\u4e0d\u7b97\u9519\u2014\u2014\u53ea\u662f\u8fd9\u4e00\u6761\u8d70\u300c\u6309\u74f6\u4f4d\u53cd\u67e5\u300d\u7684\u8def\u5b50&#xff0c;\u4e0d\u7ec8\u6b62\u89e3\u6790\u3002<br \/>\n    &#034;&#034;&#034;<br \/>\n    known &#061; set(id2no.values())<br \/>\n    for m in FILE_ID_RE.findall(fname):<br \/>\n        if m in known:<br \/>\n            return m<br \/>\n    return &#034;&#034;<\/p>\n<p>sample_no_from_name() \u8981\u6c42\u6587\u4ef6\u540d\u91cc\u7684\u6570\u5b57\u80fd\u5728\u5bf9\u7167\u8868\u91cc\u627e\u5230\u624d\u7b97\u6837\u54c1\u53f7\u2014\u2014\u6587\u4ef6\u540d\u91cc\u7684 20261010 \u4e5f\u662f 8 \u4f4d\u6570\u5b57\u5374\u4e0d\u662f\u6837\u54c1\u53f7&#xff0c;\u9760\u8fd9\u6761\u628a\u65e5\u671f\u3001\u6279\u6b21\u53f7\u4e00\u5e76\u6321\u6389\u3002<\/p>\n<p>\u51fa\u5904&#xff1a;run.py \u7684 read_text() \u4e0e read_matrix()&#xff08;\u6587\u4ef6\u4e2d\u90e8&#xff09;<\/p>\n<p>def read_text(path):<br \/>\n    &#034;&#034;&#034;\u6309 utf-8-sig \u2192 gbk \u2192 utf-8 \u4f9d\u6b21\u8bd5&#xff1b;GBK \u6587\u4ef6\u7528 utf-8 \u8bfb\u4f1a\u76f4\u63a5\u629b\u5f02\u5e38&#xff0c;\u4e0d\u662f\u8bfb\u51fa\u4e71\u7801\u3002&#034;&#034;&#034;<br \/>\n    last &#061; None<br \/>\n    for enc in (&#034;utf-8-sig&#034;, &#034;gbk&#034;, &#034;utf-8&#034;):<br \/>\n        try:<br \/>\n            return path.read_text(encoding&#061;enc), enc<br \/>\n        except UnicodeDecodeError as e:<br \/>\n            last &#061; e<br \/>\n    raise last<\/p>\n<p>\u7f16\u7801\u5fc5\u987b\u4f9d\u6b21\u8bd5\u3001\u4e0d\u80fd\u5199\u6b7b utf-8&#xff1a;\u8001\u4eea\u5668 CSV \u5e38\u89c1 GBK&#xff0c;\u7528 utf-8 \u8bfb\u4f1a\u76f4\u63a5\u629b\u5f02\u5e38\u3002<\/p>\n<p>\u51fa\u5904&#xff1a;run.py \u7684 find_header() \u4e0e pick_columns()&#xff08;\u6587\u4ef6\u4e2d\u90e8&#xff09;<\/p>\n<p>def find_header(rows):<br \/>\n    &#034;&#034;&#034;\u627e\u8868\u5934\u884c&#xff1a;\u7b2c\u4e00\u4e2a\u300c\u975e\u7a7a\u5355\u5143\u683c &gt;&#061; 2\u300d\u7684\u884c\u3002<\/p>\n<p>    \u4e0d\u80fd\u5199\u6b7b header&#061;0\u2014\u2014CDS \u5bfc\u51fa\u5e38\u5728\u8868\u5934\u4e0a\u538b\u51e0\u884c\u5bfc\u51fa\u4fe1\u606f&#xff1b;<br \/>\n    \u4e5f\u4e0d\u80fd\u9760\u884c\u53f7\u731c&#xff0c;\u6a21\u677f\u6539\u4e00\u7248\u884c\u53f7\u5c31\u5168\u9519\u3002<br \/>\n    &#034;&#034;&#034;<br \/>\n    for i, r in enumerate(rows):<br \/>\n        if sum(1 for c in r if str(c or &#034;&#034;).strip()) &gt;&#061; 2:<br \/>\n            return i<br \/>\n    return -1<\/p>\n<p>\u8868\u5934\u4e0d\u5199\u6b7b header&#061;0&#xff1a;CDS \u5bfc\u51fa\u5e38\u5728\u8868\u5934\u538b\u51e0\u884c\u4fe1\u606f&#xff0c;\u4e5f\u4e0d\u80fd\u9760\u884c\u53f7\u731c&#xff08;\u6539\u4e00\u7248\u6a21\u677f\u884c\u53f7\u5c31\u5168\u9519&#xff09;\u3002<\/p>\n<p>\u51fa\u5904&#xff1a;run.py \u7684 classify()&#xff08;\u6587\u4ef6\u4e2d\u90e8&#xff09;<\/p>\n<p>def classify(rows, hdr, cols, fname, id2no, id2item, name_no):<br \/>\n    &#034;&#034;&#034;\u5207\u6570\u636e\u884c&#xff0c;\u9010\u884c\u8ba4\u6837\u54c1\u53f7&#xff0c;\u8fd4\u56de (\u7ed3\u679c\u884c\u5217\u8868, \u6302\u8d77\u5217\u8868)\u3002<\/p>\n<p>    \u8ba4\u53f7\u4f18\u5148\u7ea7&#xff1a;\u6587\u4ef6\u540d\u91cc\u7684\u6837\u54c1\u53f7 &gt; \u74f6\u4f4d\u53cd\u67e5\u3002<br \/>\n    \u6587\u4ef6\u540d\u5df2\u7ecf\u8ba4\u51fa\u6765\u4e86&#xff0c;\u8fd9\u4e00\u4efd\u6587\u4ef6\u6574\u6279\u5c31\u662f\u540c\u4e00\u4e2a\u6837\u54c1&#xff0c;\u9010\u884c\u4e0d\u518d\u6311\u74f6\u4f4d\u2014\u2014<br \/>\n    \u8001\u4eea\u5668\u5bfc\u51fa\u7684\u8868\u5e72\u8106\u6ca1\u6709\u74f6\u4f4d\u5217&#xff0c;\u786c\u8981\u6c42\u5b83\u6709&#xff0c;\u6574\u4efd\u6587\u4ef6\u5c31\u767d\u767d\u6302\u8d77\u4e86\u3002<br \/>\n    &#034;&#034;&#034;<br \/>\n    data, suspended &#061; [], []<br \/>\n    for k, r in enumerate(rows[hdr &#043; 1:]):<br \/>\n        cells &#061; [normalize_value(c) for c in r]<br \/>\n        if not any(cells):<br \/>\n            continue<br \/>\n        pos &#061; k &#043; hdr &#043; 2               # Excel \u884c\u53f7&#xff08;1 \u8d77\u7b97&#xff0c;\u8868\u5934\u5360 hdr&#043;1 \u884c&#xff09;<br \/>\n        ident &#061; cell(cells, cols.get(ID_COL)).strip()<br \/>\n        no &#061; name_no or id2no.get(norm(ident), &#034;&#034;)<br \/>\n        if not no:<br \/>\n            suspended.append((fname, f&#034;\u7b2c {pos} \u884c&#034;, f&#034;\u6837\u54c1\u53f7\u5339\u914d\u4e0d\u4e0a&#xff08;\u74f6\u4f4d\u300c{ident}\u300d\u4e0d\u5728\u5bf9\u7167\u8868&#xff09;&#034;))<br \/>\n            continue<br \/>\n        row &#061; {&#034;\u6837\u54c1\u53f7&#034;: no, &#034;\u68c0\u6d4b\u9879\u76ee&#034;: id2item.get(norm(ident), &#034;&#034;),<br \/>\n               &#034;\u4eea\u5668\u6807\u8bc6&#034;: ident or fname, &#034;\u6765\u6e90\u6587\u4ef6&#034;: fname}<br \/>\n        for name, i in cols.items():<br \/>\n            if name in (ID_COL,):<br \/>\n                continue<br \/>\n            row[name] &#061; cell(cells, i)<br \/>\n        data.append(row)<br \/>\n    return data, suspended<\/p>\n<p>no &#061; name_no or id2no.get(norm(ident), &#034;&#034;) \u51b3\u5b9a\u8ba4\u53f7\u4f18\u5148\u7ea7&#xff1a;\u6587\u4ef6\u540d\u8ba4\u51fa\u6765\u5c31\u6574\u6279\u7528\u8fd9\u4e2a\u6837\u54c1\u53f7&#xff0c;\u4e0d\u518d\u9010\u884c\u6311\u74f6\u4f4d\u3002<\/p>\n<p>\u8e29\u8fc7\u7684\u5751&#xff1a;\u7b2c\u4e00\u7248\u628a\u300c\u5fc5\u987b\u6709 \u8fdb\u6837\u74f6\u4f4d \u5217\u300d\u5f53\u524d\u7f6e\u6761\u4ef6&#xff0c;\u4e00\u4efd\u6587\u4ef6\u540d\u5e26\u7740 0000190 \u7684\u8001\u6587\u4ef6\u56e0\u8868\u91cc\u6ca1\u74f6\u4f4d\u5217\u88ab\u6574\u4efd\u6302\u8d77\u3002\u8ba4\u4e0d\u51fa\u6837\u54c1\u53f7\u624d\u6302\u8d77&#xff0c;\u4e0d\u662f\u6ca1\u74f6\u4f4d\u5217\u5c31\u6302\u8d77\u3002<\/p>\n<p>\u4e00\u4efd\u6587\u4ef6\u91cc\u53ef\u80fd\u6df7\u7740\u4e24\u4e2a\u6837\u54c1&#xff08;\u4e00\u6b21\u5e8f\u5217\u8dd1\u5b8c\u5bfc\u6210\u4e00\u4efd\u6c47\u603b&#xff09;&#xff0c;\u5f52\u5806\u6309\u884c\u505a\u3002<\/p>\n<h3>\u7b2c\u4e09\u6b65&#xff1a;\u62fc\u6570\u636e&#xff0c;\u628a\u91cd\u590d\u548c\u5f02\u5e38\u6311\u51fa\u6765<\/h3>\n<p>\u6837\u54c1\u53f7\u8ba4\u51fa\u6765\u540e\u6309\u6837\u54c1\u5f52\u5806&#xff0c;\u540c\u65f6\u5904\u7406\u4e24\u7c7b\u5f02\u5e38&#xff1a;\u540c\u4e00\u6837\u54c1\u51fa\u73b0\u591a\u6761\u7ed3\u679c&#xff08;\u590d\u68c0 \/ \u5e73\u884c\u6837&#xff09;&#xff0c;\u4ee5\u53ca\u7ed3\u679c\u503c\u4e0d\u662f\u7eaf\u6570\u5b57&#xff08;\u672a\u68c0\u51fa \/ ND \/ &lt;0.05&#xff09;\u3002 \u51fa\u5904&#xff1a;run.py \u7684 flag_dupes()&#xff08;\u6587\u4ef6\u4e2d\u90e8&#xff09;<\/p>\n<p>def flag_dupes(data):<br \/>\n    &#034;&#034;&#034;\u540c\u4e00\u6837\u54c1\u53f7 &#043; \u540c\u4e00\u68c0\u6d4b\u9879\u76ee\u51fa\u73b0\u591a\u884c\u65f6\u6807\u8bb0\u51fa\u6765&#xff08;\u590d\u68c0 \/ \u5e73\u884c\u6837&#xff09;&#xff0c;\u4f46\u4e0d\u64c5\u81ea\u53d6\u6570\u3002&#034;&#034;&#034;<br \/>\n    from collections import Counter<br \/>\n    counter &#061; Counter((r[&#034;\u6837\u54c1\u53f7&#034;], r.get(&#034;\u7ec4\u5206&#034;, &#034;&#034;)) for r in data)<br \/>\n    for r in data:<br \/>\n        key &#061; (r[&#034;\u6837\u54c1\u53f7&#034;], r.get(&#034;\u7ec4\u5206&#034;, &#034;&#034;))<br \/>\n        if counter[key] &gt; 1:<br \/>\n            r[&#034;\u91cd\u590d\u6807\u8bb0&#034;] &#061; f&#034;\u540c\u4e00\u6837\u54c1\u540c\u4e00\u7ec4\u5206 {counter[key]} \u6761&#034;<br \/>\n        else:<br \/>\n            r[&#034;\u91cd\u590d\u6807\u8bb0&#034;] &#061; &#034;&#034;<br \/>\n    return data<\/p>\n<p>\u540c\u4e00\u6837\u54c1\u4e24\u6761\u7ed3\u679c\u53ea\u6253\u6807\u3001\u4e0d\u66ff\u4eba\u6311\u4e00\u6761&#xff08;\u8c01\u5bf9\u8c01\u9519\u662f\u4e1a\u52a1\u5224\u65ad&#xff0c;\u6311\u9519\u6bd4\u4e0d\u6311\u66f4\u5371\u9669&#xff09;&#xff1a;<\/p>\n<table>\n<tr>\u52a8\u4f5c\u4e3a\u4ec0\u4e48\u8fd9\u4e48\u5199<\/tr>\n<tbody>\n<tr>\n<td>\u7528 Counter \u6309&#xff08;\u6837\u54c1\u53f7 &#043; \u7ec4\u5206&#xff09;\u8ba1\u6570<\/td>\n<td>\u53ea\u5728\u540c\u4e00\u68c0\u6d4b\u9879\u5185\u7b97\u91cd\u590d&#xff0c;\u4e0d\u540c\u68c0\u6d4b\u9879\u5404\u7b97\u5404\u7684<\/td>\n<\/tr>\n<tr>\n<td>\u91cd\u590d\u53ea\u6807\u8bb0\u3001\u4e0d\u5220<\/td>\n<td>\u590d\u68c0\u7ed3\u679c\u53ef\u80fd\u8981\u7559\u4f5c\u5386\u53f2&#xff0c;\u5220\u4e86\u5c31\u6ca1\u4e86<\/td>\n<\/tr>\n<tr>\n<td>\u7ed3\u679c\u503c\u539f\u6837\u4fdd\u7559&#xff0c;\u4e0d\u8f6c\u6570\u5b57<\/td>\n<td>\u672a\u68c0\u51fa \/ &lt;0.05 \u8f6c\u6210 0 \u6216 NaN \u5c31\u5931\u771f\u4e86<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7ed3\u679c\u5217\u4e0d\u505a\u5355\u4f4d\u6362\u7b97\u3001\u4e0d\u586b\u8865\u7f3a\u5931\u3001\u4e0d\u628a\u300c\u672a\u68c0\u51fa\u300d\u5f53 0\u2014\u2014\u8fd9\u662f\u6570\u636e\u5b8c\u6574\u6027\u5e95\u7ebf&#xff1a;\u4eea\u5668\u62a5\u300c\u672a\u68c0\u51fa\u300d\u548c\u300c\u7ed3\u679c\u4e3a 0\u300d\u662f\u4e24\u56de\u4e8b&#xff0c;\u6df7\u4e00\u8d77\u5165\u5e93\u65f6\u5c31\u5206\u4e0d\u6e05\u4e86\u3002<\/p>\n<p>\u51fa\u5904&#xff1a;run.py \u7684 collect()&#xff08;\u6587\u4ef6\u4e2d\u90e8&#xff09;<\/p>\n<p>        cols &#061; pick_columns(rows[hdr])<br \/>\n        name_no &#061; sample_no_from_name(path.name, id2no)<br \/>\n        # \u4e24\u6761\u8def\u90fd\u8d70\u4e0d\u901a\u624d\u6302\u8d77\u6574\u4efd\u6587\u4ef6&#xff1a;\u6587\u4ef6\u540d\u8ba4\u4e0d\u51fa\u3001\u4e14\u8868\u91cc\u4e5f\u6ca1\u6709\u80fd\u53cd\u67e5\u7684\u74f6\u4f4d\u5217<br \/>\n        if not name_no and ID_COL not in cols:<br \/>\n            suspended.append((path.name, &#034;\u6574\u4e2a\u6587\u4ef6&#034;,<br \/>\n                              f&#034;\u6587\u4ef6\u540d\u8ba4\u4e0d\u51fa\u6837\u54c1\u53f7&#xff0c;\u8868\u91cc\u4e5f\u6ca1\u6709\u300c{ID_COL}\u300d\u5217&#034;))<br \/>\n            continue<br \/>\n        got, susp &#061; classify(rows, hdr, cols, path.name, id2no, id2item, name_no)<br \/>\n        trace.append((path.name, enc, hdr &#043; 1, len(got), len(susp),<br \/>\n                      &#034;\u6587\u4ef6\u540d\u8ba4\u53f7&#034; if name_no else &#034;\u6309\u74f6\u4f4d\u53cd\u67e5&#034;))<\/p>\n<p>collect() \u904d\u5386\u76ee\u5f55&#xff0c;\u6bcf\u4e2a\u6587\u4ef6\u8d70\u4e00\u904d\u300c\u8bfb \u2192 \u627e\u8868\u5934 \u2192 \u8ba4\u53f7 \u2192 \u5f52\u5806\u300d&#xff1b;if not name_no and ID_COL not in cols\u2014\u2014\u4e24\u6761\u8def\u90fd\u4e0d\u901a\u624d\u6302\u8d77\u6574\u4efd\u6587\u4ef6\u3002<\/p>\n<h3>\u7b2c\u56db\u6b65&#xff1a;\u8f93\u51fa&#xff0c;\u4e09\u4efd\u8868\u4e00\u8d77\u843d\u76d8<\/h3>\n<p>\u6700\u540e\u5199\u4e09\u4efd&#xff1a;\u5f52\u5806\u8868&#xff08;\u53ef\u5165\u5e93\u6e05\u5355&#xff09;\u3001\u8ba4\u53f7\u7559\u75d5&#xff08;\u6bcf\u4e2a\u6587\u4ef6\u600e\u4e48\u8ba4\u7684\u53f7&#xff09;\u3001\u6302\u8d77\u6e05\u5355&#xff08;\u54ea\u4e9b\u6ca1\u5bf9\u4e0a\u3001\u4e3a\u4ec0\u4e48&#xff09;\u3002<\/p>\n<p>\u51fa\u5904&#xff1a;run.py \u7684 write_outputs()&#xff08;\u6587\u4ef6\u540e\u4e2d\u90e8&#xff09;<\/p>\n<p>    cols &#061; [&#034;\u6837\u54c1\u53f7&#034;, &#034;\u68c0\u6d4b\u9879\u76ee&#034;, &#034;\u4eea\u5668\u6807\u8bc6&#034;, &#034;\u7ec4\u5206&#034;,<br \/>\n            &#034;\u4fdd\u7559\u65f6\u95f4&#034;, &#034;\u5cf0\u9762\u79ef&#034;, &#034;\u5cf0\u9ad8&#034;, &#034;\u7ed3\u679c&#034;, &#034;\u542b\u91cf(%)&#034;, &#034;\u91cd\u590d\u6807\u8bb0&#034;, &#034;\u6765\u6e90\u6587\u4ef6&#034;]<br \/>\n    df &#061; pd.DataFrame([{c: r.get(c, &#034;&#034;) for c in cols} for r in data], columns&#061;cols)<br \/>\n    out &#061; OUT_DIR \/ OUT_NAME<br \/>\n    df.to_excel(out, index&#061;False, sheet_name&#061;&#034;\u5f52\u5806\u7ed3\u679c&#034;)<br \/>\n    wb &#061; load_workbook(out)<br \/>\n    ws &#061; wb[&#034;\u5f52\u5806\u7ed3\u679c&#034;]<br \/>\n    for j, name in enumerate(cols, 1):      # \u6587\u672c\u5217\u8bbe\u6210\u6587\u672c\u683c\u5f0f&#xff0c;\u524d\u5bfc\u96f6\u624d\u4e0d\u4f1a\u88ab\u5403\u6389<br \/>\n        if name in NUM_COLS:<br \/>\n            continue<br \/>\n        for i in range(2, ws.max_row &#043; 1):<br \/>\n            ws.cell(row&#061;i, column&#061;j).number_format &#061; &#034;&#064;&#034;<br \/>\n    wb.save(out)<\/p>\n<p>\u6837\u54c1\u53f7\u5fc5\u987b\u6309\u6587\u672c\u683c\u5f0f\u5b58&#xff0c;\u5426\u5219 0000182 \u4f1a\u88ab Excel \u5403\u6389\u524d\u5bfc\u96f6\u53d8\u6210 182&#xff0c;\u8ddf LIMS \u7f16\u53f7\u5c31\u5bf9\u4e0d\u4e0a\u3002\u505a\u6cd5&#xff1a;pandas \u5148\u5199\u51fa\u6587\u4ef6&#xff0c;\u518d load_workbook \u6253\u5f00\u3001\u628a\u975e\u6570\u503c\u5217\u8bbe\u6210 &#034;&#064;&#034; \u540e save&#xff0c;\u591a\u4e00\u6b21\u8bfb\u5199\u6362\u524d\u5bfc\u96f6\u4e0d\u4e22\u3002<\/p>\n<p>\u51fa\u5904&#xff1a;run.py \u7684 main()&#xff08;\u6587\u4ef6\u672b\u5c3e&#xff09;<\/p>\n<p>    data, trace, suspended, files &#061; collect(id2no, id2item)<br \/>\n    data &#061; flag_dupes(data)<br \/>\n    print(f&#034;\u626b\u63cf\u6587\u4ef6 {len(files)} \u4e2a \u2192 \u5f52\u5806 {len(data)} \u884c \/ \u6302\u8d77 {len(suspended)} \u6761&#034;)<\/p>\n<p>    out &#061; write_outputs(data, trace, suspended)<br \/>\n    print(f&#034;\u5df2\u751f\u6210&#xff1a;{out.name}&#034;)<br \/>\n    ok &#061; verify(data, trace, suspended)<\/p>\n<p>run.py \u8fd8\u5e26\u4e00\u5c42\u5de5\u7a0b\u5916\u58f3&#xff1a;\u7f3a\u4f9d\u8d56\u81ea\u52a8\u4ece\u6e05\u534e\u6e90\u88c5\u3001\u6bcf\u6b21\u5f80 source\/run_log.txt \u8ffd\u52a0\u65e5\u5fd7&#xff08;\u5f00\u5934\u8bb0\u8fd0\u884c\u4e3b\u673a\u4e0e IP&#xff09;\u3001\u751f\u6210\u540e\u81ea\u52a8\u56de\u8bfb\u65ad\u8a00\u6253\u5370 OK \/ FAIL\u3002\u4e0d\u5f71\u54cd\u4e3b\u7ebf&#xff0c;\u4e0d\u5c55\u5f00\u3002<\/p>\n<h3>\u5c0f\u7ed3<\/h3>\n<p>\u628a\u4eea\u5668\u6570\u636e\u5bf9\u63a5\u8fdb LIMS&#xff0c;\u6700\u524d\u9762\u90a3\u4e00\u6b65\u4e0d\u662f\u8fde\u63a5\u53e3&#xff0c;\u662f\u628a\u4eea\u5668\u5410\u51fa\u6765\u7684\u4e1c\u897f\u7ffb\u8bd1\u6210\u5b9e\u9a8c\u5ba4\u8ba4\u5f97\u7684\u6837\u54c1\u53f7\u3002\u8fd9\u7bc7\u7684\u56db\u6b65\u89e3\u51b3\u7684\u5c31\u662f\u5b83&#xff1a;<\/p>\n<ul>\n<li>\u8ba4\u53f7\u6709\u4f18\u5148\u7ea7&#xff1a;\u6587\u4ef6\u540d\u4f18\u5148&#xff0c;\u8ba4\u4e0d\u51fa\u6309\u300c\u8fdb\u6837\u74f6\u4f4d\u300d\u53cd\u67e5\u5916\u7f6e\u5bf9\u7167\u8868&#xff1b;<\/li>\n<li>\u4e00\u4efd\u6587\u4ef6\u53ef\u80fd\u6df7\u591a\u4e2a\u6837\u54c1&#xff0c;\u5f52\u5806\u6309\u884c\u505a&#xff1b;<\/li>\n<li>\u540c\u4e00\u6837\u54c1\u591a\u6761\u7ed3\u679c\u53ea\u6807\u8bb0\u3001\u4e0d\u64c5\u81ea\u53d6\u6570&#xff1b;<\/li>\n<li>\u8ba4\u4e0d\u51fa\u7684\u6574\u884c\u6302\u8d77\u3001\u5199\u660e\u539f\u56e0&#xff0c;\u4e0d\u731c\u3001\u4e0d\u5c31\u8fd1\u8865&#xff1b;<\/li>\n<li>\u7ed3\u679c\u975e\u6570\u503c&#xff08;\u672a\u68c0\u51fa \/ ND \/ &lt;0.05&#xff09;\u539f\u6837\u4fdd\u7559&#xff0c;\u7edd\u4e0d\u5f53 0\u3002<\/li>\n<\/ul>\n<p>\u5bf9\u5f97\u4e0a\u3001\u7559\u4e86\u75d5\u3001\u6302\u8d77\u7684\u4e5f\u6807\u6e05\u4e86&#xff0c;\u518d\u8c08\u5165\u5e93\u6216\u63a5 LIMS \u91c7\u96c6\u624d\u4e0d\u5bb9\u6613\u51fa\u5c94\u5b50\u3002<\/p>\n<h3>\u5b8c\u6574\u6e90\u7801<\/h3>\n<p>\u5b8c\u6574\u53ef\u8dd1\u793a\u4f8b&#xff08;\u542b\u9020\u6570\u636e\u811a\u672c\u3001\u5bf9\u7167\u8868\u6a21\u677f\u3001\u56de\u8bfb\u65ad\u8a00&#xff09;&#xff1a;<\/p>\n<p>huang_jianhua0101\/examples &#8211; Gitee.com<\/p>\n<h3>\u5173\u4e8e\u6211<\/h3>\n<p>\u5728\u5b9e\u9a8c\u5ba4\u4e00\u7ebf\u5f85\u4e86 13 \u5e74&#xff08;9 \u5e74\u5236\u836f &#043; 4 \u5e74\u7b2c\u4e09\u65b9\u68c0\u6d4b&#xff09;&#xff0c;\u505a\u7684\u4e00\u76f4\u662f\u5b9e\u9a8c\u5ba4\u4fe1\u606f\u5316\u3002\u505a\u8fc7 STARLIMS \u7684\u7532\u65b9 PM\u2014\u2014\u4e00\u671f\u3001\u4e8c\u671f\u4e24\u8f6e\u4e0a\u7ebf\u90fd\u7531\u6211\u4e3b\u5bfc&#xff08;\u62db\u6807\u5230 3Q \u9a8c\u8bc1\u5230\u9a8c\u6536\u5168\u6d41\u7a0b&#xff09;&#xff1b;\u4e5f\u5728\u7cfb\u7edf\u4e0a\u81ea\u5df1\u505a\u8fc7\u4e8c\u6b21\u5f00\u53d1\u2014\u2014\u628a\u7eb8\u8d28\u7684\u8d26\u53f7\u7533\u8bf7\u6d41\u7a0b\u642c\u5230\u7ebf\u4e0a\u8dd1&#xff1b;\u5728 STARLIMS \u4e4b\u524d\u8fd8\u6709 6 \u5e74\u591a CS \u67b6\u6784 LIMS \u7684\u4f7f\u7528\u4e0e\u8fd0\u7ef4\u7ecf\u9a8c&#xff08;\u5176\u4e2d\u4e00\u6bb5\u7ecf Citrix \u8fdc\u7a0b\u63a5\u5165&#xff09;\u3002\u73b0\u5728\u4e13\u505a\u5b9e\u9a8c\u5ba4\u91cc\u90a3\u4e9b\u91cd\u590d\u52b3\u52a8&#xff1a;\u62a5\u8868\u81ea\u52a8\u751f\u6210\u3001\u4eea\u5668\u6570\u636e\u5bf9\u63a5\u3001\u5408\u89c4\u6587\u6863\u6279\u91cf\u5904\u7406\u3002<\/p>\n<p>\u672c\u79d1\u7269\u7406\u5316\u5b66\u3001\u7855\u58eb\u8ba1\u7b97\u673a\u5316\u5b66&#xff0c;\u65e2\u542c\u5f97\u61c2 QA \u8bf4\u7684\u53d8\u66f4\u63a7\u5236&#xff0c;\u4e5f\u770b\u5f97\u61c2\u4eea\u5668\u5bfc\u51fa\u7684\u539f\u59cb\u6570\u636e\u957f\u4ec0\u4e48\u6837\u3002SOP\u3001\u504f\u5dee\u3001OOS\u3001\u6837\u672c\u6d41\u8f6c\u8fd9\u4e9b\u8bcd&#xff0c;\u4e0d\u7528\u4f60\u89e3\u91ca\u3002<\/p>\n<p>\u73b0\u5728\u4e3b\u8981\u505a\u8fd9\u51e0\u7c7b&#xff1a; &#8211; \u68c0\u9a8c\u62a5\u544a\u4e0e\u53f0\u8d26\u6279\u91cf\u751f\u6210&#xff1a;\u6a21\u677f\u4e0d\u52a8&#xff0c;\u6570\u636e\u81ea\u52a8\u586b&#xff0c;\u683c\u5f0f\u4e00\u6b65\u4e0d\u9519 &#8211; \u4eea\u5668\u6570\u636e\u5bf9\u63a5&#xff1a;\u8272\u8c31\u3001\u5149\u8c31\u3001\u9176\u6807\u4eea\u5bfc\u51fa\u7684\u539f\u59cb\u6587\u4ef6&#xff0c;\u89e3\u6790\u3001\u6e05\u6d17\u3001\u5165\u5e93\u3001\u8f6c\u6210\u62a5\u8868 &#8211; \u5408\u89c4\u6587\u6863\u81ea\u52a8\u5316&#xff1a;SOP\u3001\u9a8c\u8bc1\u65b9\u6848\u3001\u6279\u8bb0\u5f55\u8fd9\u7c7b\u91cd\u590d\u6587\u6863\u7684\u6279\u91cf\u751f\u6210\u4e0e\u6838\u5bf9 &#8211; \u6570\u636e\u5b8c\u6574\u6027\u6838\u67e5&#xff1a;\u6309 ALCOA&#043; \u9010\u6761\u6838\u5bf9\u539f\u59cb\u6570\u636e\u4e0e\u8bb0\u5f55\u662f\u5426\u5bf9\u5f97\u4e0a<\/p>\n<p>\u624b\u91cc\u6709\u8fd9\u7c7b\u6d3b\u513f\u5361\u7740&#xff0c;\u6216\u8005\u53ea\u662f\u60f3\u95ee\u95ee\u80fd\u4e0d\u80fd\u81ea\u52a8\u5316&#xff0c;\u90fd\u6b22\u8fce\u8bc4\u8bba\u533a\u804a&#xff0c;\u5148\u628a\u95ee\u9898\u8bf4\u6e05\u695a\u518d\u8c08\u600e\u4e48\u505a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8272\u8c31\u5de5\u4f5c\u7ad9\u8dd1\u5b8c\u4e00\u6279\u6837&#xff0c;\u5bfc\u51fa\u4e00\u5806\u7ed3\u679c\u6587\u4ef6&#xff1b;\u8981\u8fdb LIMS&#xff0c;\u7b2c\u4e00\u6b65\u5c31\u5361\u5728\u300c\u8fd9\u4e2a\u6587\u4ef6\u3001\u8fd9\u4e00\u884c\u662f\u8c01\u7684\u6837\u54c1\u300d\u3002\u6587\u4ef6\u540d\u6709\u7684\u5e26\u6837\u54c1\u53f7&#xff0c;\u6709\u7684\u53ea\u6709\u65f6\u95f4\u6233&#xff0c;\u6837\u54c1\u53f7\u85cf\u5728\u300c\u8fdb\u6837\u74f6\u4f4d\u300d\u5217\u91cc&#xff0c;\u8fd8\u5f97\u5bf9\u7740\u53f0\u8d26\u4e00\u6761\u6761\u7ffb\u3002\u4e00\u5929\u51e0\u5341\u4e2a\u6587\u4ef6&#xff0c;\u624b\u5de5\u5bf9\u4e0b\u6765\u53c8\u6162\u53c8\u5bb9\u6613\u9519\u3002<br \/>\n\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898&#xff0c;Python \u63d0\u4f9b\u4e86 pandas \u548c openpyxl \u8fd9\u5957\u7ec4\u5408&#xff1a;\u8bfb\u6587\u4ef6\u3001\u6309\u5217\u540d\u53d6\u6570\u3001\u6309\u8868\u5f52\u5806\u3001\u5199\u51fa E<\/p>\n","protected":false},"author":2,"featured_media":115233,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[13100,13099,722,81,190],"topic":[],"class_list":["post-115234","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-lims","tag-13099","tag-ecmascript","tag-python","tag-190"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4eea\u5668\u6570\u636e\u8981\u5bf9\u63a5\u8fdb LIMS\uff0c\u7ed3\u679c\u6587\u4ef6\u548c\u6837\u54c1\u53f7\u600e\u4e48\u81ea\u52a8\u5bf9\u4e0a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/115234.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4eea\u5668\u6570\u636e\u8981\u5bf9\u63a5\u8fdb LIMS\uff0c\u7ed3\u679c\u6587\u4ef6\u548c\u6837\u54c1\u53f7\u600e\u4e48\u81ea\u52a8\u5bf9\u4e0a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u8272\u8c31\u5de5\u4f5c\u7ad9\u8dd1\u5b8c\u4e00\u6279\u6837&#xff0c;\u5bfc\u51fa\u4e00\u5806\u7ed3\u679c\u6587\u4ef6&#xff1b;\u8981\u8fdb LIMS&#xff0c;\u7b2c\u4e00\u6b65\u5c31\u5361\u5728\u300c\u8fd9\u4e2a\u6587\u4ef6\u3001\u8fd9\u4e00\u884c\u662f\u8c01\u7684\u6837\u54c1\u300d\u3002\u6587\u4ef6\u540d\u6709\u7684\u5e26\u6837\u54c1\u53f7&#xff0c;\u6709\u7684\u53ea\u6709\u65f6\u95f4\u6233&#xff0c;\u6837\u54c1\u53f7\u85cf\u5728\u300c\u8fdb\u6837\u74f6\u4f4d\u300d\u5217\u91cc&#xff0c;\u8fd8\u5f97\u5bf9\u7740\u53f0\u8d26\u4e00\u6761\u6761\u7ffb\u3002\u4e00\u5929\u51e0\u5341\u4e2a\u6587\u4ef6&#xff0c;\u624b\u5de5\u5bf9\u4e0b\u6765\u53c8\u6162\u53c8\u5bb9\u6613\u9519\u3002 \u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898&#xff0c;Python \u63d0\u4f9b\u4e86 pandas \u548c openpyxl \u8fd9\u5957\u7ec4\u5408&#xff1a;\u8bfb\u6587\u4ef6\u3001\u6309\u5217\u540d\u53d6\u6570\u3001\u6309\u8868\u5f52\u5806\u3001\u5199\u51fa E\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/115234.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-11T07:16:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261011071658-6acb37ea055e5.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/115234.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/115234.html\",\"name\":\"\u4eea\u5668\u6570\u636e\u8981\u5bf9\u63a5\u8fdb LIMS\uff0c\u7ed3\u679c\u6587\u4ef6\u548c\u6837\u54c1\u53f7\u600e\u4e48\u81ea\u52a8\u5bf9\u4e0a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-11T07:16:59+00:00\",\"dateModified\":\"2026-10-11T07:16:59+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/115234.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/115234.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/115234.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4eea\u5668\u6570\u636e\u8981\u5bf9\u63a5\u8fdb LIMS\uff0c\u7ed3\u679c\u6587\u4ef6\u548c\u6837\u54c1\u53f7\u600e\u4e48\u81ea\u52a8\u5bf9\u4e0a\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4eea\u5668\u6570\u636e\u8981\u5bf9\u63a5\u8fdb LIMS\uff0c\u7ed3\u679c\u6587\u4ef6\u548c\u6837\u54c1\u53f7\u600e\u4e48\u81ea\u52a8\u5bf9\u4e0a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/115234.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4eea\u5668\u6570\u636e\u8981\u5bf9\u63a5\u8fdb LIMS\uff0c\u7ed3\u679c\u6587\u4ef6\u548c\u6837\u54c1\u53f7\u600e\u4e48\u81ea\u52a8\u5bf9\u4e0a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u8272\u8c31\u5de5\u4f5c\u7ad9\u8dd1\u5b8c\u4e00\u6279\u6837&#xff0c;\u5bfc\u51fa\u4e00\u5806\u7ed3\u679c\u6587\u4ef6&#xff1b;\u8981\u8fdb LIMS&#xff0c;\u7b2c\u4e00\u6b65\u5c31\u5361\u5728\u300c\u8fd9\u4e2a\u6587\u4ef6\u3001\u8fd9\u4e00\u884c\u662f\u8c01\u7684\u6837\u54c1\u300d\u3002\u6587\u4ef6\u540d\u6709\u7684\u5e26\u6837\u54c1\u53f7&#xff0c;\u6709\u7684\u53ea\u6709\u65f6\u95f4\u6233&#xff0c;\u6837\u54c1\u53f7\u85cf\u5728\u300c\u8fdb\u6837\u74f6\u4f4d\u300d\u5217\u91cc&#xff0c;\u8fd8\u5f97\u5bf9\u7740\u53f0\u8d26\u4e00\u6761\u6761\u7ffb\u3002\u4e00\u5929\u51e0\u5341\u4e2a\u6587\u4ef6&#xff0c;\u624b\u5de5\u5bf9\u4e0b\u6765\u53c8\u6162\u53c8\u5bb9\u6613\u9519\u3002 \u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898&#xff0c;Python \u63d0\u4f9b\u4e86 pandas \u548c openpyxl \u8fd9\u5957\u7ec4\u5408&#xff1a;\u8bfb\u6587\u4ef6\u3001\u6309\u5217\u540d\u53d6\u6570\u3001\u6309\u8868\u5f52\u5806\u3001\u5199\u51fa E","og_url":"https:\/\/www.wsisp.com\/helps\/115234.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-11T07:16:59+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261011071658-6acb37ea055e5.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/115234.html","url":"https:\/\/www.wsisp.com\/helps\/115234.html","name":"\u4eea\u5668\u6570\u636e\u8981\u5bf9\u63a5\u8fdb LIMS\uff0c\u7ed3\u679c\u6587\u4ef6\u548c\u6837\u54c1\u53f7\u600e\u4e48\u81ea\u52a8\u5bf9\u4e0a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-11T07:16:59+00:00","dateModified":"2026-10-11T07:16:59+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/115234.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/115234.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/115234.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4eea\u5668\u6570\u636e\u8981\u5bf9\u63a5\u8fdb LIMS\uff0c\u7ed3\u679c\u6587\u4ef6\u548c\u6837\u54c1\u53f7\u600e\u4e48\u81ea\u52a8\u5bf9\u4e0a"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/115234","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=115234"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/115234\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/115233"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=115234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=115234"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=115234"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=115234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}