comparison mirbase_functions.py @ 33:77ba8dde6fb7 draft

Uploaded
author glogobyte
date Fri, 22 Oct 2021 19:34:27 +0000
parents 47232a73a46b
children 66e4d57f11c9
comparison
equal deleted inserted replaced
32:5d232330e81f 33:77ba8dde6fb7
211 # Correction of metrics due to the collapsing and removing of duplicates for the production of Database 211 # Correction of metrics due to the collapsing and removing of duplicates for the production of Database
212 for y in sorted_uni_arms: 212 for y in sorted_uni_arms:
213 counts=0 213 counts=0
214 seqs=0 214 seqs=0
215 for x in collapsed_mirnas: 215 for x in collapsed_mirnas:
216 if y[0]==x[2].split("_")[0]: 216 if y[0] in x[2].split("_")[0]:
217 counts+=int(x[0].split("-")[1]) 217 counts+=int(x[0].split("-")[1])
218 seqs+=1 218 seqs+=1
219 219
220 y[1]=seqs 220 y[1]=seqs
221 y[2]=counts 221 y[2]=counts