-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathahrdQuickComparison.py
More file actions
33 lines (21 loc) · 887 Bytes
/
Copy pathahrdQuickComparison.py
File metadata and controls
33 lines (21 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
'''
@auther: Samaneh Jozashoori
'''
import pandas as pd
import numpy as np
import matplotlib.pylab as plt
from pandas.tools.plotting import scatter_matrix
from matplotlib.backends.backend_pdf import PdfPages
file = pd.read_excel(pd.ExcelFile("/home/samaneh/AHRD/outputs/xlsx/test_evaluator_output_both_tair10_1.xlsx"))
colnames = pd.Series(["AHRD Score","Tair Score","SwissProt Score","Trembl Score"])
tairColnames = file.ix[2]
tairRownames=pd.Series(range(1,(len(file)-2)))
file = file.rename(columns=tairColnames).drop(file.index[:3])
file.index = tairRownames
file = file["Evaluation-Score"]
file.columns = colnames
file = file.astype(float)
################mean calculation#######################
tairMeanList = []
tairMeanList.append([file['AHRD Score'].mean(), file['Tair Score'].mean(), file['SwissProt Score'].mean(), file['Trembl Score'].mean()])
print tairMeanList