Skip to content

Commit

Permalink
Table column colour schemes
Browse files Browse the repository at this point in the history
  • Loading branch information
ewels committed Jul 3, 2021
1 parent 7cc9384 commit 13e3b8e
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions multiqc/modules/nanostat/nanostat.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,35 +135,43 @@ def nanostat_stats_table(self, stat_type):
headers_base["Active channels"] = {
"title": "Active channels",
"description": "Active channels",
"scale": "YlGn",
"scale": "Greens",
"format": "{:,.0f}",
}
headers_base["Median read length"] = {
"title": f"Median length",
"description": f"Median read length (bp)",
"suffix": " bp",
"format": "{:,.0f}",
"shared_key": "nucleotides",
"scale": "YlGn",
"scale": "BuPu",
}
headers_base["Mean read length"] = {
"title": f"Mean length",
"description": f"Mean read length (bp)",
"suffix": " bp",
"scale": "YlGn",
"scale": "Purples",
"format": "{:,.0f}",
"shared_key": "nucleotides",
"hidden": True,
}
headers_base["Read length N50"] = {
"title": "Read N50",
"description": "Read length N50",
"format": "{:,.0f}",
"suffix": " bp",
"scale": "RdPu",
}
headers_base["Median read quality"] = {
"title": "Median Qual",
"description": "Median read quality (Phred scale)",
"shared_key": "phred_score",
"scale": "YlGn",
"scale": "RdYlGn",
}
headers_base["Mean read quality"] = {
"title": "Mean Qual",
"description": "Mean read quality (Phred scale)",
"scale": "YlGn",
"scale": "PiYG",
"shared_key": "phred_score",
"hidden": True,
}
Expand All @@ -173,15 +181,15 @@ def nanostat_stats_table(self, stat_type):
"min": 0,
"max": 100,
"suffix": "%",
"scale": "YlGn",
"scale": "RdYlBu",
"shared_key": "percent_identity",
}
headers_base["Average percent identity"] = {
"title": "Mean Identity",
"description": "Average percent identity",
"max": 100,
"suffix": "%",
"scale": "YlGn",
"scale": "Spectral",
"shared_key": "percent_identity",
"hidden": True,
}
Expand All @@ -192,26 +200,19 @@ def nanostat_stats_table(self, stat_type):
"shared_key": "long_read_count",
"scale": "YlGn",
}
headers_base["Read length N50"] = {
"title": "Read N50",
"description": "Read length N50",
"format": "{:,g}",
"suffix": " bp",
"scale": "YlGn",
}
headers_base["Total bases"] = {
"title": f"Total Bases ({config.base_count_prefix})",
"description": f"Total bases ({config.base_count_desc})",
"modify": lambda x: x * config.base_count_multiplier,
"shared_key": "base_count",
"scale": "YlGn",
"scale": "BrBG",
}
headers_base["Total bases aligned"] = {
"title": f"Aligned Bases ({config.base_count_prefix})",
"description": f"Total bases aligned ({config.base_count_desc})",
"modify": lambda x: x * config.base_count_multiplier,
"shared_key": "base_count",
"scale": "YlGn",
"scale": "PuOr",
}

# Add the stat_type suffix
Expand Down

0 comments on commit 13e3b8e

Please sign in to comment.