liguowang / cpgtools

Python package to analyze DNA methylation data
MIT License
39 stars 11 forks source link

printlog() function #6

Closed aesfandiari1 closed 1 year ago

aesfandiari1 commented 1 year ago

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!

liguowang commented 1 year ago

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.

aesfandiari1 commented 1 year ago

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!