-
Notifications
You must be signed in to change notification settings - Fork 7
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
ValueError: Bin edges must be unique #35
Comments
Thank you for your testing. Could you artificially add the 'batch' variable to the obs of the cell object? The values in it are the sample names and can be confirmed by reading 'outputs/raw_cellranger_patient1.h5ad' and viewing its adata.obs['batch']. Then re-run it and see if it reports an error. |
I'm very sorry to trouble you again with another issue. When running the following command: I encountered the following errors: /home/ubuntu/miniconda3/envs/santo_env/lib/python3.10/site-packages/SEVtras/functional.py:81: FutureWarning: Use anndata.concat instead of AnnData.concatenate, AnnData.concatenate is deprecated and will be removed in the future. See the tutorial for concat at: https://anndata.readthedocs.io/en/latest/concatenation.html Could you help me to solve this issue? I would greatly appreciate your response. |
May I ask what species you analyzed? Currently only human and mouse analyses are supported. You can refer to #8 (comment) for further direction. |
Thank you very much for your reply, but the species I'm working on is human. I still encountered the same error when running the command as before. SEVtras.ESAI_calculator(adata_ev_path='outputs/sEV_SEVtras.h5ad', adata_cell_path='outputs/integrated_data.h5ad', out_path='./outputs', Xraw=False, OBSsample='batch',OBScelltype='celltype',species='Homo') 2025-02-06 13:48:14,551 No gene sets passed through filtering condition!!! Try to set min_size or max_size parameters again! Have you ever encountered this problem? I would greatly appreciate your response. |
I've run a lot of data from Homo sapiens and none of them produce this error. Could you please check the var names of the input adata? It should be in the format of "CHD8" etc. |
Hello, respected author, I have the following questions to ask you. I used the following command:
SEVtras.ESAI_calculator(adata_ev_path='outputs/raw_cellranger_patient1.h5ad', adata_cell_path='seurat.h5ad', out_path='./outputs', Xraw=False, OBScelltype='celltype')
I obtained the seurat.h5ad file with cell type information using Scanpy analysis. There is only one sample, so I didn't use OBSsample='batch'. However, after running the above command, I encountered the following error:
ValueError: Bin edges must be unique: Index([nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan, nan], dtype='float64'). You can drop duplicate edges by setting the 'duplicates' kwarg
Our method requires the use of the raw_feature_bc_matrix, but the seurat.h5ad file with cell type information has been filtered. Does this mean the number of cells is different? Could this be the reason for the issue? How should this problem be resolved?
Additionally, do we need to perform filtering during Scanpy analysis?
Thank you very much for your response.
The text was updated successfully, but these errors were encountered: