Skip to content

Commit 140b9ea

Browse files
committed
Update website
1 parent 275cc20 commit 140b9ea

File tree

382 files changed

+205978
-88337
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

382 files changed

+205978
-88337
lines changed

docs/404.html

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/LICENSE-text.html

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/LICENSE.html

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/BLASTP.html

+7-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/BLASTP_files/D3-7.8.5/geneviewer.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
dependencies:
22
- name: geneviewerwidget
3-
version: 0.1.8
3+
version: 0.1.10
44
src: htmlwidgets
55
script: geneviewerwidget.js
66
- name: Themes
7-
version: 0.1.8
7+
version: 0.1.10
88
src: htmlwidgets
9-
script: ./lib/geneviewer-0.1.8/Themes.js
9+
script: ./lib/geneviewer-0.1.10/Themes.js
1010
- name: geneviewer
11-
version: 0.1.8
11+
version: 0.1.10
1212
src: htmlwidgets
13-
script: ./lib/geneviewer-0.1.8/geneviewer.js
13+
script: ./lib/geneviewer-0.1.10/geneviewer.js
1414
- name: D3
1515
version: 7.8.5
1616
src: htmlwidgets

docs/articles/BLASTP_files/D3-7.8.5/lib/geneviewer-0.1.8/geneviewer.js docs/articles/BLASTP_files/D3-7.8.5/lib/geneviewer-0.1.10/geneviewer.js

+15-5
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,6 @@ function mergeOptions(defaultOptions, themeOptionsKey, userOptions) {
351351
function getColorScale(colorScheme, customColors, uniqueGroups) {
352352
let colorScale;
353353

354-
//customColors = { ...(customColors || {}), null: "#FFF" };
355-
356354
const schemeCategory30 = [
357355
"#1f77b4", "#ff7f0e", "#2ca02c", "#d62728", "#9467bd",
358356
"#8c564b", "#e377c2", "#7f7f7f", "#bcbd22", "#17becf",
@@ -362,9 +360,18 @@ function getColorScale(colorScheme, customColors, uniqueGroups) {
362360
"#8c6d31", "#e7cb94", "#e7969c", "#7b4173", "#a55194"
363361
];
364362

365-
// Check if customColors is an object and not an array
366-
if (customColors && typeof customColors === 'object' && !Array.isArray(customColors)) {
367-
// Create a color scale based on the customColors object
363+
if (customColors && typeof customColors === "string") {
364+
// Handle customColors as a single color
365+
colorScale = d3.scaleOrdinal()
366+
.domain(uniqueGroups)
367+
.range(uniqueGroups.map(() => customColors));
368+
} else if (customColors && Array.isArray(customColors)) {
369+
// Handle customColors as an array
370+
colorScale = d3.scaleOrdinal()
371+
.domain(uniqueGroups)
372+
.range(uniqueGroups.map((group, index) => customColors[index % customColors.length] || "#FFF"));
373+
} else if (customColors && typeof customColors === 'object') {
374+
// Handle customColors as an object
368375
colorScale = d3.scaleOrdinal()
369376
.domain(uniqueGroups)
370377
.range(uniqueGroups.map(group => customColors[group] || "#FFF"));
@@ -381,15 +388,18 @@ function getColorScale(colorScheme, customColors, uniqueGroups) {
381388
}
382389
}
383390
} else {
391+
// Default to schemeCategory30
384392
colorScale = d3.scaleOrdinal(schemeCategory30)
385393
.domain(uniqueGroups)
386394
.range(uniqueGroups.map(group =>
387395
group === "No Hit" || group === null ? "#FFF" : schemeCategory30[uniqueGroups.indexOf(group) % schemeCategory30.length]
388396
));
389397
}
398+
390399
return colorScale;
391400
}
392401

402+
393403
function isInAnyDiscontinuity(value, breaks) {
394404
for (let gap of breaks) {
395405
if (value >= gap.start && value <= gap.end) {

docs/articles/BLASTP_files/FileSaver-2.0.4-2.0.4/geneviewer.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
dependencies:
22
- name: geneviewerwidget
3-
version: 0.1.8
3+
version: 0.1.10
44
src: htmlwidgets
55
script: geneviewerwidget.js
66
- name: Themes
7-
version: 0.1.8
7+
version: 0.1.10
88
src: htmlwidgets
9-
script: ./lib/geneviewer-0.1.8/Themes.js
9+
script: ./lib/geneviewer-0.1.10/Themes.js
1010
- name: geneviewer
11-
version: 0.1.8
11+
version: 0.1.10
1212
src: htmlwidgets
13-
script: ./lib/geneviewer-0.1.8/geneviewer.js
13+
script: ./lib/geneviewer-0.1.10/geneviewer.js
1414
- name: D3
1515
version: 7.8.5
1616
src: htmlwidgets

docs/articles/BLASTP_files/FileSaver-2.0.4-2.0.4/lib/geneviewer-0.1.8/geneviewer.js docs/articles/BLASTP_files/FileSaver-2.0.4-2.0.4/lib/geneviewer-0.1.10/geneviewer.js

+15-5
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,6 @@ function mergeOptions(defaultOptions, themeOptionsKey, userOptions) {
351351
function getColorScale(colorScheme, customColors, uniqueGroups) {
352352
let colorScale;
353353

354-
//customColors = { ...(customColors || {}), null: "#FFF" };
355-
356354
const schemeCategory30 = [
357355
"#1f77b4", "#ff7f0e", "#2ca02c", "#d62728", "#9467bd",
358356
"#8c564b", "#e377c2", "#7f7f7f", "#bcbd22", "#17becf",
@@ -362,9 +360,18 @@ function getColorScale(colorScheme, customColors, uniqueGroups) {
362360
"#8c6d31", "#e7cb94", "#e7969c", "#7b4173", "#a55194"
363361
];
364362

365-
// Check if customColors is an object and not an array
366-
if (customColors && typeof customColors === 'object' && !Array.isArray(customColors)) {
367-
// Create a color scale based on the customColors object
363+
if (customColors && typeof customColors === "string") {
364+
// Handle customColors as a single color
365+
colorScale = d3.scaleOrdinal()
366+
.domain(uniqueGroups)
367+
.range(uniqueGroups.map(() => customColors));
368+
} else if (customColors && Array.isArray(customColors)) {
369+
// Handle customColors as an array
370+
colorScale = d3.scaleOrdinal()
371+
.domain(uniqueGroups)
372+
.range(uniqueGroups.map((group, index) => customColors[index % customColors.length] || "#FFF"));
373+
} else if (customColors && typeof customColors === 'object') {
374+
// Handle customColors as an object
368375
colorScale = d3.scaleOrdinal()
369376
.domain(uniqueGroups)
370377
.range(uniqueGroups.map(group => customColors[group] || "#FFF"));
@@ -381,15 +388,18 @@ function getColorScale(colorScheme, customColors, uniqueGroups) {
381388
}
382389
}
383390
} else {
391+
// Default to schemeCategory30
384392
colorScale = d3.scaleOrdinal(schemeCategory30)
385393
.domain(uniqueGroups)
386394
.range(uniqueGroups.map(group =>
387395
group === "No Hit" || group === null ? "#FFF" : schemeCategory30[uniqueGroups.indexOf(group) % schemeCategory30.length]
388396
));
389397
}
398+
390399
return colorScale;
391400
}
392401

402+
393403
function isInAnyDiscontinuity(value, breaks) {
394404
for (let gap of breaks) {
395405
if (value >= gap.start && value <= gap.end) {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
dependencies:
2+
- name: geneviewerwidget
3+
version: 0.1.10
4+
src: htmlwidgets
5+
script: geneviewerwidget.js
6+
- name: Themes
7+
version: 0.1.10
8+
src: htmlwidgets
9+
script: ./lib/geneviewer-0.1.10/Themes.js
10+
- name: geneviewer
11+
version: 0.1.10
12+
src: htmlwidgets
13+
script: ./lib/geneviewer-0.1.10/geneviewer.js
14+
- name: D3
15+
version: 7.8.5
16+
src: htmlwidgets
17+
script: ./lib/D3-7.8.5/d3.min.js
18+
stylesheet: ./lib/styles.css
19+
- name: html2canvas
20+
version: 1.4.1
21+
src: htmlwidgets
22+
script: ./lib/html2canvas-1.4.1/html2canvas.min.js
23+
- name: FileSaver-2.0.4
24+
version: 2.0.4
25+
src: htmlwidgets
26+
script: ./lib/FileSaver-2.0.4/FileSaver.min.js

0 commit comments

Comments
 (0)