Skip to content

Commit

Permalink
the range of KEGG overview map numbers has been extended with the add…
Browse files Browse the repository at this point in the history
…ition of a new map for the nitrogen cycle, 01310
  • Loading branch information
semiller10 committed Sep 12, 2024
1 parent b988166 commit 833fb13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion anvio/docs/programs/anvi-draw-kegg-pathways.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ anvi-draw-kegg-pathways --contigs-dbs %(contigs-db)s \
--ko
{{ codestop }}

Here are three maps drawn with this command from a bacterial genomic contigs database. The map in the upper left, `00010 Glycolysis / Gluconeogenesis`, is a "standard" map, in which boxes are associated with a reaction arrow and one or more KOs. The map in the upper right, `01200 Carbon metabolism`, is a metabolic "overview" map. Overview maps have numerical IDs in the range `012XX`. Reaction arrows in overview maps are associated with one or more KOs and are colored and widened if represented by anvi'o KO data. The bottom map, `01100 Metabolic pathways`, is a "global" metabolic map. Global maps have numerical IDs in the range `011XX`. Reaction lines in global maps are associated with one or more KOs and colored if represented by anvi'o KO data. In all maps, circles are colored if the compound they represent is involved in reactions that are also colored. (Occasionally complete data linking reaction and compound graphics is missing from the KEGG reference files, preventing the reaction color from being imparted to the compound. One such error can be seen at the very top of the overview map of `Carbon metabolism`, where `Glucono-1,5-lactone` is white when it should be green.)
Here are three maps drawn with this command from a bacterial genomic contigs database. The map in the upper left, `00010 Glycolysis / Gluconeogenesis`, is a "standard" map, in which boxes are associated with a reaction arrow and one or more KOs. The map in the upper right, `01200 Carbon metabolism`, is a metabolic "overview" map. Overview maps have numerical IDs in the range `012XX` and `013XX`. Reaction arrows in overview maps are associated with one or more KOs and are colored and widened if represented by anvi'o KO data. The bottom map, `01100 Metabolic pathways`, is a "global" metabolic map. Global maps have numerical IDs in the range `011XX`. Reaction lines in global maps are associated with one or more KOs and colored if represented by anvi'o KO data. In all maps, circles are colored if the compound they represent is involved in reactions that are also colored. (Occasionally complete data linking reaction and compound graphics is missing from the KEGG reference files, preventing the reaction color from being imparted to the compound. One such error can be seen at the very top of the overview map of `Carbon metabolism`, where `Glucono-1,5-lactone` is white when it should be green.)

![Three maps showing KOs from a single contigs database](../../images/anvi-draw-kegg-pathways/kos_single_contigs_db.png)

Expand Down
2 changes: 1 addition & 1 deletion anvio/kegg.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@

# Global and overview map IDs have certain ranges of numbers.
GLOBAL_MAP_ID_PATTERN = re.compile(r'\d{1}11\d{2}')
OVERVIEW_MAP_ID_PATTERN = re.compile(r'\d{1}12\d{2}')
OVERVIEW_MAP_ID_PATTERN = re.compile(r'\d{1}1[23]\d{2}')


class KeggContext(object):
Expand Down

0 comments on commit 833fb13

Please sign in to comment.