Mercurial > repos > iuc > heinz
diff heinz_scoring.py @ 1:5f589c91566e draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/heinz commit a4b0969b33a68a0ea9ba12291f6694aec24f13ed
| author | iuc |
|---|---|
| date | Tue, 30 Oct 2018 18:57:02 -0400 |
| parents | e41ec5af7472 |
| children |
line wrap: on
line diff
--- a/heinz_scoring.py Thu Aug 02 11:57:44 2018 -0400 +++ b/heinz_scoring.py Tue Oct 30 18:57:02 2018 -0400 @@ -85,10 +85,7 @@ # Calculate the scores input_pvalues = pd.read_csv(args.nodes, sep='\t', names=['node', 'pvalue']) input_pvalues.loc[:, 'score'] = input_pvalues.pvalue.apply(lambda x: - (alpha - 1) * - (np.log(x) - - np.log( - p_threshold))) + (alpha - 1) * (np.log(x) - np.log(p_threshold))) # print(input_pvalues.loc[:, ['node', 'score']]) input_pvalues.loc[:, ['node', 'score']].to_csv(args.output, sep='\t', index=False, header=False)
