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

Non-redundant motif selection fails on some files #226

Closed
juhomon opened this issue Nov 30, 2021 · 2 comments
Closed

Non-redundant motif selection fails on some files #226

juhomon opened this issue Nov 30, 2021 · 2 comments

Comments

@juhomon
Copy link

juhomon commented Nov 30, 2021

Describe the bug
Some of my bed files produce an error when selecting non-redundant motifs for the HTML file. Weirdly this error is related to two similar sets (size, but not motif wise!) of BED files which both fail while one set doesn't. Interestingly previously with version 15.3 it was the total opposite, hence the update to 16.1.

To Reproduce
At the moment I cannot provide you with the motif files or bed files, the motifs are PWMs gathered from the CISBP database and have worked previously! Below is the command with variables.

OUTTMP=$(echo $peaks | sed 's/.bed//') 
OUT="${outfolder}${OUTTMP}"
echo $OUT
mkdir -p $OUT
gimme motifs "${peaks}" "${OUT}" -g "${genome}" -p "${motifFile}" -N 40 --known

Error logs
2021-11-30 15:58:44,229 - INFO - selecting non-redundant motifs
Traceback (most recent call last):
File "/home/users/juhomon/miniconda3/envs/gimmemamba/bin/gimme", line 11, in
cli(sys.argv[1:])
File "/home/users/juhomon/miniconda3/envs/gimmemamba/lib/python3.9/site-packages/gimmemotifs/cli.py", line 730, in cli
args.func(args)
File "/home/users/juhomon/miniconda3/envs/gimmemamba/lib/python3.9/site-packages/gimmemotifs/commands/motifs.py", line 246, in motifs
nr_motifs = select_nonredundant_motifs(
File "/home/users/juhomon/miniconda3/envs/gimmemamba/lib/python3.9/site-packages/gimmemotifs/comparison.py", line 976, in select_nonredundant_motifs
rfe = RFE(model, i)
TypeError: init() takes 2 positional arguments but 3 were given

Installation information (please complete the following information):

  • OS: CentOS7
  • Installation: mamba -create -n gimmemamba gimmemotifs
  • Version: v0.16.1

Additional
Run with SLURM

simonvh added a commit that referenced this issue Dec 1, 2021
@simonvh
Copy link
Member

simonvh commented Dec 1, 2021

Thanks for reporting this bug! It will be fixed in the next release, for now you can install the fix by running the following command in your gimmemamba environment:

pip install git+https://github.com/vanheeringen-lab/gimmemotifs.git@fix_rfe

simonvh added a commit that referenced this issue Dec 1, 2021
@juhomon
Copy link
Author

juhomon commented Dec 1, 2021

Amazing, thanks for the quick response! File nr1 just finished without errors, so I'll close this on my side.

@juhomon juhomon closed this as completed Dec 1, 2021
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