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

RuntimeWarning: invalid value encountered in true_divide result = result / np.linalg.norm(result, axis=1).reshape((-1, 1)) #1

Open
jolespin opened this issue Mar 1, 2022 · 3 comments

Comments

@jolespin
Copy link

jolespin commented Mar 1, 2022

Here is the file where this occurred: [ attached in zip ]

Here is the command:

tiara -i $FP --probabilities --threads 16 -o tiara_output/${FP}.tiara.tsv

I'm using Tiara v1.0.2

Here's my error (I replace $HOME)

$HOME/anaconda3/envs/tiara_env/lib/python3.7/site-packages/tiara/src/transformations.py:195: RuntimeWarning: invalid value encountered in true_divide   result = result / np.linalg.norm(result, axis=1).reshape((-1, 1))
@jolespin jolespin changed the title $HOME/anaconda3/envs/tiara_env/lib/python3.7/site-packages/tiara/src/transformations.py:195: RuntimeWarning: invalid value encountered in true_divide result = result / np.linalg.norm(result, axis=1).reshape((-1, 1)) RuntimeWarning: invalid value encountered in true_divide result = result / np.linalg.norm(result, axis=1).reshape((-1, 1)) Mar 1, 2022
@santonow
Copy link
Collaborator

santonow commented Mar 1, 2022

Hi @jolespin!
Thank you for raising this issue. I think this might happen when there are no instances of a particular k-mer in the input sequence. I'll try to look into this issue this or next week. Sadly I don't see the zip with sequences – could you attach it again?
Thanks, santonow

@Keltonc
Copy link

Keltonc commented Jan 16, 2024

Hi @santonow, I'm also encountering this error in my run. Have you managed to fix this?
$HOME/mambaforge/envs/tiara/lib/python3.8/site-packages/tiara/src/transformations.py:199: RuntimeWarning: invalid value encountered in true_divide result = result / np.linalg.norm(result, axis=1).reshape((-1, 1))

Here's the command I'm using
tiara --input $GENOME --output out.txt --tf mit pla bac arc pro -t 4 --probabilities

The version I'm running is v1.0.3.

Thanks.
Kelton

@jolespin
Copy link
Author

Hi @jolespin! Thank you for raising this issue. I think this might happen when there are no instances of a particular k-mer in the input sequence. I'll try to look into this issue this or next week. Sadly I don't see the zip with sequences – could you attach it again? Thanks, santonow

Unfortunately, I have no idea which sequences threw this error since it's been a bit. Sorry this one slipped through the cracks.

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

3 participants