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

AssertionError : assert len(new_pattern)==1 in modisco/aggregator.py #89

Open
ofiryaish opened this issue Mar 26, 2021 · 3 comments
Open

Comments

@ofiryaish
Copy link

ofiryaish commented Mar 26, 2021

I tried to run TF-modisco on different subsets of data and got the following error for one of the subsets (other works fine):

Traceback (most recent call last):
  File "TF_modisco.py", line 207, in <module>
    main([model], data, "modisco/")
  File "TF_modisco.py", line 173, in main
    run_modisco(hyp_impscores=hyp_ex_list, impscores=ex_list, onehot_data=features, modisco_path=modisco_path)
  File "TF_modisco.py", line 67, in run_modisco
    **nulldist_args)
  File "/users/agnon/year2016/yaishof/.conda/envs/ofir_env/lib/python3.6/site-packages/modisco/tfmodisco_workflow/workflow.py", line 377, in __call__
    metacluster_seqlets)
  File "/users/agnon/year2016/yaishof/.conda/envs/ofir_env/lib/python3.6/site-packages/modisco/tfmodisco_workflow/seqlets_to_patterns.py", line 913, in __call__
    patterns=split_patterns) 
  File "/users/agnon/year2016/yaishof/.conda/envs/ofir_env/lib/python3.6/site-packages/modisco/aggregator.py", line 1007, in __call__
    assert len(new_pattern)==1
AssertionError

What can be the problem?

the full output:
output.txt

@AvantiShri
Copy link
Collaborator

Hi Ofir, which version of tfmodisco are you running?

Best,
Avanti

@ofiryaish
Copy link
Author

@AvantiShri ,
I'm using modisco==0.5.9.0.

Thank you for your attention

@AvantiShri
Copy link
Collaborator

Hi, can you try the latest version (0.5.14)? I think this error should be fixed in that version.

Thanks,
Av

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants