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

Fimo, allow for dict[str, numpy.ndarray] as input for motif argument. #31

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

SeppeDeWinter
Copy link

@SeppeDeWinter SeppeDeWinter commented Jan 31, 2025

Dear Jacob

The documentation of Fimo states that a dict[str, numpy.ndarray] can be used as input for the motif argument.
Internally pwm's were always converted from torch.Tensors to numpy.ndarray, resulting in an attribute error
when using dict[str, numpy.ndarray] as input.

This PR fixes this issue.

[EDIT]
Ok, I realised that the order of the motifs matter. I.e. reverse complement motifs should be at the end of the list of motifs (in the same order as the non-reverse-complemented ones). This extra commit should adres this: 1f46d74

Best,

Seppe De Winter

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

Successfully merging this pull request may close these issues.

1 participant