Skip to content

Commit

Permalink
Added six-colored-GO example
Browse files Browse the repository at this point in the history
  • Loading branch information
dvklopfenstein committed Jun 16, 2018
1 parent 8e4c5b7 commit a092cc2
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 2 deletions.
Binary file added doc/images/plot_go/heartjogging6_r0.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/images/plot_go/heartjogging6_r1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 30 additions & 2 deletions doc/md/README_plot_go.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
* [GO terms listed in a file](#plot-two-go-terms-listed-in-a-file-using-different-colors-and-their-ancestors)
* [Using 'is_a' relationship only (default)](#plot-two-go-terms-using-different-colors-and-their-ancestors)
* [Using all relationships](#plot-two-go-terms-using-different-colors-and-their-ancestors-with-relationships)
* Plot **six** GO terms in a file (a different **color** for each) and their ancestors:
* [Using 'is_a' relationship only (default)]()
* [Using all relationships]()

## Plot one GO term and its ancestors
Plot one term and all ancestors using the 'is_a' attribute.
Expand Down Expand Up @@ -49,8 +52,8 @@ scripts/go_plot.py GO:0003304 GO:0003146 --r -o heart_jogging_r1.png


## Plot two GO terms (listed in a file) using different colors and their ancestors
Plot two terms and all ancestors using the 'is_a' attribute.
The heart jogging GO term, GO:0003146, is colored in [ice](://klaash.github.io/xkcdcolorpicker/#ice).
Plot two terms and all ancestors using the 'is_a' attribute.
The heart jogging GO term, GO:0003146, is colored in [ice](://klaash.github.io/xkcdcolorpicker/#ice).

The file contains the GO terms and user-defined colors:
```
Expand Down Expand Up @@ -82,4 +85,29 @@ scripts/go_plot.py GO:0003304 GO:0003146#d6fffa --r -o heart_jogging_ice_r1.png
![heart_jogging_r1](../images/plot_go/heart_jogging_ice_r1.png)


## Plot six GO terms (listed in a file) using different colors and their ancestors
Plot two terms and all ancestors using the 'is_a' attribute.
The heart jogging GO term, GO:0003146, is colored in [ice](://klaash.github.io/xkcdcolorpicker/#ice).

The file, go_heartjogging6.txt, contains the GO terms and user-defined colors:
```
#fad2fa GO:0072359 # BP 643 D04 circulatory system development
#d2fafa GO:0003007 # BP 197 D04 heart morphogenesis
#fafad2 GO:0035050 # BP 26 D05 embryonic heart tube development
#ffe5b4 GO:0003304 # BP 0 D06 myocardial epithelial involution involved in heart jogging
#e6fad2 GO:0061371 # BP 11 D06 determination of heart left/right asymmetry
#d2d2fa GO:0003146 # BP 6 D07 heart jogging
```
### Six different-colored GO terms without relationships
```
scripts/go_plot.py --go_file=tests/data/go_plot/go_heartjogging6.txt -o heartjogging6_r0.png
```
![heart_jogging_r0](../images/plot_go/heartjogging6_r0.png)

### Six different-colored GO terms with relationships
```
scripts/go_plot.py --go_file=tests/data/go_plot/go_heartjogging6.txt -r -o heartjogging6_r1.png
```
![heart_jogging_r0](../images/plot_go/heartjogging6_r1.png)

Copyright (C) 2010-2018, DV Klopfenstein, Haibao Tang et al. All rights reserved.
13 changes: 13 additions & 0 deletions tests/data/go_plot/go_heartjogging6.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
"lightbright" Color Palette
http://www.color-hex.com/color-palette/51895

and orange (#ffe5b4) from the "favorite pink based oranges" Color Palette


#fad2fa GO:0072359 # BP 643 D04 circulatory system development
#d2fafa GO:0003007 # BP 197 D04 heart morphogenesis
#fafad2 GO:0035050 # BP 26 D05 embryonic heart tube development
#ffe5b4 GO:0003304 # BP 0 D06 myocardial epithelial involution involved in heart jogging
#e6fad2 GO:0061371 # BP 11 D06 determination of heart left/right asymmetry
#d2d2fa GO:0003146 # BP 6 D07 heart jogging

0 comments on commit a092cc2

Please sign in to comment.