Skip to content

Commit 0053a1d

Browse files
committed
Improve MCC plot colors
1 parent ee64fab commit 0053a1d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

mcc/src/client/GeneticsPlot/GeneticsPlot.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ export function GeneticsPlot() {
126126
that can describe the genetic relatedness between two individuals. We estimated genetic relatedness for
127127
all pairs of individuals for which we have whole-genome data, and made these available under the
128128
**Kinship** tab. There you will find the inferred relationships between pairs of individuals as well as
129-
the calculated kinship coefficient, which is a quantitative measure of genetic relatedness (see
130-
<a href="https://en.wikipedia.org/wiki/Coefficient_of_relationship#Kinship_coefficient">here</a> for more details).
129+
the calculated kinship coefficient, which is a quantitative measure of genetic relatedness
130+
(see <a href="https://en.wikipedia.org/wiki/Coefficient_of_relationship#Kinship_coefficient">here</a> for more details).
131131
<p/>
132132
It is possible to explore the full MCC database of variants with a graphical interface by accessing the
133133
**Genome Browser** tab. There you can, for example, visualize all the variants present in your gene of

mcc/src/client/GeneticsPlot/ScatterChart.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ export default function ScatterChart(props: {data: any}) {
3131

3232
const dataByColony = []
3333
const uniqueColonies = [...new Set(collectedData.map(x => String(x.colony)))]
34-
const colors = palette(['Set1', 'sequential'], uniqueColonies.length);
34+
const colors = palette(['Set1', 'qualitative'], uniqueColonies.length);
3535

3636
uniqueColonies.forEach((colonyName : string, idx) => {
3737
dataByColony.push({
3838
label: colonyName,
39-
backgroundColor: colors[idx],
39+
backgroundColor: '#' + colors[idx],
4040
data: collectedData.filter(x => x.colony == colonyName)
4141
})
4242
})

0 commit comments

Comments
 (0)