Skip to content

Commit

Permalink
Update website
Browse files Browse the repository at this point in the history
  • Loading branch information
nvelden committed Jan 2, 2025
1 parent 275cc20 commit 140b9ea
Show file tree
Hide file tree
Showing 382 changed files with 205,978 additions and 88,337 deletions.
2 changes: 1 addition & 1 deletion docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/LICENSE-text.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/LICENSE.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions docs/articles/BLASTP.html

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions docs/articles/BLASTP_files/D3-7.8.5/geneviewer.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
dependencies:
- name: geneviewerwidget
version: 0.1.8
version: 0.1.10
src: htmlwidgets
script: geneviewerwidget.js
- name: Themes
version: 0.1.8
version: 0.1.10
src: htmlwidgets
script: ./lib/geneviewer-0.1.8/Themes.js
script: ./lib/geneviewer-0.1.10/Themes.js
- name: geneviewer
version: 0.1.8
version: 0.1.10
src: htmlwidgets
script: ./lib/geneviewer-0.1.8/geneviewer.js
script: ./lib/geneviewer-0.1.10/geneviewer.js
- name: D3
version: 7.8.5
src: htmlwidgets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,6 @@ function mergeOptions(defaultOptions, themeOptionsKey, userOptions) {
function getColorScale(colorScheme, customColors, uniqueGroups) {
let colorScale;

//customColors = { ...(customColors || {}), null: "#FFF" };

const schemeCategory30 = [
"#1f77b4", "#ff7f0e", "#2ca02c", "#d62728", "#9467bd",
"#8c564b", "#e377c2", "#7f7f7f", "#bcbd22", "#17becf",
Expand All @@ -362,9 +360,18 @@ function getColorScale(colorScheme, customColors, uniqueGroups) {
"#8c6d31", "#e7cb94", "#e7969c", "#7b4173", "#a55194"
];

// Check if customColors is an object and not an array
if (customColors && typeof customColors === 'object' && !Array.isArray(customColors)) {
// Create a color scale based on the customColors object
if (customColors && typeof customColors === "string") {
// Handle customColors as a single color
colorScale = d3.scaleOrdinal()
.domain(uniqueGroups)
.range(uniqueGroups.map(() => customColors));
} else if (customColors && Array.isArray(customColors)) {
// Handle customColors as an array
colorScale = d3.scaleOrdinal()
.domain(uniqueGroups)
.range(uniqueGroups.map((group, index) => customColors[index % customColors.length] || "#FFF"));
} else if (customColors && typeof customColors === 'object') {
// Handle customColors as an object
colorScale = d3.scaleOrdinal()
.domain(uniqueGroups)
.range(uniqueGroups.map(group => customColors[group] || "#FFF"));
Expand All @@ -381,15 +388,18 @@ function getColorScale(colorScheme, customColors, uniqueGroups) {
}
}
} else {
// Default to schemeCategory30
colorScale = d3.scaleOrdinal(schemeCategory30)
.domain(uniqueGroups)
.range(uniqueGroups.map(group =>
group === "No Hit" || group === null ? "#FFF" : schemeCategory30[uniqueGroups.indexOf(group) % schemeCategory30.length]
));
}

return colorScale;
}


function isInAnyDiscontinuity(value, breaks) {
for (let gap of breaks) {
if (value >= gap.start && value <= gap.end) {
Expand Down
10 changes: 5 additions & 5 deletions docs/articles/BLASTP_files/FileSaver-2.0.4-2.0.4/geneviewer.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
dependencies:
- name: geneviewerwidget
version: 0.1.8
version: 0.1.10
src: htmlwidgets
script: geneviewerwidget.js
- name: Themes
version: 0.1.8
version: 0.1.10
src: htmlwidgets
script: ./lib/geneviewer-0.1.8/Themes.js
script: ./lib/geneviewer-0.1.10/Themes.js
- name: geneviewer
version: 0.1.8
version: 0.1.10
src: htmlwidgets
script: ./lib/geneviewer-0.1.8/geneviewer.js
script: ./lib/geneviewer-0.1.10/geneviewer.js
- name: D3
version: 7.8.5
src: htmlwidgets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,6 @@ function mergeOptions(defaultOptions, themeOptionsKey, userOptions) {
function getColorScale(colorScheme, customColors, uniqueGroups) {
let colorScale;

//customColors = { ...(customColors || {}), null: "#FFF" };

const schemeCategory30 = [
"#1f77b4", "#ff7f0e", "#2ca02c", "#d62728", "#9467bd",
"#8c564b", "#e377c2", "#7f7f7f", "#bcbd22", "#17becf",
Expand All @@ -362,9 +360,18 @@ function getColorScale(colorScheme, customColors, uniqueGroups) {
"#8c6d31", "#e7cb94", "#e7969c", "#7b4173", "#a55194"
];

// Check if customColors is an object and not an array
if (customColors && typeof customColors === 'object' && !Array.isArray(customColors)) {
// Create a color scale based on the customColors object
if (customColors && typeof customColors === "string") {
// Handle customColors as a single color
colorScale = d3.scaleOrdinal()
.domain(uniqueGroups)
.range(uniqueGroups.map(() => customColors));
} else if (customColors && Array.isArray(customColors)) {
// Handle customColors as an array
colorScale = d3.scaleOrdinal()
.domain(uniqueGroups)
.range(uniqueGroups.map((group, index) => customColors[index % customColors.length] || "#FFF"));
} else if (customColors && typeof customColors === 'object') {
// Handle customColors as an object
colorScale = d3.scaleOrdinal()
.domain(uniqueGroups)
.range(uniqueGroups.map(group => customColors[group] || "#FFF"));
Expand All @@ -381,15 +388,18 @@ function getColorScale(colorScheme, customColors, uniqueGroups) {
}
}
} else {
// Default to schemeCategory30
colorScale = d3.scaleOrdinal(schemeCategory30)
.domain(uniqueGroups)
.range(uniqueGroups.map(group =>
group === "No Hit" || group === null ? "#FFF" : schemeCategory30[uniqueGroups.indexOf(group) % schemeCategory30.length]
));
}

return colorScale;
}


function isInAnyDiscontinuity(value, breaks) {
for (let gap of breaks) {
if (value >= gap.start && value <= gap.end) {
Expand Down
26 changes: 26 additions & 0 deletions docs/articles/BLASTP_files/Themes-0.1.10/geneviewer.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
dependencies:
- name: geneviewerwidget
version: 0.1.10
src: htmlwidgets
script: geneviewerwidget.js
- name: Themes
version: 0.1.10
src: htmlwidgets
script: ./lib/geneviewer-0.1.10/Themes.js
- name: geneviewer
version: 0.1.10
src: htmlwidgets
script: ./lib/geneviewer-0.1.10/geneviewer.js
- name: D3
version: 7.8.5
src: htmlwidgets
script: ./lib/D3-7.8.5/d3.min.js
stylesheet: ./lib/styles.css
- name: html2canvas
version: 1.4.1
src: htmlwidgets
script: ./lib/html2canvas-1.4.1/html2canvas.min.js
- name: FileSaver-2.0.4
version: 2.0.4
src: htmlwidgets
script: ./lib/FileSaver-2.0.4/FileSaver.min.js
Loading

0 comments on commit 140b9ea

Please sign in to comment.