liguowang/cpgtools

printlog() function

Closed this issue · 2 comments

Is printlog() a custom function in your beta_PCA.py? If so, how have you defined it? Sorry if it is a stupid question and thanks for your response in advance!

Thanks for your inquiry. No question is stupid. The printlog() function is defined in the "cpgmodule/utils.py" file.
`
from time import strftime

def printlog (mesg):
'''print progress message'''
mesg = "@ " + strftime("%Y-%m-%d %H:%M:%S") + ": " + mesg
print (mesg, file=sys.stderr)
`
please let me know if you have problems using beta_PCA.py.

Thank you so much, that was super helpful. I was just hoping to modify the code so I can use more than 21 colours and I managed to do it. Cheers again!