Skip to content

Compatibility Issue with pandas in scFates 1.0.8 while i use tl.test_fork #35

@Almasimaryam

Description

@Almasimaryam

Hi scFates team,

I am using scFates version 1.0.8 along with pandas 1.5.3, which is the latest version that satisfies the <2.0 constraint for this release. However, I'm encountering the following error when running the test_fork() function:

TypeError: drop_duplicates() takes 1 positional argument but 2 were given.

It appears that the drop_duplicates() function in pandas may no longer accept the False argument in the same way, causing incompatibility with the current scFates code. Here's the exact line in bifurcation_tools.py:

brcells = brcells.loc[brcells.index.drop_duplicates(False)]

I would suggest either removing the second argument or adapting the call to be compatible with the latest versions of pandas <2.0. Alternatively, could you suggest a workaround?

Thanks in advance for your help!

Best regards,

by the way this is the code I tried to run:
scf.tl.test_fork(bdata,root_milestone="30",milestones=["28","70"],n_jobs=60,rescale=True)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions