Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error in partioned rank_test #207

Open
jhkliu42 opened this issue Sep 21, 2021 · 0 comments
Open

Syntax error in partioned rank_test #207

jhkliu42 opened this issue Sep 21, 2021 · 0 comments

Comments

@jhkliu42
Copy link

I'm attempting to run rank_test() on subgroups in an AnnData object, by making use of test.partition(). There appears to be a syntax error, where in the rank_test method of a partition, it passes the datatype into test.rank_test (starting around Line 1729):

for i, idx in enumerate(self.partition_idx):
DETestsSingle.append(rank_test(
data=self.x[idx, :],
grouping=grouping,
gene_names=self.gene_names,
sample_description=self.sample_description.iloc[idx, :],
is_sig_zerovar=is_sig_zerovar,
dtype=dtype
))

However, in test.rank_test(), dtype is not an acceptable key word argument:
def rank_test(
data: Union[anndata.AnnData, Raw, np.ndarray, scipy.sparse.csr_matrix, glm.typing.InputDataBase],
grouping: Union[str, np.ndarray, list],
gene_names: Union[np.ndarray, list] = None,
sample_description: pd.DataFrame = None,
is_logged: bool = False,
is_sig_zerovar: bool = True
):

This results in the following error being thrown: "rank_test() got an unexpected keyword argument 'dtype'".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant