-
Notifications
You must be signed in to change notification settings - Fork 32
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
TypeError: unbound method set.union() needs an argument #525
Comments
Hi @Melody-cell Did you check wether one (or more) of your cistromes is empty? Like I mentioned in: All the best, Seppe |
Hi, @SeppeDeWinter , |
Hi, @SeppeDeWinter |
Hi @Melody-cell Ok thanks for checking. from scenicplus.data_wrangling.cistarget_wrangling import (_signatures_to_iter, _get_cistromes)
paths_to_motif_enrichment_results = <PATH_TO_MOTIF_ENRICHMENT_RESULTS> # this is the `--paths_to_motif_enrichment_results` of the `prepare_menr` command
mdata = mudata.read(<PATH_TO_MUDATA>)
scplus_regions = set(mdata["scATAC"].var_names)
direct_annotation = ["Direct_annot"]
extended_annotation: = ["Orthology_annot"]
cistromes = []
for motif_enrichment_table, motif_hits in _signatures_to_iter(
paths_to_motif_enrichment_results):
cistromes.extend(
_get_cistromes(
motif_enrichment_table = motif_enrichment_table,
motif_hits = motif_hits,
scplus_regions = scplus_regions,
direct_annotation = direct_annotation,
extended_annotation = extended_annotation))
for cistrome in cistromes:
if len(cistrome.target_regions) == 0:
print(cistrome) |
Hi, @SeppeDeWinter , |
And does this union_target_regions= list(set.union(
*[cistrome.target_regions for cistrome in cistromes])) produce the error you ware facing? If not, can you also try with the Best, S |
Hi, @SeppeDeWinter , |
Hi, @SeppeDeWinter , |
Hi @Melody-cell This means something went wrong during the motif enrichment step. Best, S |
Hi, @SeppeDeWinter , i am curious about that why this will appear NaN in the cell data , this means RNA_barcodes not matched completely with ATAC barcodes? but multiome data should be completely match cause they have the same cells. i am confused. |
Hi, @SeppeDeWinter ,
when i run "scenicplus prepare_data prepare_menr", it appears this error:
I have checked other people's issues, but i still didn't solve it.
This is my dem_results.html,
Did anyone know how to solve it?
The text was updated successfully, but these errors were encountered: