diffSplice ERROR:__main__:Unknown error: (<class 'UnboundLocalError'>, UnboundLocalError("local variable 'i' referenced before assignment",), <traceback object at 0x7fede986dd48>)
See original GitHub issueIssue Description
Hi I am getting this cryptic error with suppa 2.3. Most of the other splice types are working fine.
suppa.py diffSplice --method empirical --input suppa_results/treated_vs_untreated/AS_events/events_SE_variable_10.ioe --psi suppa_results/treated_vs_untreated/SE_CONTROL.psi suppa_results/treated_vs_untreated/SE_EXPERIMENT.psi --tpm suppa_results/treated_vs_untreated/quantification/CONTROL.tsv suppa_results/treated_vs_untreated/quantification/EXPERIMENT.tsv --area 1000 -gc --lower-bound 0.00 --gene-correction --output Delta_psi_SE --mode DEBUG
Calculating differential analysis between conditions: SE_CONTROL and SE_EXPERIMENT
ERROR:__main__:Unknown error: (<class 'UnboundLocalError'>, UnboundLocalError("local variable 'i' referenced before assignment",), <traceback object at 0x7fede986dd48>)
Here are the relevant files. They should be public: https://debugsuppa.s3.amazonaws.com/CONTROL.tsv https://debugsuppa.s3.amazonaws.com/events_SE_variable_10.ioe https://debugsuppa.s3.amazonaws.com/EXPERIMENT.tsv https://debugsuppa.s3.amazonaws.com/SE_CONTROL.psi https://debugsuppa.s3.amazonaws.com/SE_EXPERIMENT.psi https://debugsuppa.s3.amazonaws.com/iso_tpm_enst.txt
Thanks!
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Python 3: UnboundLocalError: local variable referenced ...
Naturally, this creates a variable inside the function's scope called Var1 (truthfully, ... local variable 'f' referenced before assignment.
Read more >diffSplice returns an error for a parameter that is already set #32
I got following error message when I tried to use diffSplice function for ... UnboundLocalError("local variable 'i' referenced before ...
Read more >UnboundLocalError: local variable referenced before ...
In Python, variables that are only referenced inside a function are implicitly global. If a variable is assigned a value anywhere within the ......
Read more >UnboundLocalError Local Variable 'index' Referenced Before ...
The Problem The exception UnboundLocalError: local variable 'index' referenced before assignment happens in Python when you use a global ...
Read more >Local Variable Referenced Before Assignment - STechies
The “local variable referenced before assignment” error occurs when you give reference of a local variable without assigning any value. Example:
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Thanks for your quick response - you saved me many hours of frustration there. Also thank you for developing SUPPA - it’s wicked fast!
Sorry about the cryptic message.
I tried running the command and reproduced your error.
After a quick look at the files, I saw that there are may nan’s
If you use the option -nan followed by a proportion (e.g. 0.5) it will run.
I tried with -nan 0.5 but only a handful of events were actually computed. You may have to increase the proportion.
I hope this helps
E.
On Fri, 16 Jul 2021 at 22:37, Jeremy Leipzig @.***> wrote:
– Prof. E Eyras EMBL Australia Group Leader The John Curtin School of Medical Research - Australian National University https://github.com/comprna http://scholar.google.com/citations?user=LiojlGoAAAAJ