'scipy lib is used to compute p-value of Ttest
scipy: http://www.scipy.org/
t-test: http://en.wikipedia.org/wiki/Student\'s_t-test'

def getTtestPvalue(self, fs_dict1, fs_dict2, paired=None):

    try:
        from scipy import stats
        import numpy as np
    except ImportError:
        print 'No    python    scipy/numpy    library    installed!'
        return None
    ret = []
    s1 = self._process_files(fs_dict1, self._get_list_self, merge=False)
    s2 = self._process_files(fs_dict2, self._get_list_self, merge=False)
    for line in range(len(s1)):
        tmp = []
        if (type(s1[line]) != list):
            tmp = s1[line]
        else:
            if (len(s1[line][0]) < 2):
                continue
            for col in range(len(s1[line])):
                avg1 = self._get_list_avg(s1[line][col])
                avg2 = self._get_list_avg(s2[line][col])
                sample1 = np.array(s1[line][col])
                sample2 = np.array(s2[line][col])
                warnings.simplefilter('ignore', RuntimeWarning)
                if paired:
                    (t, p) = stats.ttest_rel(sample1, sample2)
                else:
                    (t, p) = stats.ttest_ind(sample1, sample2)
                flag = '+'
                if (float(avg1) > float(avg2)):
                    flag = '-'
                tmp.append((flag + ('%.3f' % (1 - p))))
            tmp = '|'.join(tmp)
        ret.append(tmp)
    return ret
