We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ask for 25, get 26:
n_bins = 25 obs_avg = pd.Series(np.arange(100), index=np.arange(100)) n_items = int(np.round(len(obs_avg) / (n_bins - 1))) obs_cut = obs_avg.rank(method='min') // n_items len(obs_cut.unique())
Ask for 25, get 23:
n_bins = 25 values = np.arange(100) values[0:10] = 0 values[11:20] = 1 obs_avg = pd.Series(values, index=np.arange(100)) n_items = int(np.round(len(obs_avg) / (n_bins - 1))) obs_cut = obs_avg.rank(method='min') // n_items len(obs_cut.unique())
The text was updated successfully, but these errors were encountered:
What are the cases where this happens?
Sorry, something went wrong.
See examples above. Thanks.
Could you provide an example of what’s going wrong? There’s no scanpy code in your example.
The code I included in my example and below is taken directly from the scanpy.tl.score_genes source code:
n_items = int(np.round(len(obs_avg) / (n_bins - 1))) obs_cut = obs_avg.rank(method='min') // n_items
fixed in the next version!
No branches or pull requests
Ask for 25, get 26:
Ask for 25, get 23:
The text was updated successfully, but these errors were encountered: