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

stat_type is not working #235

Open
jingliulj opened this issue Jul 20, 2022 · 0 comments
Open

stat_type is not working #235

jingliulj opened this issue Jul 20, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@jingliulj
Copy link

In MoSeq2-Analysis-Visualization-Notebook.ipynb, the stat_type is not behaving as expected. I ran the below code, but got almost the same fingerprint plot as using stat_type='mean'.

stat_type = 'std'
n_bins = 100  # resolution of distribution 
range_type = 'robust'  # robust or full
preprocessor = MinMaxScaler()

summary, range_dict = create_fingerprint_dataframe(moseq_df, stats_df, stat_type=stat_type, groupby_list=groupby, n_bins=n_bins, range_type=range_type)
plotting_fingerprint(summary, progress_paths['plot_path'], range_dict, preprocessor=preprocessor)

Expected Behavior

The fingerprint plot should show the std summary

Current Behavior

The fingerprint plot showed the mean summary but the range of the velocity column is different

Possible Solution

I think the problem is in create_fingerprint_dataframe. The pivot_table function is not using the stat_type for getting the summary.

Your Environment

moseq2-extract, version 1.1.2
moseq2-pca, version 1.1.3
moseq2-model, version 1.1.2
moseq2-viz, version 1.2.0
MoSeq2 app version: v1.2.0
Python path: /home/jingliulj/miniconda3/envs/moseq2-app/bin/python3.7

@jingliulj jingliulj added the bug Something isn't working label Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant