Skip to content

Commit

Permalink
Merge branch 'fix-colors' into 'dev'
Browse files Browse the repository at this point in the history
fix color

See merge request epi2melabs/workflow-containers/wf-alignment!57
  • Loading branch information
sarahjeeeze committed Jun 29, 2022
2 parents 388906b + cec7de8 commit 29f01e0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v0.1.7]
### Fixed
- Coloring with less than 3 samples

## [v0.1.6]
### Fixed
- run id and barcode output correctly
Expand Down
2 changes: 1 addition & 1 deletion bin/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ def plot_base_pairs(self, data):
data = pd.Series(base_pairs).reset_index(
name='value').rename(columns={'index': 'group'})
data['angle'] = data['value']/data['value'].sum() * 2 * math.pi
if len(base_pairs) > 1:
if Category20c.get(len(base_pairs)):
data['color'] = Category20c[len(base_pairs)]
else:
data['color'] = Colors.cerulean
Expand Down
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
params {
help = false
out_dir = "output"
wfversion = "v0.1.6"
wfversion = "v0.1.7"
fastq = null
references = null
counts = "NO_COUNTS"
Expand Down
2 changes: 1 addition & 1 deletion nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
},
"wfversion": {
"type": "string",
"default": "v0.1.6",
"default": "v0.1.7",
"hidden": true
}
}
Expand Down

0 comments on commit 29f01e0

Please sign in to comment.