{"action":"created","issue":{"url":"https://api.github.com/repos/theislab/scanpy/issues/365","repository_url":"https://api.github.com/repos/theislab/scanpy","labels_url":"https://api.github.com/repos/theislab/scanpy/issues/365/labels{/name}","comments_url":"https://api.github.com/repos/theislab/scanpy/issues/365/comments","events_url":"https://api.github.com/repos/theislab/scanpy/issues/365/events","html_url":"https://github.com/theislab/scanpy/issues/365","id":381906436,"node_id":"MDU6SXNzdWUzODE5MDY0MzY=","number":365,"title":"Error using rank_genes_groups","user":{"login":"Puumanamana","id":39426440,"node_id":"MDQ6VXNlcjM5NDI2NDQw","avatar_url":"https://avatars3.githubusercontent.com/u/39426440?v=4","gravatar_id":"","url":"https://api.github.com/users/Puumanamana","html_url":"https://github.com/Puumanamana","followers_url":"https://api.github.com/users/Puumanamana/followers","following_url":"https://api.github.com/users/Puumanamana/following{/other_user}","gists_url":"https://api.github.com/users/Puumanamana/gists{/gist_id}","starred_url":"https://api.github.com/users/Puumanamana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Puumanamana/subscriptions","organizations_url":"https://api.github.com/users/Puumanamana/orgs","repos_url":"https://api.github.com/users/Puumanamana/repos","events_url":"https://api.github.com/users/Puumanamana/events{/privacy}","received_events_url":"https://api.github.com/users/Puumanamana/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-11-17T22:16:45Z","updated_at":"2018-11-20T19:00:13Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI have been Scanpy for a short time and I find it really great!\r\nHowever, I tried recently to use it for differential expression using rank_genes_groups and I could not make it work. I have a single-cell RNA-seq dataset with cell types.\r\nWhen running `rank_genes_groups(adata, groupby=\"celltype\")`, I get the following error:\r\n\r\n```\r\n~/.py3Env/lib/python3.5/site-packages/scanpy/tools/rank_genes_groups.py` in rank_genes_groups(adata, groupby, use_raw, groups, reference, n_genes, rankby_abs, key_added, copy, method, corr_method, **kwds)\r\n    374     adata.uns[key_added]['names'] = np.rec.fromarrays(\r\n    375         [n for n in rankings_gene_names],\r\n--> 376         dtype=[(rn, 'U50') for rn in groups_order_save])\r\n    377\r\n    378     if method in {'t-test', 't-test_overestim_var', 'wilcoxon'}:\r\n\r\n~/.py3Env/lib/python3.5/site-packages/numpy/core/records.py in fromarrays(arrayList, dtype, shape, formats, names, titles, aligned, byteorder)\r\n    632     # populate the record array (makes a copy)\r\n    633     for i in range(len(arrayList)):\r\n--> 634         _array[_names[i]] = arrayList[i]\r\n    635\r\n    636     return _array\r\n\r\nValueError: setting an array element with a sequence\r\n```\r\n\r\nDo you have any idea of what could cause this error?\r\n\r\nThank you"},"comment":{"url":"https://api.github.com/repos/theislab/scanpy/issues/comments/440391801","html_url":"https://github.com/theislab/scanpy/issues/365#issuecomment-440391801","issue_url":"https://api.github.com/repos/theislab/scanpy/issues/365","id":440391801,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDM5MTgwMQ==","user":{"login":"falexwolf","id":16916678,"node_id":"MDQ6VXNlcjE2OTE2Njc4","avatar_url":"https://avatars1.githubusercontent.com/u/16916678?v=4","gravatar_id":"","url":"https://api.github.com/users/falexwolf","html_url":"https://github.com/falexwolf","followers_url":"https://api.github.com/users/falexwolf/followers","following_url":"https://api.github.com/users/falexwolf/following{/other_user}","gists_url":"https://api.github.com/users/falexwolf/gists{/gist_id}","starred_url":"https://api.github.com/users/falexwolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/falexwolf/subscriptions","organizations_url":"https://api.github.com/users/falexwolf/orgs","repos_url":"https://api.github.com/users/falexwolf/repos","events_url":"https://api.github.com/users/falexwolf/events{/privacy}","received_events_url":"https://api.github.com/users/falexwolf/received_events","type":"User","site_admin":false},"created_at":"2018-11-20T19:00:13Z","updated_at":"2018-11-20T19:00:13Z","author_association":"MEMBER","body":"This is all looks fine and should work perfectly. I'd need an example with some data and the lines of code that produce the error."}}
{"actor":{"display_login":"falexwolf"}}