-
Notifications
You must be signed in to change notification settings - Fork 39
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: Length mismatch: Expected axis has 0 elements, new values have 3 elements #183
Comments
Hi @Citugulia40 One of your region set is probably empty, you can check which one by running: for DAR in markers_dict.keys():
regions = markers_dict[DAR].index[markers_dict[DAR].index.str.startswith('chr')] #only keep regions on known chromosomes
if len(regions) == 0:
print(DAR) To be sure can you also show the output of: markers_dict Best, Seppe |
Hi, The output for these are as follows:
Inhibitory
{'Astrocyte': Log2FC Adjusted_pval Contrast [13580 rows x 3 columns], [8015 rows x 3 columns], [14021 rows x 3 columns], Most of the cell types have empty data frame. |
Hi @Citugulia40 It is these cell types with empty dataframes that is causing the issues. Either remove these from the motif enrichment analysis or set less strict parameters for calling DARs. Best, Seppe |
Thanks of the solution. I have removed the empty cells and was able to run the pipeline but at the end I am still getting an error
Please help. Thanks |
Hi @Citugulia40 Sorry for the late response. Seems like something went wrong with thresholding the AUC values. You can skip generating the loom file for now Your object should still be fine though, including all results. see: Best, Seppe |
Thanks @SeppeDeWinter for the recommendations! |
I am facing the same issue but when I run the pipeline using snakemake and I already removed the empty BED files. In the snakemake config.yml the param |
Hi @Oliversinn What is your error exactly? The Snakemake pipeline does not export any loom files ... Best, Seppe |
Hi,
I am not able to run this code as I am having an error and I am not able to understand this
Please help me
Thanks
The text was updated successfully, but these errors were encountered: