{"action":"created","issue":{"url":"https://api.github.com/repos/merenlab/anvio/issues/793","repository_url":"https://api.github.com/repos/merenlab/anvio","labels_url":"https://api.github.com/repos/merenlab/anvio/issues/793/labels{/name}","comments_url":"https://api.github.com/repos/merenlab/anvio/issues/793/comments","events_url":"https://api.github.com/repos/merenlab/anvio/issues/793/events","html_url":"https://github.com/merenlab/anvio/issues/793","id":308276011,"number":793,"title":"KeyError in `summarizer.py`","user":{"login":"nick-youngblut","id":2468572,"avatar_url":"https://avatars0.githubusercontent.com/u/2468572?v=4","gravatar_id":"","url":"https://api.github.com/users/nick-youngblut","html_url":"https://github.com/nick-youngblut","followers_url":"https://api.github.com/users/nick-youngblut/followers","following_url":"https://api.github.com/users/nick-youngblut/following{/other_user}","gists_url":"https://api.github.com/users/nick-youngblut/gists{/gist_id}","starred_url":"https://api.github.com/users/nick-youngblut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nick-youngblut/subscriptions","organizations_url":"https://api.github.com/users/nick-youngblut/orgs","repos_url":"https://api.github.com/users/nick-youngblut/repos","events_url":"https://api.github.com/users/nick-youngblut/events{/privacy}","received_events_url":"https://api.github.com/users/nick-youngblut/received_events","type":"User","site_admin":false},"labels":[{"id":82726073,"url":"https://api.github.com/repos/merenlab/anvio/labels/bug","name":"bug","color":"fc2929","default":true},{"id":488265072,"url":"https://api.github.com/repos/merenlab/anvio/labels/metagenomic%20workflow","name":"metagenomic workflow","color":"e99695","default":false}],"state":"closed","locked":false,"assignee":{"login":"meren","id":197307,"avatar_url":"https://avatars2.githubusercontent.com/u/197307?v=4","gravatar_id":"","url":"https://api.github.com/users/meren","html_url":"https://github.com/meren","followers_url":"https://api.github.com/users/meren/followers","following_url":"https://api.github.com/users/meren/following{/other_user}","gists_url":"https://api.github.com/users/meren/gists{/gist_id}","starred_url":"https://api.github.com/users/meren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meren/subscriptions","organizations_url":"https://api.github.com/users/meren/orgs","repos_url":"https://api.github.com/users/meren/repos","events_url":"https://api.github.com/users/meren/events{/privacy}","received_events_url":"https://api.github.com/users/meren/received_events","type":"User","site_admin":false},"assignees":[{"login":"meren","id":197307,"avatar_url":"https://avatars2.githubusercontent.com/u/197307?v=4","gravatar_id":"","url":"https://api.github.com/users/meren","html_url":"https://github.com/meren","followers_url":"https://api.github.com/users/meren/followers","following_url":"https://api.github.com/users/meren/following{/other_user}","gists_url":"https://api.github.com/users/meren/gists{/gist_id}","starred_url":"https://api.github.com/users/meren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meren/subscriptions","organizations_url":"https://api.github.com/users/meren/orgs","repos_url":"https://api.github.com/users/meren/repos","events_url":"https://api.github.com/users/meren/events{/privacy}","received_events_url":"https://api.github.com/users/meren/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-03-24T16:13:38Z","updated_at":"2018-04-08T05:33:28Z","closed_at":"2018-04-07T02:15:19Z","author_association":"NONE","body":"I'm running into a KeyError when running `anvi-summarize`, and I can't figure out what's going wrong. The error is:\r\n\r\n```\r\nContigs DB ...................................: Initialized: tests/output_amy/anvio/coassemble.db (v. 10)\r\n\r\nWARNING\r\n===============================================\r\nProfileSuperClass found a collection focus, which means it will be initialized\r\nusing only the splits in the profile database that are affiliated with the\r\ncollection DAS_Tool and all bins it describes.\r\n\r\nAuxiliary Data ...............................: Found: tests/output_amy/anvio/merged_profiles/AUXILIARY-DATA.db (v. 2)\r\nProfile Super ................................: Initialized with 1284 of 3168 splits: tests/output_amy/anvio/merged_profiles/PROFILE.db (v. 23)\r\nTaxonomy .....................................: Initiated for taxonomic level for \"t_genus\"\r\n[24 Mar 18 16:14:11 [Processing \"metabat2_low_PE_009\" (1 of 5)]] Storing profile data ...                                                                                            Traceback (most recent call last):\r\n  File \"/ebio/abt3_projects/software/dev/llmga/.snakemake/conda/083cdc7f/bin/anvi-summarize\", line 96, in <module>\r\n    main(args)\r\n  File \"/ebio/abt3_projects/software/dev/llmga/.snakemake/conda/083cdc7f/bin/anvi-summarize\", line 60, in main\r\n    summary.process()\r\n  File \"/ebio/abt3_projects/software/dev/llmga/.snakemake/conda/083cdc7f/lib/python3.5/site-packages/anvio/summarizer.py\", line 848, in process\r\n    self.summary['collection'][bin_id]['color'] = self.bins_info_dict[bin_id]['html_color'] or '#212121'\r\nKeyError: 'metabat2_low_PE_009'\r\n```\r\n\r\nThe workflow leading up to the error includes:\r\n\r\n1. coassembly with `megahit`\r\n1. binning with `metabat2`, `maxbin2`, etc.\r\n1. bin selection with `das-tool`\r\n1. `anvi-gen-contigs-database`\r\n1. `anvi-run-hmms`\r\n1. `anvi-run-ncbi-cogs`\r\n1. `anvi-get-dna-sequences-for-gene-calls` + `centrifuge` run\r\n1. `anvi-import-taxonomy`\r\n1. `anvi-profile`\r\n1. `anvi-merge`\r\n1. `anvi-import-collection` (for `metabat`, `maxbin`, etc...., `das_tool`)\r\n1. `anvi-summarize` (summarizing for \"das_tool\") \r\n\r\nAny idea what's going wrong? I can provide more details if needed. \r\n\r\n```\r\n$ anvi-self-test --version\r\nAnvi'o version ...............................: 4\r\nProfile DB version ...........................: 23\r\nContigs DB version ...........................: 10\r\nPan DB version ...............................: 8\r\nGenome data storage version ..................: 6\r\nAuxiliary data storage version ...............: 2\r\n\r\n$ lsb_release -a\r\nNo LSB modules are available.\r\nDistributor ID:\tUbuntu\r\nDescription:\tUbuntu 16.04.4 LTS\r\nRelease:\t16.04\r\nCodename:\txenial\r\n```"},"comment":{"url":"https://api.github.com/repos/merenlab/anvio/issues/comments/379521877","html_url":"https://github.com/merenlab/anvio/issues/793#issuecomment-379521877","issue_url":"https://api.github.com/repos/merenlab/anvio/issues/793","id":379521877,"user":{"login":"nick-youngblut","id":2468572,"avatar_url":"https://avatars0.githubusercontent.com/u/2468572?v=4","gravatar_id":"","url":"https://api.github.com/users/nick-youngblut","html_url":"https://github.com/nick-youngblut","followers_url":"https://api.github.com/users/nick-youngblut/followers","following_url":"https://api.github.com/users/nick-youngblut/following{/other_user}","gists_url":"https://api.github.com/users/nick-youngblut/gists{/gist_id}","starred_url":"https://api.github.com/users/nick-youngblut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nick-youngblut/subscriptions","organizations_url":"https://api.github.com/users/nick-youngblut/orgs","repos_url":"https://api.github.com/users/nick-youngblut/repos","events_url":"https://api.github.com/users/nick-youngblut/events{/privacy}","received_events_url":"https://api.github.com/users/nick-youngblut/received_events","type":"User","site_admin":false},"created_at":"2018-04-08T05:33:28Z","updated_at":"2018-04-08T05:33:28Z","author_association":"NONE","body":"Great! Thanks for letting me know!"}}
{"actor":{"display_login":"nick-youngblut"}}