Skip to content

Commit

Permalink
On branch conditional_independent
Browse files Browse the repository at this point in the history
minor change
  • Loading branch information
yil8 committed Oct 4, 2013
1 parent f1d6682 commit 1b61be4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
1 change: 1 addition & 0 deletions pyloh/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
BURN_IN = 10
EPS = np.finfo(float).eps

SIGMA = 0.01
ERR = 0.01
EMPIRI_BAF = 0.485
EMPIRI_AAF = 1 - EMPIRI_BAF
Expand Down
1 change: 1 addition & 0 deletions pyloh/model/poisson_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def preprocess(self):
config_parameters['genotypes_tumor_num'] = get_genotypes_tumor_num(self.allele_number_max)
config_parameters['alleletypes_tumor'] = get_alleletypes_tumor(self.allele_number_max)
config_parameters['copynumber_tumor'] = get_copynumber_tumor(self.allele_number_max)
config_parameters['copynumber_tumor_num'] = get_copynumber_tumor_num(self.allele_number_max)
config_parameters['MU_T'] = get_MU_T(self.allele_number_max)

self.config_parameters = config_parameters
Expand Down
22 changes: 15 additions & 7 deletions pyloh/model/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,24 @@ def get_alleletypes_tumor(allele_number_max):

return alleletypes_tumor

#def get_copynumber_tumor(allele_number_max):
# copynumber_tumor = []
#
# for B_num in range(0, allele_number_max + 1):
# for A_num in range(0, allele_number_max + 1):
# c_T = A_num + B_num
#
# copynumber_tumor.append(c_T)
#
# return copynumber_tumor

def get_copynumber_tumor(allele_number_max):
copynumber_tumor = []

for B_num in range(0, allele_number_max + 1):
for A_num in range(0, allele_number_max + 1):
c_T = A_num + B_num

copynumber_tumor.append(c_T)
return range(0, allele_number_max*2 + 1)

def get_copynumber_tumor_num(allele_number_max):

return copynumber_tumor
return allele_number_max*2

def get_MU_T(allele_number_max):
empiri_BAF = constants.EMPIRI_BAF
Expand Down

0 comments on commit 1b61be4

Please sign in to comment.