-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDifferentialExpression.py
More file actions
48 lines (40 loc) · 1.87 KB
/
Copy pathDifferentialExpression.py
File metadata and controls
48 lines (40 loc) · 1.87 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
print("Uno, dos, probando.")
# import matplotlib as mpl
# mpl.use('Agg')
import sys
import os
tasklib_path = os.path.dirname(os.path.realpath(sys.argv[0]))
# sys.path.append(tasklib_path)
sys.path.append(tasklib_path + "/ccal")
import ccal as ccal
from modalities import differential_gene_expression
import pandas as pd
from ccal.mathematics.information import information_coefficient
from ccal.match.match.make_match_panel import make_match_panel
# from match.make_match_panel import make_match_panel
# from ccal.match.match.make_summary_match_panel import make_summary_match_panel
# from ccal.match.match.support.support.df import simulate_df
# from ccal.match.match.support.support.s import simulate_s
# n=10
# target = simulate_s(n, index_prefix='Sample ')
# features_continuous = simulate_df(n * 2, n, index_prefix='Feature ', column_prefix='Sample ')
# print(features_continuous)
# match_scores_for_continuous = make_match_panel(
# target, features_continuous, n_features=3, n_samplings=3, n_permutations=3)
gene_expression = pd.read_table('data/kras_isogenic_vs_imortalized.gct', index_col='Name', skiprows=[0, 1]).drop('Description', 1)
gene_expression = gene_expression.iloc[0:2000]
phenotypes = pd.Series(data=[1, 1, 1, 1, 1, 1, -1, -1, -1, -1])
phenotypes.index = gene_expression.columns
#differential_gene_expression
# phenotypes,
# gene_expression,
# output_filename,
# max_number_of_genes_to_show=20,
# number_of_permutations=10,
# title=None,
# random_seed=RANDOM_SEED
import cuzcatlan as cusca
# differential_gene_expression(phenotypes=phenotypes, gene_expression=gene_expression, output_filename='test',
# title="Test", function=cusca.custom_pearson, number_of_permutations=2)
differential_gene_expression(phenotypes=phenotypes, gene_expression=gene_expression, output_filename='test',
title="Test", number_of_permutations=2)