Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
PayamDiba committed Jun 27, 2020
1 parent f343735 commit bb84519
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
27 changes: 21 additions & 6 deletions SERGIO/gene.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,29 @@ def __init__(self, geneID, geneType, binID = -1):
self.ss_S_ = 0 #This is the steady state concentration of Spliced mRNA

def append_Conc (self, currConc):
if currConc < 0:
currConc = 0
self.Conc.append(currConc)
if isinstance(currConc, list):
if currConc[0] < 0:
self.Conc.append([0])
else:
self.Conc.append(currConc)
else:
if currConc < 0:
self.Conc.append(0)
else:
self.Conc.append(currConc)


def append_Conc_S (self, currConc):
if currConc < 0:
currConc = 0
self.Conc_S.append(currConc)
if isinstance(currConc, list):
if currConc[0] < 0:
self.Conc_S.append([0])
else:
self.Conc_S.append(currConc)
else:
if currConc < 0:
self.Conc_S.append(0)
else:
self.Conc_S.append(currConc)

def append_dConc (self, currdConc):
self.dConc.append(currdConc)
Expand Down
2 changes: 1 addition & 1 deletion SERGIO/sergio.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import numpy as np
from gene import gene
from .gene import gene
from scipy.stats import ttest_rel, ttest_ind, ranksums
import sys
import csv
Expand Down

0 comments on commit bb84519

Please sign in to comment.