aertslab / pySCENIC

pySCENIC is a lightning-fast python implementation of the SCENIC pipeline (Single-Cell rEgulatory Network Inference and Clustering) which enables biologists to infer transcription factors, gene regulatory networks and cell types from single-cell RNA-seq data.
http://scenic.aertslab.org
GNU General Public License v3.0
424 stars 179 forks source link

[BUG] Encoding Argument While Loading Pickle File Produces Error in pyscenic aucell #552

Open ggruenhagen3 opened 3 months ago

ggruenhagen3 commented 3 months ago

When trying to input a pickle (dat) file of regulons for pyscenic aucell, I got the following error: pyscenic.cli.pyscenic - ERROR - binary mode doesn't take an encoding argument. This is due to line 33 of ctxcore/genesig.py, which should be changed so that an encoding argument isn't used like so return open(filename, mode).

Version information: pyscenic 0.12.1, python 3.9.18, pickle 4.0. Executed on a HPC running CentOS Linux 7.