mirror of
https://github.com/Priyatham-sai-chand/compara-deep-learning.git
synced 2026-10-05 08:11:34 -07:00
16 lines
262 B
Python
16 lines
262 B
Python
|
|
import pandas
|
||
|
|
import gc
|
||
|
|
|
||
|
|
|
||
|
|
ls=[]
|
||
|
|
ld=[]
|
||
|
|
def list_dict_genomes(a,n):
|
||
|
|
for x in a:
|
||
|
|
ldg={}
|
||
|
|
uc=list(x["gene_id"])
|
||
|
|
for i in range(len(uc)):
|
||
|
|
ldg[uc[i]]=i
|
||
|
|
ls.append(uc)
|
||
|
|
ld.append(ldg)
|
||
|
|
return ls,ld
|