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

Error with logger on exptract_promoter #404

Closed
homonecloco opened this issue May 24, 2021 · 2 comments
Closed

Error with logger on exptract_promoter #404

homonecloco opened this issue May 24, 2021 · 2 comments

Comments

@homonecloco
Copy link
Collaborator

I am trying to extract the promoter coordinates, I am first testing the tool for this function, to see if the output produces the coordinates. However, I get this issue:

% extract_promoter_regions.py --exclude-utr --gzip --no-neighbours -d2000 -o promoters_2k_refseq1.1 -l logextract.log -lv INFO  Triticum_aestivum.IWGSC.dna_sm.toplevel.fa  gene_list.txt

Traceback (most recent call last):
  File "/usr/local/bin/extract_promoter_regions.py", line 176, in <module>
    main()
  File "/usr/local/bin/extract_promoter_regions.py", line 36, in main
    logger = Mikado.utilities.log_utils.create_logger_from_conf({"log_settings": {"log": args.log,
  File "/usr/local/lib/python3.9/site-packages/Mikado/utilities/log_utils.py", line 146, in create_logger_from_conf
    log_settings = conf.log_settings
AttributeError: 'dict' object has no attribute 'log_settings'

My guess is that there was a change in how the logger receives the configuration since the time when this tool was written

@ljyanesm
Copy link
Collaborator

Dear @homonecloco,

It seems like this script needs a bit of updating, I'll have a look and get back to you.

@ljyanesm
Copy link
Collaborator

Fixed in 2.3.0

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