Skip to content

Commit

Permalink
fixed numbering for color parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
bhofmei committed Nov 21, 2016
1 parent 729f90f commit 8c182b0
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,30 +51,27 @@ For all contexts, density is indicated by the intensity of color. Color is compu
Density is scaled to the track configuration `min_score` and `max_score`.

Color can be specified in four ways.

1. Random [default]
Equidistant colors are assigned to each context based on the number of contexts specified.
```
"colors": "random"
```

2. Single Color
`"colors": "random"`

1. Single Color
A single color is used for all contexts. Color can be specified as a string or hexidecimal value
```
"colors" : "hotpink"
```

3. Array
`"colors" : "hotpink"`

1. Array
Colors in the array for assigned to each context based on order. If there are more contexts than colors specified, colors are reused in order.
```
"colors" : ["red", "orange", "yellow", "greenyellow"]
```

4. Object
Colors can be specified using a javascript object assigning a color to each context. If a context is not assigned a color, the cooresponding "random" color is used.
```
"colors" : { "CG" : "#A36085", "CHG": "#0072B2", "CHH" : "#CF8F00", "CH" : "#88C043" }
```
`"colors" : ["red", "orange", "yellow", "greenyellow"]`

1. Object
Colors can be specified using a javascript object assigning a color to each context. If a context is not assigned a color, the coresponding "random" color is used.

`"colors" : { "CG" : "#A36085", "CHG": "#0072B2", "CHH" : "#CF8F00", "CH" : "#88C043" }`


![Example for color parameters](img/example_colors.png)

Expand All @@ -91,4 +88,4 @@ Additional parameters that can be specified for the track configuration.

##Future Plans
- Show pixel score along track for each sequence context
- Ability to add track locally by adding option to menu bar, "File"
- Ability to add track locally by adding option to menu bar, "File"

0 comments on commit 8c182b0

Please sign in to comment.