new_sanwei
parent
70055502e4
commit
abbef53bc3
|
|
@ -509,6 +509,8 @@ class AutoLayout:
|
||||||
barcode_mask = ori_library_df['indexi5i7'].str.len() != 16
|
barcode_mask = ori_library_df['indexi5i7'].str.len() != 16
|
||||||
ori_library_df.loc[barcode_mask, 'indexi5i7'] = ori_library_df.loc[barcode_mask, 'indexi5'].str[-8:] + \
|
ori_library_df.loc[barcode_mask, 'indexi5i7'] = ori_library_df.loc[barcode_mask, 'indexi5'].str[-8:] + \
|
||||||
ori_library_df.loc[barcode_mask, 'indexi7'].str[-8:]
|
ori_library_df.loc[barcode_mask, 'indexi7'].str[-8:]
|
||||||
|
ori_library_df.loc[barcode_mask, 'indexi5'] = ori_library_df.loc[barcode_mask, 'indexi5'].str[-8:]
|
||||||
|
ori_library_df.loc[barcode_mask, 'indexi7'] = ori_library_df.loc[barcode_mask, 'indexi7'].str[-8:]
|
||||||
|
|
||||||
ori_library_df['note'] = ''
|
ori_library_df['note'] = ''
|
||||||
ori_library_df.loc[~numeric_mask, 'note'] = 'data_needed 列非数字'
|
ori_library_df.loc[~numeric_mask, 'note'] = 'data_needed 列非数字'
|
||||||
|
|
@ -749,11 +751,16 @@ class AutoLayout:
|
||||||
二次拆分=library,
|
二次拆分=library,
|
||||||
客户=library_df['companynamea'].values[0],
|
客户=library_df['companynamea'].values[0],
|
||||||
文库结构=library_df['classification'].values[0],
|
文库结构=library_df['classification'].values[0],
|
||||||
打折前=library_df['orderdatavolume'].sum()
|
打折前=library_df['orderdatavolume'].sum(),
|
||||||
|
建库类型=library_df['librarytype'].values[0],
|
||||||
|
文库备注=library_df['customerremarks'].values[0],
|
||||||
|
测序类型=library_df['seqtype'].values[0],
|
||||||
|
下单备注=library_df['orderremarks'].values[0],
|
||||||
))
|
))
|
||||||
df_sum = pd.DataFrame(sum_list)
|
df_sum = pd.DataFrame(sum_list)
|
||||||
res_df = pd.concat([df, df_sum], axis=1)
|
res_df = pd.concat([df, df_sum], axis=1)
|
||||||
res_df = pd.concat([pd.DataFrame(self.items), res_df]).reset_index(drop=True)
|
res_df = pd.concat([pd.DataFrame(self.items), res_df]).reset_index(drop=True)
|
||||||
|
res_df['id'] = res_df['id'].astype(str)
|
||||||
res_df.to_excel(writer, sheet_name=chipname, index=False)
|
res_df.to_excel(writer, sheet_name=chipname, index=False)
|
||||||
chip_loc += 1
|
chip_loc += 1
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue