Skip to content

Commit

Permalink
binomial test per gene return double side test measure
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhe Cui committed Mar 22, 2019
1 parent 032a99b commit 78222f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions computation_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,8 @@ def ttest_expression_per_gene(gene_types, exp_data, chromosome, start_seq, end_s
}]

if p_value <= 0.1:
corr_obj = build_exp_singlegene_obj('Binomial test difference in proportions', 'expression', 'expression', True, data_source_one,
data_source_two, ttest_value, pvalue=p_value, gene=row['gene'], data=data)
corr_obj = build_exp_singlegene_obj('Binomial test difference in proportions', 'expression', 'expression', True, data_source_one,
data_source_two, abs(ttest_value), pvalue=p_value, gene=row['gene'], data=data)
ttest_results.append(corr_obj)

ttest_results = sorted(ttest_results, key=lambda x: x['value'],
Expand Down

0 comments on commit 78222f7

Please sign in to comment.