6 lines
391 B
Python
6 lines
391 B
Python
|
|
# pos['Drug_Detail'] = pos.apply(lambda x: '|'.join(
|
||
|
|
# ['[[ %s ]]%s' % (spdrug, self.database['drug_mechanism'].get(spdrug.upper(), '')) for spdrug in
|
||
|
|
# re.split(" \+ |,", x['药物中文名'])]), axis=1)
|
||
|
|
|
||
|
|
# neg_group = neg.groupby(['Chr', 'Start', 'End']).agg(lambda x: x.tolist()).reset_index()
|
||
|
|
# neg_res = neg_group.set_index(['Chr', 'Start', 'End']).to_dict(orient='index')
|