We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a69221d commit 62b9fd2Copy full SHA for 62b9fd2
src/grabplddt.py
@@ -7,7 +7,7 @@
7
for struct in glob.glob(path):
8
all_structs[struct] = AFDB_tools.descr(struct)
9
#unpack scipy stats describe object into a dictionary
10
- all_structs[struct] = { k:v for k,v in zip( ['nobs', 'minmax', 'mean', 'variance', 'skewness', 'kurtosis'], [ float(x) for x in list(all_structs[struct])] ) }
+ all_structs[struct] = { k:v for k,v in zip( ['nobs', 'minmax', 'mean', 'variance', 'skewness', 'kurtosis'], [ float(x) if type(x) is not tuple else (float(x[0]),float(x[1])) for x in list(all_structs[struct])] ) }
11
#write to log file
12
with open(snakemake.log[0], 'w' ) as lfout:
13
lfout.write(str(all_structs))
0 commit comments