-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshort.py
More file actions
21 lines (19 loc) · 887 Bytes
/
short.py
File metadata and controls
21 lines (19 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
data = {'Megahit' : np.random.normal(loc = 0, size = 10),
'plass' : np.random.normal(loc = 0, size = 10),
'location' : ['illinois', 'illinois', 'illinois', 'Japan', 'Japan', 'Japan', 'Singapur', 'Singapur', 'Singapur', 'Singapur'],
'sample': np.array(range(1,11))}
df = pd.DataFrame(data)
print(df)
df.boxplot(by='location')
plt.show()
'''
from glob import glob
for i, f in enumerate(glob(r"D:\EMD\9233\**.fsc")):
f = f.replace('\\', '\\\\')
if not f.endswith("masked.fsc"):
print('MRCImage<DOUBLE> tmp{} = MRCImage<DOUBLE>::readAs("{}");'.format(i, f.replace(".fsc",".mrc")))
print('writeFSC(origMasked(), tmp{}()*Mask(), "{}");'.format(i,f.replace(".fsc", "_masked.fsc")))
print('tmp{}.writeAs<float>("{}");'.format(i, f.replace(".fsc", "_masked.mrc")))'''