loosolab / jlu-bda-2020

Code repository for the JLU practical in Biodatenanalyse in winter 2020/2021
MIT License
0 stars 1 forks source link

UnboundLocalError: local variable 'chromosomes' referenced before assignment #39

Closed rwiegan closed 3 years ago

rwiegan commented 3 years ago

DeepBlue is currently down. But I tried it anyway. python bin/tf_analyzer.py -g mm9 -b liver -t gata4 polr2a -c chr1

results in:

You are currently offline. You can only analyse data you already downloaded.
Traceback (most recent call last):
  File "bin/tf_analyzer.py", line 237, in <module>
    main()
  File "bin/tf_analyzer.py", line 166, in main
    if chrom != 'all' and chrom not in chromosomes[args.genome]:
UnboundLocalError: local variable 'chromosomes' referenced before assignment

There seems to be a problem regarding the chromosomes variable when running in offline mode.

Jasmin-Walter commented 3 years ago

By the time the error occured, the offline mode was not fully developed yet. The offline mode was officially added with commit 15db5ef and the error was fixed.