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

Enable the ITOL annotations in the tb-profiler command #197

Merged
merged 7 commits into from
Jul 22, 2024

Conversation

abhi18av
Copy link
Member

As discussed in our meeting on 13-June-2024, we realised that the default behavior for the command had changed and now we explicitly need to enable the generation of annotations.

I did a test run and for some reason the presence of Mcanetti is raising an issue.

  Traceback (most recent call last):
    File "/usr/local/bin/tb-profiler", line 583, in <module>
      args.func(args)
    File "/usr/local/bin/tb-profiler", line 269, in main_collate
      tbp.collate_results(args)
    File "/usr/local/lib/python3.10/site-packages/tbprofiler/collate.py", line 149, in collate_results
      generate_itol_config(rows,drugs,args.prefix)
    File "/usr/local/lib/python3.10/site-packages/tbprofiler/collate.py", line 178, in generate_itol_config
      writer.write(lineage_outfile)
    File "/usr/local/lib/python3.10/site-packages/itol_config/interfaces/colour_strip.py", line 33, in write
      O.write("%s\t%s\n" % (index,self.colour_lookup[value]))
  KeyError: 'M.canetti'
  Cleaning up after failed run
             ERROR                                                  tb-profiler:59

                      ################################# ERROR
                      #######################################

                      This run has failed. Please check all
                      arguments and make sure all input files
                      exist. If no solution is found, please open
                      up an issue at
                      https://github.com/jodyphelan/TBProfiler/issu
                      es/new and paste or attach the
                      contents of the error log
                      (joint.major_variants.errlog.txt)

                      #############################################
                      ##################################

  INFO:    Cleaning up image...


@abhi18av abhi18av changed the base branch from master to develop June 13, 2024 10:40
@abhi18av abhi18av self-assigned this Jun 13, 2024
@abhi18av abhi18av force-pushed the develop branch 2 times, most recently from d78f8a0 to b617fd1 Compare June 16, 2024 18:24
@abhi18av abhi18av changed the base branch from develop to master June 16, 2024 18:25
@abhi18av abhi18av changed the base branch from master to develop June 16, 2024 18:25
@abhi18av
Copy link
Member Author

As of a0e54af , the iTOL annotations have been restored as a normal output of drug_resistance folders (major/minor/structural )

image

@abhi18av abhi18av marked this pull request as ready for review July 22, 2024 08:56
@abhi18av abhi18av merged commit f834d26 into develop Jul 22, 2024
@abhi18av abhi18av deleted the tb-profiler-itol branch July 22, 2024 09:31
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

Successfully merging this pull request may close these issues.

1 participant