TOBIAS icon indicating copy to clipboard operation
TOBIAS copied to clipboard

BINDetect warning and error

Open peryq opened this issue 2 months ago • 1 comments

Thanks for providing this tool to the community.

I have encountered the following error "AttributeError: FancyArrowPatch.set() got an unexpected keyword argument 'add_objects'" using BINDetect (TOBIAS 0.16.1 BINDetect). Some warning messages include "has dtype incompatible with int64, please explicitly cast to a compatible dtype first. prob_df.loc[:, :] = vals / vals.sum(axis=1)[:, np.newaxis]" and "FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. "

There are some partial outputs from running BINDetect. Four files (bindetect_distances.txt, bindetect_figures.pdf (cant open),bindetect_results.txt, and bindetect_results.xlsx) plus the motif folders .

Please help with this!

Thanks!

peryq avatar Apr 22 '24 22:04 peryq

Hello @peryq,

thank you for using TOBIAS.

This looks like an error related to the adjustText package. Try downgrading it to <0.8 and check if that allows BINDetect to run through without crashing. We have to update the environment yaml in the next release.

If this does not solve your problem, we can investigate further.

Best regards, Moritz

mohobein avatar May 02 '24 07:05 mohobein

Hi @mohobein,

Thanks! After downgrading the adjustText, the BINDetect worked (mamba install adjusttext==0.7.3.1).

Some warning messages that don't affect the functionality include "tobias/lib/python3.10/site-packages/logomaker/src/matrix.py:270: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas" and "python3.10/site-packages/tobias/tools/bindetect.py:759: FutureWarning: Series.getitem treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use ser.iloc[pos]"

peryq avatar May 08 '24 14:05 peryq