@lipme/vue-blast-viewer 1.0.18 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -17
- package/dist/components/BlastAlignmentDetails.vue.d.ts +6 -1
- package/dist/components/BlastGraphicViewer.vue.d.ts +1 -0
- package/dist/components/BlastHspAlignment.vue.d.ts +8 -0
- package/dist/components/BlastViewer.vue.d.ts +8 -1
- package/dist/components/BvIcon.vue.d.ts +23 -0
- package/dist/components/HspTooltip.vue.d.ts +8 -0
- package/dist/types.d.ts +5 -0
- package/dist/utils.d.ts +72 -0
- package/dist/vue-blast-viewer.js +929 -609
- package/dist/vue-blast-viewer.umd.cjs +3 -3
- package/package.json +13 -10
- package/dist/App.vue.d.ts +0 -3
- package/dist/main.d.ts +0 -1
- package/dist/mockData.d.ts +0 -3
package/dist/vue-blast-viewer.js
CHANGED
|
@@ -1,7 +1,128 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`:root{--font-sans:"Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;--font-mono:"Fira Code", source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;--bg-primary:#0a0e17;--bg-secondary:#111827;--bg-card:#141b2da6;--bg-card-hover:#1c263ecc;--border-color:#ffffff14;--border-color-hover:#ffffff29;--text-primary:#f3f4f6;--text-secondary:#9ca3af;--text-muted:#6b7280;--bg-header:#0a0e17cc;--bg-overlay-hover:#ffffff08;--bg-overlay-1:#ffffff0d;--bg-overlay-2:#ffffff1a;--bg-depth:#00000040;--bg-depth-light:#00000026;--color-primary:#3b82f6;--color-primary-glow:#3b82f626;--color-secondary:#8b5cf6;--color-secondary-glow:#8b5cf626;--color-success:#10b981;--color-warning:#f59e0b;--color-danger:#ef4444;--blast-score-low:#4b5563;--blast-score-mid-low:#3b82f6;--blast-score-mid:#10b981;--blast-score-mid-high:#ec4899;--blast-score-high:#ef4444;--card-blur:16px;--shadow-sm:0 2px 8px #0003;--shadow-md:0 8px 24px #00000059;--shadow-lg:0 16px 48px #00000080;--shadow-glow:0 0 15px #3b82f64d;--radius-sm:6px;--radius-md:12px;--radius-lg:18px;--transition-fast:.15s ease;--transition-normal:.3s cubic-bezier(.4, 0, .2, 1)}:root[data-theme=light],[data-theme=light]{--bg-primary:#f9fafb;--bg-secondary:#e5e7eb;--bg-card:#ffffffd9;--bg-card-hover:#fff;--border-color:#0000001a;--border-color-hover:#0003;--text-primary:#111827;--bg-header:#f9fafbcc;--text-secondary:#374151;--text-muted:#6b7280;--color-primary-glow:#3b82f633;--color-secondary-glow:#8b5cf633;--bg-overlay-hover:#00000008;--bg-overlay-1:#0000000d;--bg-overlay-2:#0000001a;--bg-depth:#ffffffb3;--bg-depth-light:#ffffff80;--blast-score-low:#000}.blast-viewer *,.blast-viewer :before,.blast-viewer :after{box-sizing:border-box;margin:0;padding:0}.blast-viewer{font-family:var(--font-sans);background-color:var(--bg-primary);color:var(--text-primary);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.6}.blast-viewer ::-webkit-scrollbar{width:10px;height:10px}.blast-viewer ::-webkit-scrollbar-track{background:var(--bg-primary)}.blast-viewer ::-webkit-scrollbar-thumb{background:var(--border-color-hover);border-radius:var(--radius-sm);border:2px solid var(--bg-primary)}.blast-viewer ::-webkit-scrollbar-thumb:hover{background:var(--border-color-hover)}.blast-viewer .container{width:100%;max-width:1400px;margin:0 auto;padding:2rem 1.5rem}.blast-viewer .glass-panel{background:var(--bg-card);-webkit-backdrop-filter:blur(var(--card-blur));border:1px solid var(--border-color);border-radius:var(--radius-md);box-shadow:var(--shadow-md);transition:border-color var(--transition-normal), background-color var(--transition-normal), box-shadow var(--transition-normal)}.blast-viewer .glass-panel:hover{border-color:var(--border-color-hover);background:var(--bg-card-hover)}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes pulse-glow{0%,to{box-shadow:0 0 10px #3b82f61a}50%{box-shadow:0 0 20px #3b82f64d}}.blast-viewer .fade-in{animation:fadeIn var(--transition-normal) forwards}.blast-viewer .sequence-font{font-family:var(--font-mono);letter-spacing:.05em;word-break:break-all;font-size:.9rem}.blast-viewer .btn{font-family:var(--font-sans);border-radius:var(--radius-sm);cursor:pointer;transition:all var(--transition-fast);border:1px solid #0000;justify-content:center;align-items:center;gap:.5rem;padding:.625rem 1.25rem;font-size:.9rem;font-weight:600;display:inline-flex}.blast-viewer .btn-primary{background:var(--color-primary);color:#fff}.blast-viewer .btn-primary:hover{background:#2563eb;transform:translateY(-1px);box-shadow:0 0 15px #2563eb66}.blast-viewer .btn-secondary{background:var(--bg-secondary);color:var(--text-primary);border-color:var(--border-color)}.blast-viewer .btn-secondary:hover{background:var(--border-color-hover);border-color:var(--border-color-hover);transform:translateY(-1px)}.blast-viewer .input-text{background:var(--bg-secondary);border:1px solid var(--border-color);border-radius:var(--radius-sm);color:var(--text-primary);font-family:var(--font-sans);transition:all var(--transition-fast);outline:none;padding:.625rem 1rem}.blast-viewer .input-text:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px var(--color-primary-glow)}.blast-tooltip{pointer-events:none;background:var(--bg-secondary);border:1px solid var(--border-color-hover);border-radius:var(--radius-sm);box-shadow:var(--shadow-lg);z-index:100;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);padding:.2rem;font-size:.8rem;position:absolute}.blast-tooltip table{border-collapse:collapse;width:100%}.blast-tooltip td{padding:2px 4px}.blast-tooltip td.label{color:var(--text-secondary);padding-right:8px;font-weight:500}.blast-tooltip td.val{color:var(--text-primary);font-family:var(--font-mono);font-weight:600}.blast-header[data-v-744363ae]{flex-direction:column;gap:1.5rem;margin-bottom:2rem;display:flex}.header-main[data-v-744363ae]{justify-content:space-between;align-items:flex-start;gap:1.5rem;padding:1.5rem;display:flex}.title-section[data-v-744363ae]{flex-direction:column;gap:.5rem;display:flex}.query-link[data-v-744363ae]{color:var(--color-primary);transition:border-color var(--transition-fast);border-bottom:1px dashed #3b82f64d;font-weight:600;text-decoration:none}.query-link[data-v-744363ae]:hover{border-bottom-color:var(--color-primary)}.program-badge[data-v-744363ae]{font-family:var(--font-mono);text-transform:uppercase;letter-spacing:.05em;background:var(--color-primary-glow);color:var(--color-primary);border:1px solid #3b82f64d;border-radius:50px;align-self:flex-start;padding:.25rem .75rem;font-size:.75rem;font-weight:600}.program-badge.blastn[data-v-744363ae]{color:var(--color-success);background:#10b98126;border-color:#10b9814d}.program-badge.blastp[data-v-744363ae]{color:var(--color-secondary);background:#8b5cf626;border-color:#8b5cf64d}h1[data-v-744363ae]{color:var(--text-primary);letter-spacing:-.02em;font-size:1.5rem;font-weight:700;line-height:1.3}.query-meta[data-v-744363ae]{color:var(--text-secondary);font-size:.85rem}.query-meta strong[data-v-744363ae]{color:var(--text-primary)}.version-section[data-v-744363ae]{text-align:right;flex-shrink:0}.version-text[data-v-744363ae]{font-family:var(--font-mono);color:var(--text-muted);font-size:.75rem}.stats-grid[data-v-744363ae]{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;display:grid}.stat-card[data-v-744363ae]{align-items:center;gap:1.25rem;padding:1.25rem;display:flex}.stat-icon[data-v-744363ae]{background:var(--bg-overlay-hover);border-radius:var(--radius-sm);border:1px solid var(--border-color);justify-content:center;align-items:center;width:48px;height:48px;font-size:1.75rem;display:flex}.stat-info[data-v-744363ae]{flex-direction:column;gap:.15rem;display:flex}.stat-label[data-v-744363ae]{text-transform:uppercase;letter-spacing:.05em;color:var(--text-secondary);font-size:.75rem;font-weight:500}.stat-value[data-v-744363ae]{color:var(--text-primary);font-size:1.25rem;font-weight:700;font-family:var(--font-mono)}.stat-unit[data-v-744363ae]{color:var(--text-secondary);font-size:.85rem;font-weight:500}@media (width<=768px){.header-main[data-v-744363ae]{flex-direction:column}.version-section[data-v-744363ae]{text-align:left}}.blast-graphics[data-v-103f8eb6]{margin-bottom:2rem;padding:1.5rem}.graphics-header[data-v-103f8eb6]{margin-bottom:1.25rem}.graphics-header h2[data-v-103f8eb6]{margin-bottom:.25rem;font-size:1.15rem;font-weight:600}.graphics-header p[data-v-103f8eb6]{color:var(--text-secondary);font-size:.85rem}.color-legend[data-v-103f8eb6]{background:var(--bg-depth-light);border-radius:var(--radius-sm);border:1px solid var(--border-color);flex-wrap:wrap;align-items:center;gap:.75rem;margin-bottom:1.5rem;padding:.75rem 1rem;display:flex}.legend-title[data-v-103f8eb6]{color:var(--text-secondary);font-size:.8rem;font-weight:600}.legend-items[data-v-103f8eb6]{flex-wrap:wrap;gap:1rem;display:flex}.legend-item[data-v-103f8eb6]{align-items:center;gap:.35rem;display:flex}.legend-color[data-v-103f8eb6]{border:1px solid var(--bg-overlay-2);border-radius:3px;width:14px;height:14px;display:inline-block}.legend-label[data-v-103f8eb6]{font-family:var(--font-mono);color:var(--text-primary);font-size:.75rem;font-weight:500}.svg-container[data-v-103f8eb6]{background:var(--bg-depth-light);border-radius:var(--radius-sm);border:1px solid var(--bg-overlay-hover);width:100%;padding:3rem 0;position:relative;overflow-x:auto}.alignment-svg[data-v-103f8eb6]{min-width:700px;display:block}.hit-row[data-v-103f8eb6]{cursor:pointer}.row-hover-bg[data-v-103f8eb6]{opacity:0;transition:opacity var(--transition-fast)}.hit-row:hover .row-hover-bg[data-v-103f8eb6],.hit-row.is-hovered .row-hover-bg[data-v-103f8eb6]{opacity:1}.hsp-bar[data-v-103f8eb6]{transition:transform var(--transition-fast), filter var(--transition-fast)}.hit-row:hover .hsp-bar[data-v-103f8eb6]{filter:brightness(1.2)}.hit-index-label[data-v-103f8eb6]{transition:fill var(--transition-fast)}.hit-row:hover .hit-index-label[data-v-103f8eb6]{fill:var(--text-primary)}.tooltip-title[data-v-103f8eb6]{color:var(--text-primary);text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-bottom:.25rem;font-size:.85rem;font-weight:600;display:-webkit-box;overflow:hidden}.tooltip-acc[data-v-103f8eb6]{font-family:var(--font-mono);color:var(--color-primary);margin-bottom:.5rem;font-size:.75rem}.tooltip-divider[data-v-103f8eb6]{border:none;border-top:1px solid var(--bg-overlay-2);margin:.5rem 0}.blast-hit-table[data-v-c61be3a9]{flex-direction:column;gap:1.25rem;margin-bottom:2rem;padding:1.5rem;display:flex}.table-controls[data-v-c61be3a9]{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;display:flex}.controls-right[data-v-c61be3a9]{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.export-btn[data-v-c61be3a9]{background:var(--bg-overlay-1);border:1px solid var(--border-color);align-items:center;gap:.35rem;height:38px;display:flex}.export-btn[data-v-c61be3a9]:hover{background:var(--bg-overlay-2)}.title-group h2[data-v-c61be3a9]{font-size:1.15rem;font-weight:600}.results-count[data-v-c61be3a9]{color:var(--text-secondary);font-size:.8rem}.search-box[data-v-c61be3a9]{width:100%;max-width:320px;position:relative}.filter-input[data-v-c61be3a9]{width:100%;padding-right:2.2rem}.clear-search[data-v-c61be3a9]{cursor:pointer;color:var(--text-secondary);transition:color var(--transition-fast);font-size:.85rem;position:absolute;top:50%;right:.75rem;transform:translateY(-50%)}.clear-search[data-v-c61be3a9]:hover{color:var(--text-primary)}.table-container[data-v-c61be3a9]{border-radius:var(--radius-sm);background:var(--bg-depth-light);border:1px solid var(--bg-overlay-hover);width:100%;overflow-x:auto}table[data-v-c61be3a9]{border-collapse:collapse;text-align:left;width:100%;font-size:.85rem}th[data-v-c61be3a9]{background:var(--bg-depth);color:var(--text-secondary);border-bottom:1px solid var(--border-color);-webkit-user-select:none;user-select:none;text-transform:uppercase;letter-spacing:.05em;padding:.75rem 1rem;font-size:.75rem;font-weight:600}th.sortable[data-v-c61be3a9]{cursor:pointer;transition:color var(--transition-fast), background-color var(--transition-fast)}th.sortable[data-v-c61be3a9]:hover{color:var(--text-primary);background:var(--bg-overlay-hover)}th.active-sort[data-v-c61be3a9]{color:var(--color-primary)}th.active-sort[data-v-c61be3a9]:after{content:" ▾";font-weight:900}th.active-sort.asc[data-v-c61be3a9]:after{content:" ▴"}td[data-v-c61be3a9]{border-bottom:1px solid var(--border-color);vertical-align:middle;padding:.75rem 1rem}.main-row[data-v-c61be3a9]{transition:background-color var(--transition-fast)}.main-row[data-v-c61be3a9]:hover{background:var(--bg-overlay-hover)}.main-row.expanded[data-v-c61be3a9]{background:var(--color-primary-glow)}.expand-cell[data-v-c61be3a9]{text-align:center;cursor:pointer;width:36px}.chevron[data-v-c61be3a9]{transition:transform var(--transition-fast);color:var(--text-secondary);font-size:.65rem;display:inline-block}.chevron.open[data-v-c61be3a9]{color:var(--color-primary);transform:rotate(90deg)}.desc-cell[data-v-c61be3a9]{cursor:pointer;max-width:350px}.desc-title[data-v-c61be3a9]{color:var(--text-primary);text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.desc-meta[data-v-c61be3a9]{color:var(--text-muted);margin-top:.15rem;font-size:.75rem}.acc-link[data-v-c61be3a9]{color:var(--color-primary);transition:border-color var(--transition-fast);border-bottom:1px dashed #3b82f64d;font-weight:500;text-decoration:none}.acc-link[data-v-c61be3a9]:hover{border-bottom-color:var(--color-primary)}.numeric-cell[data-v-c61be3a9]{font-weight:500}.action-col[data-v-c61be3a9]{text-align:center;width:90px}.btn-xs[data-v-c61be3a9]{border-radius:4px;padding:.25rem .5rem;font-size:.7rem}.btn-sm[data-v-c61be3a9]{border-radius:4px;padding:.35rem .75rem;font-size:.75rem}.expand-row[data-v-c61be3a9]{background:#0003}.expanded-container[data-v-c61be3a9]{border-left:2px solid var(--color-primary);padding:1.25rem}.hsp-summary-box[data-v-c61be3a9]{flex-direction:column;gap:.75rem;display:flex}.hsp-summary-title[data-v-c61be3a9]{color:var(--text-secondary);font-size:.8rem;font-weight:600}.hsp-grid[data-v-c61be3a9]{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:.75rem;display:grid}.hsp-item-card[data-v-c61be3a9]{border:1px solid var(--border-color);border-radius:var(--radius-sm);background:#ffffff05;flex-direction:column;gap:.5rem;padding:.75rem;display:flex}.hsp-card-header[data-v-c61be3a9]{border-bottom:1px solid var(--border-color);justify-content:space-between;align-items:center;padding-bottom:.35rem;display:flex}.hsp-badge[data-v-c61be3a9]{font-family:var(--font-mono);color:var(--text-primary);font-size:.75rem;font-weight:600}.hsp-card-body[data-v-c61be3a9]{flex-direction:column;gap:.25rem;font-size:.8rem;display:flex}.hsp-detail-row[data-v-c61be3a9]{justify-content:space-between;display:flex}.hsp-det-lbl[data-v-c61be3a9]{color:var(--text-secondary)}.hsp-det-val[data-v-c61be3a9]{color:var(--text-primary);font-weight:500}.empty-cell[data-v-c61be3a9]{text-align:center;color:var(--text-secondary);padding:2rem;font-style:italic}.pagination[data-v-c61be3a9]{justify-content:center;align-items:center;gap:1.5rem;margin-top:.5rem;font-size:.85rem;display:flex}.btn-pagination[data-v-c61be3a9]{padding:.4rem .8rem;font-size:.8rem}.page-indicator[data-v-c61be3a9]{color:var(--text-secondary)}.page-indicator strong[data-v-c61be3a9]{color:var(--text-primary)}@media (width<=1024px){.table-controls[data-v-c61be3a9]{flex-direction:column;align-items:flex-start}.search-box[data-v-c61be3a9]{max-width:100%}}.blast-alignments[data-v-b76137ff]{flex-direction:column;gap:1.25rem;display:flex}.alignments-title h2[data-v-b76137ff]{margin-bottom:.25rem;font-size:1.15rem;font-weight:600}.alignments-title p[data-v-b76137ff]{color:var(--text-secondary);font-size:.85rem}.hit-alignments-list[data-v-b76137ff]{flex-direction:column;gap:1rem;display:flex}.hit-alignment-card[data-v-b76137ff]{border-radius:var(--radius-md);transition:all var(--transition-normal);overflow:hidden}.hit-alignment-card.highlighted-flash[data-v-b76137ff]{box-shadow:0 0 25px var(--color-primary-glow), inset 0 0 15px #3b82f633;border-color:var(--color-primary);animation:2.5s infinite pulse-glow}.alignment-card-header[data-v-b76137ff]{cursor:pointer;background:var(--bg-overlay-1);-webkit-user-select:none;user-select:none;justify-content:space-between;align-items:center;padding:1rem 1.25rem;display:flex}.alignment-card-header[data-v-b76137ff]:hover{background:var(--bg-overlay-hover)}.header-desc[data-v-b76137ff]{align-items:center;gap:.75rem;min-width:0;display:flex}.chevron-icon[data-v-b76137ff]{color:var(--text-secondary);transition:transform var(--transition-fast);font-size:.65rem;display:inline-block}.chevron-icon.open[data-v-b76137ff]{color:var(--color-primary);transform:rotate(90deg)}.hit-title-box[data-v-b76137ff]{align-items:center;gap:.75rem;min-width:0;display:flex}.hit-index-badge[data-v-b76137ff]{background:var(--bg-overlay-1);color:var(--text-secondary);border-radius:4px;flex-shrink:0;padding:.15rem .5rem;font-size:.75rem;font-weight:600}.hit-main-title[data-v-b76137ff]{color:var(--text-primary);text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.header-meta[data-v-b76137ff]{flex-shrink:0;align-items:center;gap:.75rem;display:flex}.accession-badge[data-v-b76137ff]{background:var(--color-primary-glow);color:var(--color-primary);border-radius:4px;padding:.15rem .5rem;font-size:.75rem;font-weight:600}.length-badge[data-v-b76137ff]{color:var(--text-muted);font-size:.75rem}.alignment-card-content[data-v-b76137ff]{border-top:1px solid var(--border-color);background:var(--bg-depth-light);flex-direction:column;gap:2rem;padding:1.5rem;display:flex}.hsp-alignment-box[data-v-b76137ff]{flex-direction:column;gap:1.25rem;display:flex}.hsp-alignment-box[data-v-b76137ff]:not(:last-child){border-bottom:1px dashed var(--border-color);padding-bottom:2rem}.hsp-stats-banner[data-v-b76137ff]{background:var(--bg-depth);border:1px solid var(--border-color);border-radius:var(--radius-sm);flex-direction:column;gap:.35rem;padding:.75rem 1rem;display:flex}.hsp-banner-title[data-v-b76137ff]{color:var(--color-primary);font-size:.85rem;font-weight:700}.hsp-stats-grid[data-v-b76137ff]{flex-wrap:wrap;gap:1.5rem;display:flex}.hsp-stat-item[data-v-b76137ff]{gap:.35rem;font-size:.8rem;display:flex}.hsp-stat-item .lbl[data-v-b76137ff]{color:var(--text-secondary)}.hsp-stat-item .val[data-v-b76137ff]{color:var(--text-primary);font-weight:600}.sequence-alignment-area[data-v-b76137ff]{background:var(--bg-depth);border-radius:var(--radius-sm);border:1px solid var(--bg-overlay-hover);flex-direction:column;gap:1.25rem;padding:1rem;display:flex;overflow-x:auto}.alignment-block[data-v-b76137ff]{flex-direction:column;gap:.15rem;min-width:fit-content;display:flex}.alignment-line[data-v-b76137ff]{align-items:center;display:flex}.line-label[data-v-b76137ff]{width:50px;color:var(--text-secondary);-webkit-user-select:none;user-select:none;font-size:.75rem;font-weight:600}.line-coord[data-v-b76137ff]{width:50px;color:var(--text-muted);-webkit-user-select:none;user-select:none;font-size:.8rem}.start-coord[data-v-b76137ff]{text-align:right;padding-right:12px}.end-coord[data-v-b76137ff]{text-align:left;padding-left:12px}.line-chars[data-v-b76137ff]{font-size:.95rem;font-weight:500;display:flex}.char-cell[data-v-b76137ff]{text-align:center;width:11px;height:20px;transition:background-color var(--transition-fast);justify-content:center;align-items:center;display:inline-flex}.query-line .char-cell.match[data-v-b76137ff],.sbjct-line .char-cell.match[data-v-b76137ff]{color:var(--text-primary);background-color:#10b9810f}.query-line .char-cell.positive[data-v-b76137ff],.sbjct-line .char-cell.positive[data-v-b76137ff]{color:var(--text-primary);background-color:#8b5cf60f}.query-line .char-cell.mismatch[data-v-b76137ff],.sbjct-line .char-cell.mismatch[data-v-b76137ff]{color:#fb923c;background-color:#fb923c0d}.query-line .char-cell.gap[data-v-b76137ff],.sbjct-line .char-cell.gap[data-v-b76137ff]{color:var(--color-danger);background-color:#ef44441f;font-weight:700}.midline .char-cell[data-v-b76137ff]{color:var(--text-muted);opacity:.4;font-size:.7rem}.midline .char-cell.match[data-v-b76137ff]{color:var(--color-success);opacity:.85}.midline .char-cell.positive[data-v-b76137ff]{color:var(--color-secondary);opacity:.85}.blast-viewer[data-v-3b8e2be6]{flex-direction:column;gap:1.5rem;width:100%;display:flex}.error-panel[data-v-3b8e2be6]{text-align:center;border-color:var(--color-danger);flex-direction:column;align-items:center;gap:1rem;max-width:600px;margin:2rem auto;padding:3rem 2rem;display:flex}.error-icon[data-v-3b8e2be6]{font-size:3rem}.error-panel h3[data-v-3b8e2be6]{color:var(--color-danger);font-size:1.25rem;font-weight:700}.error-panel p[data-v-3b8e2be6]{color:var(--text-secondary);font-size:.9rem}.tabs-container[data-v-3b8e2be6]{border-radius:var(--radius-md);margin-bottom:2rem;overflow:hidden}.tabs-header[data-v-3b8e2be6]{background:var(--bg-depth);border-bottom:1px solid var(--border-color);display:flex}.tab-btn[data-v-3b8e2be6]{color:var(--text-secondary);font-family:var(--font-sans);cursor:pointer;transition:all var(--transition-fast);background:0 0;border:none;border-bottom:2px solid #0000;align-items:center;gap:.5rem;padding:1.25rem 2rem;font-size:.9rem;font-weight:600;display:flex}.tab-btn[data-v-3b8e2be6]:hover{color:var(--text-primary);background:var(--bg-overlay-1)}.tab-btn.active[data-v-3b8e2be6]{color:var(--color-primary);border-bottom-color:var(--color-primary);background:var(--bg-overlay-1)}.tabs-content[data-v-3b8e2be6]{padding:0}.tab-panel[data-v-3b8e2be6]{animation:fadeIn var(--transition-normal)}[data-v-3b8e2be6] .blast-hit-table,[data-v-3b8e2be6] .blast-alignments{box-shadow:none!important;-webkit-backdrop-filter:none!important;background:0 0!important;border:none!important}@media (width<=600px){.tabs-header[data-v-3b8e2be6]{flex-direction:column}.tab-btn[data-v-3b8e2be6]{text-align:left;border-bottom:none;border-left:2px solid #0000;width:100%;padding:1rem}.tab-btn.active[data-v-3b8e2be6]{border-left-color:var(--color-primary)}}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
2
|
-
import { Fragment as e,
|
|
3
|
-
|
|
4
|
-
var
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.blast-viewer,.bv-portal{--bv-font:Roboto, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;--bv-font-mono:"Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;--bv-primary:rgb(var(--v-theme-primary,24, 103, 192));--bv-on-primary:#fff;--bv-secondary:rgb(var(--v-theme-secondary,72, 169, 166));--bv-error:rgb(var(--v-theme-error,176, 0, 32));--bv-success:rgb(var(--v-theme-success,76, 175, 80));--bv-warning:rgb(var(--v-theme-warning,251, 140, 0));--bv-background:#fff;--bv-surface:#fff;--bv-surface-light:#f5f5f5;--bv-surface-variant:#fafafa;--bv-text:#000000de;--bv-text-medium:#0009;--bv-text-disabled:#00000061;--bv-border:#0000001f;--bv-hover:#0000000a;--bv-focus:#0000001f;--bv-tonal:color-mix(in srgb, var(--bv-primary) 12%, transparent);--bv-tonal-strong:color-mix(in srgb, var(--bv-primary) 20%, transparent);--bv-elevation-1:0 2px 1px -1px #0003, 0 1px 1px 0 #00000024, 0 1px 3px 0 #0000001f;--bv-elevation-4:0 2px 4px -1px #0003, 0 4px 5px 0 #00000024, 0 1px 10px 0 #0000001f;--bv-radius:4px;--bv-transition:.2s cubic-bezier(.4, 0, .2, 1);--bv-score-1:#424242;--bv-score-2:#1e88e5;--bv-score-3:#43a047;--bv-score-4:#d81b60;--bv-score-5:#e53935;--bv-aln-match-bg:#4caf501f;--bv-aln-positive-bg:#48a9a629;--bv-aln-mismatch:#c62828;--bv-aln-mismatch-bg:#e539351a;--bv-aln-gap:#6d4c41;--bv-aln-gap-bg:#ff98002e;--bv-aln-mid:#2e7d32}.blast-viewer.bv-theme--dark,.bv-portal.bv-theme--dark{--bv-primary:#2196f3;--bv-on-primary:#fff;--bv-secondary:#54b6b2;--bv-error:#cf6679;--bv-background:#121212;--bv-surface:#212121;--bv-surface-light:#2a2a2a;--bv-surface-variant:#1a1a1a;--bv-text:#ffffffde;--bv-text-medium:#fff9;--bv-text-disabled:#ffffff61;--bv-border:#ffffff1f;--bv-hover:#ffffff14;--bv-focus:#ffffff29;--bv-elevation-1:0 2px 1px -1px #0006, 0 1px 1px 0 #00000047, 0 1px 3px 0 #0000003d;--bv-elevation-4:0 2px 4px -1px #0006, 0 4px 5px 0 #00000047, 0 1px 10px 0 #0000003d;--bv-score-1:#9e9e9e;--bv-score-2:#42a5f5;--bv-score-3:#66bb6a;--bv-score-4:#ec407a;--bv-score-5:#ef5350;--bv-aln-match-bg:#66bb6a29;--bv-aln-positive-bg:#54b6b233;--bv-aln-mismatch:#ef9a9a;--bv-aln-mismatch-bg:#ef535029;--bv-aln-gap:#ffcc80;--bv-aln-gap-bg:#ff980033;--bv-aln-mid:#81c784}.blast-viewer,.bv-portal{font-family:var(--bv-font);color:var(--bv-text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-align:left;font-size:.875rem;line-height:1.5}.blast-viewer *,.blast-viewer :before,.blast-viewer :after,.bv-portal *,.bv-portal :before,.bv-portal :after{box-sizing:border-box;margin:0}.blast-viewer a,.blast-viewer a:hover,.blast-viewer a:visited{color:var(--bv-primary);background:0 0;padding:0;text-decoration:none;transition:none}.blast-viewer a:hover{text-decoration:underline}.blast-viewer :focus-visible{outline:2px solid var(--bv-primary);outline-offset:1px}.blast-viewer .bv-mono{font-family:var(--bv-font-mono);font-variant-numeric:tabular-nums}.blast-viewer .bv-card{background:var(--bv-surface);border-radius:var(--bv-radius);box-shadow:var(--bv-elevation-1)}.blast-viewer .bv-card--outlined{background:var(--bv-surface);border:1px solid var(--bv-border);border-radius:var(--bv-radius)}.blast-viewer .bv-card-title{letter-spacing:.0125em;font-size:1.25rem;font-weight:500;line-height:2rem}.blast-viewer .bv-card-subtitle{color:var(--bv-text-medium);letter-spacing:.0094em;font-size:.875rem}.blast-viewer .bv-overline{letter-spacing:.1666em;text-transform:uppercase;color:var(--bv-text-medium);font-size:.75rem;font-weight:500;line-height:1.5}.blast-viewer .bv-btn{appearance:none;border-radius:var(--bv-radius);height:36px;color:inherit;font:inherit;letter-spacing:.0892857em;text-transform:uppercase;white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;transition:box-shadow var(--bv-transition), background-color var(--bv-transition);background:0 0;border:0;justify-content:center;align-items:center;gap:6px;padding:0 16px;font-size:.875rem;font-weight:500;display:inline-flex;position:relative;overflow:hidden}.blast-viewer .bv-btn:after{content:"";opacity:0;pointer-events:none;transition:opacity var(--bv-transition);background:currentColor;position:absolute;inset:0}.blast-viewer .bv-btn:hover:after{opacity:.04}.blast-viewer .bv-btn:focus-visible:after{opacity:.12}.blast-viewer .bv-btn:active:after{opacity:.16}.blast-viewer .bv-btn:disabled{color:var(--bv-text-disabled);cursor:default;pointer-events:none}.blast-viewer .bv-btn--flat{background:var(--bv-primary);color:var(--bv-on-primary)}.blast-viewer .bv-btn--tonal{background:var(--bv-tonal);color:var(--bv-primary)}.blast-viewer .bv-btn--outlined{border:1px solid var(--bv-border);color:var(--bv-primary)}.blast-viewer .bv-btn--text{color:var(--bv-primary)}.blast-viewer .bv-btn--small{height:28px;padding:0 12px;font-size:.8125rem}.blast-viewer .bv-btn--x-small{gap:4px;height:20px;padding:0 8px;font-size:.625rem}.blast-viewer .bv-btn--icon{width:36px;height:36px;color:var(--bv-text-medium);letter-spacing:0;border-radius:50%;padding:0}.blast-viewer .bv-btn--icon.bv-btn--small{width:28px;height:28px}.blast-viewer .bv-chip{background:var(--bv-hover);height:24px;color:var(--bv-text);white-space:nowrap;text-overflow:ellipsis;border-radius:9999px;align-items:center;gap:4px;max-width:100%;padding:0 10px;font-size:.75rem;font-weight:400;display:inline-flex;overflow:hidden}.blast-viewer .bv-chip--primary{background:var(--bv-tonal);color:var(--bv-primary)}.blast-viewer .bv-chip--label{border-radius:var(--bv-radius)}.blast-viewer .bv-field{border-radius:var(--bv-radius);background:var(--bv-surface);height:40px;color:var(--bv-text-medium);transition:border-color var(--bv-transition);border:1px solid #00000061;align-items:center;gap:8px;padding:0 12px;display:flex;position:relative}.blast-viewer.bv-theme--dark .bv-field{border-color:#ffffff61}.blast-viewer .bv-field:hover{border-color:var(--bv-text)}.blast-viewer .bv-field:focus-within{border-color:var(--bv-primary);box-shadow:inset 0 0 0 1px var(--bv-primary);color:var(--bv-primary)}.blast-viewer .bv-field input,.blast-viewer .bv-field select{min-width:0;height:100%;color:var(--bv-text);font:inherit;letter-spacing:.009375em;background:0 0;border:0;outline:0;flex:1;font-size:1rem}.blast-viewer .bv-field input::placeholder{color:var(--bv-text-disabled)}.bv-portal.bv-tooltip{z-index:2400;pointer-events:none;border-radius:var(--bv-radius);color:#fff;max-width:360px;box-shadow:var(--bv-elevation-4);background:#212121f0;padding:8px 12px;font-size:.8125rem;line-height:1.4;position:fixed}.bv-portal.bv-tooltip.bv-theme--dark{color:#000000de;background:#f5f5f5f5}.bv-header[data-v-40b77822]{flex-direction:column;gap:16px;padding:16px;display:flex}.bv-header-main[data-v-40b77822]{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.bv-header-title[data-v-40b77822]{flex-direction:column;gap:4px;min-width:0;display:flex}.bv-program[data-v-40b77822]{text-transform:uppercase;letter-spacing:.05em;align-self:flex-start;font-weight:500}.bv-card-title[data-v-40b77822]{-webkit-line-clamp:2;line-clamp:2;word-break:break-word;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.bv-card-subtitle[data-v-40b77822]{flex-wrap:wrap;gap:4px 24px;display:flex}.bv-meta[data-v-40b77822]{align-items:baseline;gap:6px;display:inline-flex}.bv-strong[data-v-40b77822]{color:var(--bv-text)}.bv-version[data-v-40b77822]{color:var(--bv-text-medium);flex-shrink:0;font-size:.75rem}.bv-stats[data-v-40b77822]{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:0;display:grid}.bv-stat[data-v-40b77822]{border:1px solid var(--bv-border);border-radius:var(--bv-radius);padding:8px 16px}.bv-stat-value[data-v-40b77822]{color:var(--bv-text);margin:0;font-size:1.25rem;font-weight:500;line-height:1.6}@media (width<=600px){.bv-header-main[data-v-40b77822]{flex-direction:column;gap:4px}}.tt-title[data-v-b0b2f60e]{-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;font-weight:500;display:-webkit-box;overflow:hidden}.tt-acc[data-v-b0b2f60e]{font-family:var(--bv-font-mono);opacity:.75;margin-bottom:6px;font-size:.75rem}table[data-v-b0b2f60e]{border-collapse:collapse}th[data-v-b0b2f60e],td[data-v-b0b2f60e]{text-align:left;padding:1px 0;font-size:.75rem}th[data-v-b0b2f60e]{opacity:.75;padding-right:12px;font-weight:400}td[data-v-b0b2f60e]{font-family:var(--bv-font-mono);font-variant-numeric:tabular-nums}.bv-graphics[data-v-07f476a9]{flex-direction:column;gap:12px;display:flex}.bv-graphics-head[data-v-07f476a9]{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 24px;display:flex}.bv-legend[data-v-07f476a9]{color:var(--bv-text-medium);flex-wrap:wrap;align-items:center;gap:4px 16px;font-size:.75rem;display:flex}.bv-legend-title[data-v-07f476a9]{color:var(--bv-text);font-weight:500}.bv-legend-item[data-v-07f476a9]{font-family:var(--bv-font-mono);align-items:center;gap:6px;display:inline-flex}.bv-legend-swatch[data-v-07f476a9]{border-radius:2px;width:12px;height:12px}.bv-svg-container[data-v-07f476a9]{border:1px solid var(--bv-border);border-radius:var(--bv-radius);background:var(--bv-surface);width:100%;overflow-x:auto}.bv-svg[data-v-07f476a9]{min-width:640px;font-family:var(--bv-font);display:block}.bv-grid line[data-v-07f476a9]{stroke:var(--bv-border);stroke-dasharray:2 4}.bv-ruler-label[data-v-07f476a9]{fill:var(--bv-text-medium);letter-spacing:.02em;font-size:12px;font-weight:500}.bv-query-bar[data-v-07f476a9]{fill:var(--bv-tonal-strong);stroke:var(--bv-primary);stroke-width:1px}.bv-tick[data-v-07f476a9]{stroke:var(--bv-text-medium)}.bv-tick-label[data-v-07f476a9]{font-family:var(--bv-font-mono);fill:var(--bv-text-medium);font-size:10px}.bv-hit-row[data-v-07f476a9]{cursor:pointer}.bv-row-bg[data-v-07f476a9]{fill:#0000}.bv-hit-row:hover .bv-row-bg[data-v-07f476a9]{fill:var(--bv-hover)}.bv-row-label[data-v-07f476a9]{font-family:var(--bv-font-mono);fill:var(--bv-text-disabled);font-size:9px}.bv-hit-row:hover .bv-row-label[data-v-07f476a9]{fill:var(--bv-text)}.bv-connector[data-v-07f476a9]{stroke:var(--bv-text-disabled);stroke-dasharray:3 3}.bv-hsp-bar[data-v-07f476a9]{transition:opacity var(--bv-transition)}.bv-hit-row:hover .bv-hsp-bar[data-v-07f476a9]{opacity:.8}.bv-hsp-bar[data-v-07f476a9]:hover{stroke:var(--bv-text);stroke-width:1px}.bv-icon[data-v-84d1a979]{vertical-align:middle;flex-shrink:0;display:inline-block}.bv-hit-table[data-v-e7ebcd85]{flex-direction:column;gap:12px;display:flex}.bv-toolbar[data-v-e7ebcd85]{flex-wrap:wrap;align-items:center;gap:12px 16px;display:flex}.bv-filter[data-v-e7ebcd85]{flex:280px;max-width:420px;padding-right:4px}.bv-filter input[data-v-e7ebcd85]::-webkit-search-cancel-button{display:none}.bv-count[data-v-e7ebcd85]{color:var(--bv-text-medium);white-space:nowrap;flex:1}.bv-table-wrapper[data-v-e7ebcd85]{position:relative;overflow-x:auto}.bv-table[data-v-e7ebcd85]{border-collapse:collapse;border-spacing:0;width:100%;font-size:.875rem}.bv-table th[data-v-e7ebcd85]{background:var(--bv-surface-light);border-bottom:1px solid var(--bv-border);height:40px;color:var(--bv-text-medium);text-align:left;white-space:nowrap;-webkit-user-select:none;user-select:none;padding:0 12px;font-size:.8125rem;font-weight:500}.bv-table td[data-v-e7ebcd85]{border-bottom:1px solid var(--bv-border);vertical-align:middle;height:40px;padding:4px 12px}.bv-table tbody tr:last-child>td[data-v-e7ebcd85]{border-bottom:0}.bv-table .col-num[data-v-e7ebcd85]{text-align:right;white-space:nowrap}.bv-table .col-expand[data-v-e7ebcd85]{width:40px;padding:0 0 0 4px}.bv-table .col-action[data-v-e7ebcd85]{text-align:right;width:72px;padding-right:8px}.bv-sort[data-v-e7ebcd85]{appearance:none;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:2px;padding:0;display:inline-flex}.bv-sort-icon[data-v-e7ebcd85]{opacity:0;transition:opacity var(--bv-transition)}.bv-sort:hover .bv-sort-icon[data-v-e7ebcd85]{opacity:.5}th.is-sorted[data-v-e7ebcd85]{color:var(--bv-text)}th.is-sorted .bv-sort-icon[data-v-e7ebcd85]{opacity:1}.bv-row:hover>td[data-v-e7ebcd85]{background:var(--bv-hover)}.bv-row.is-expanded>td[data-v-e7ebcd85]{background:var(--bv-tonal)}.bv-chevron[data-v-e7ebcd85]{transition:transform var(--bv-transition)}.bv-chevron.open[data-v-e7ebcd85]{transform:rotate(90deg)}.col-desc[data-v-e7ebcd85]{cursor:pointer;max-width:420px}.bv-desc-title[data-v-e7ebcd85]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.bv-desc-meta[data-v-e7ebcd85]{color:var(--bv-text-medium);font-size:.75rem}.bv-expand-row>td[data-v-e7ebcd85]{background:var(--bv-surface-variant);padding:12px 16px 16px 44px}.bv-hsp-grid[data-v-e7ebcd85]{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;display:grid}.bv-hsp-card[data-v-e7ebcd85]{padding:8px 12px 12px}.bv-hsp-head[data-v-e7ebcd85]{border-bottom:1px solid var(--bv-border);justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px;padding-bottom:6px;display:flex}.bv-hsp-name[data-v-e7ebcd85]{font-weight:500}.bv-hsp-body[data-v-e7ebcd85]{grid-template-columns:auto 1fr;gap:2px 12px;font-size:.8125rem;display:grid}.bv-hsp-body dt[data-v-e7ebcd85]{color:var(--bv-text-medium)}.bv-hsp-body dd[data-v-e7ebcd85]{text-align:right;margin:0}.bv-empty[data-v-e7ebcd85]{text-align:center;color:var(--bv-text-medium);padding:24px}.bv-footer[data-v-e7ebcd85]{color:var(--bv-text-medium);flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px 24px;font-size:.875rem;display:flex}.bv-per-page[data-v-e7ebcd85]{align-items:center;gap:8px;display:inline-flex}.bv-select[data-v-e7ebcd85]{border:1px solid var(--bv-border);border-radius:var(--bv-radius);background:var(--bv-surface);height:32px;color:var(--bv-text);font:inherit;padding:0 8px}.bv-pager[data-v-e7ebcd85]{display:inline-flex}.bv-sr-only[data-v-e7ebcd85]{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.bv-aln[data-v-29632248]{background:var(--bv-surface-variant);border:1px solid var(--bv-border);border-radius:var(--bv-radius);font-family:var(--bv-font-mono);flex-direction:column;gap:12px;padding:12px 16px;font-size:.8125rem;line-height:1.35;display:flex;overflow-x:auto}.bv-aln-block[data-v-29632248]{grid-template-columns:6ch var(--bv-coord-w) max-content var(--bv-coord-w);white-space:pre;column-gap:1ch;width:max-content;display:grid}.bv-aln-label[data-v-29632248]{color:var(--bv-text-medium);-webkit-user-select:none;user-select:none}.bv-aln-coord[data-v-29632248]{text-align:right;color:var(--bv-text-medium);font-variant-numeric:tabular-nums;-webkit-user-select:none;user-select:none}.bv-aln-end[data-v-29632248]{text-align:left}.bv-aln-seq .match[data-v-29632248]{background:var(--bv-aln-match-bg)}.bv-aln-seq .positive[data-v-29632248]{background:var(--bv-aln-positive-bg)}.bv-aln-seq .mismatch[data-v-29632248]{color:var(--bv-aln-mismatch);background:var(--bv-aln-mismatch-bg)}.bv-aln-seq .gap[data-v-29632248]{color:var(--bv-aln-gap);background:var(--bv-aln-gap-bg);font-weight:700}.bv-aln-mid .match[data-v-29632248],.bv-aln-mid .positive[data-v-29632248]{color:var(--bv-aln-mid);background:0 0}.bv-aln-mid .mismatch[data-v-29632248],.bv-aln-mid .gap[data-v-29632248]{background:0 0}.bv-aln-more[data-v-29632248]{align-self:flex-start}.bv-alignments[data-v-b06059c1]{flex-direction:column;gap:12px;display:flex}.bv-panels[data-v-b06059c1]{border:1px solid var(--bv-border);border-radius:var(--bv-radius);overflow:hidden}.bv-panel[data-v-b06059c1]{background:var(--bv-surface);transition:box-shadow var(--bv-transition);scroll-margin-top:72px;position:relative}.bv-panel+.bv-panel[data-v-b06059c1]{border-top:1px solid var(--bv-border)}.bv-panel.is-highlighted[data-v-b06059c1]{box-shadow:inset 3px 0 0 var(--bv-primary)}.bv-panel-heading[data-v-b06059c1]{font:inherit;margin:0}.bv-panel-title[data-v-b06059c1]{appearance:none;width:100%;min-height:48px;color:var(--bv-text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:12px;padding:8px min(45%,320px) 8px 16px;font-size:.9375rem;display:flex}.bv-panel-title[data-v-b06059c1]:hover{background:var(--bv-hover)}.bv-panel.is-open .bv-panel-title[data-v-b06059c1]{background:var(--bv-surface-light)}.bv-index[data-v-b06059c1]{min-width:32px;color:var(--bv-text-medium);flex-shrink:0;justify-content:center}.bv-panel-text[data-v-b06059c1]{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.bv-panel-chevron[data-v-b06059c1]{color:var(--bv-text-medium);transition:transform var(--bv-transition);position:absolute;top:14px;right:16px}.bv-panel.is-open .bv-panel-chevron[data-v-b06059c1]{transform:rotate(180deg)}.bv-panel-meta[data-v-b06059c1]{align-items:center;gap:12px;max-width:calc(min(45%,320px) - 56px);display:flex;position:absolute;top:12px;right:48px}.bv-len[data-v-b06059c1]{color:var(--bv-text-medium);white-space:nowrap;font-size:.75rem}.bv-panel-content[data-v-b06059c1]{border-top:1px solid var(--bv-border);flex-direction:column;gap:20px;padding:16px;display:flex}.bv-hsp[data-v-b06059c1]{flex-direction:column;gap:8px;display:flex}.bv-hsp-header[data-v-b06059c1]{flex-wrap:wrap;align-items:center;gap:4px 20px;font-size:.8125rem;display:flex}.bv-hsp-title[data-v-b06059c1]{color:var(--bv-primary);font-size:.875rem;font-weight:500}.bv-hsp-stat[data-v-b06059c1]{font-family:var(--bv-font-mono);font-variant-numeric:tabular-nums}.bv-hsp-stat>span[data-v-b06059c1]{font-family:var(--bv-font);color:var(--bv-text-medium);margin-right:4px}.bv-spacer[data-v-b06059c1]{flex:1}.bv-region[data-v-b06059c1]{text-transform:none;letter-spacing:0;font-family:var(--bv-font-mono)}.blast-viewer .bv-region[data-v-b06059c1]:hover{text-decoration:none}@media (width<=700px){.bv-panel-title[data-v-b06059c1]{padding-right:48px}.bv-panel-meta[data-v-b06059c1]{max-width:none;padding:0 16px 8px 60px;position:static}}.blast-viewer[data-v-814ca01a]{flex-direction:column;gap:16px;width:100%;scroll-margin-top:72px;display:flex}.bv-alert[data-v-814ca01a]{border-radius:var(--bv-radius);background:color-mix(in srgb, var(--bv-error) 12%, transparent);color:var(--bv-error);align-items:flex-start;gap:16px;padding:16px;display:flex}.bv-alert-title[data-v-814ca01a]{margin-bottom:2px;font-size:1rem;font-weight:500}.bv-alert code[data-v-814ca01a]{font-family:var(--bv-font-mono);font-size:.8125rem}.bv-tabs-card[data-v-814ca01a]{overflow:hidden}.bv-tabs[data-v-814ca01a]{border-bottom:1px solid var(--bv-border);scrollbar-width:none;display:flex;overflow-x:auto}.bv-tab[data-v-814ca01a]{appearance:none;min-width:90px;height:48px;color:var(--bv-text-medium);font:inherit;letter-spacing:.0892857em;text-transform:uppercase;cursor:pointer;transition:color var(--bv-transition), background-color var(--bv-transition);background:0 0;border:0;flex:none;padding:0 24px;font-size:.875rem;font-weight:500;position:relative}.bv-tab[data-v-814ca01a]:hover{background:var(--bv-hover);color:var(--bv-text)}.bv-tab[data-v-814ca01a]:focus-visible{background:var(--bv-focus);outline:none}.bv-tab--active[data-v-814ca01a],.bv-tab--active[data-v-814ca01a]:hover{color:var(--bv-primary)}.bv-tab--active[data-v-814ca01a]:after{content:"";background:currentColor;height:2px;position:absolute;bottom:0;left:0;right:0}.bv-tab-panel[data-v-814ca01a]{padding:16px}@media (width<=600px){.bv-tab[data-v-814ca01a]{letter-spacing:.03em;flex:1 1 0;min-width:0;padding:0 4px;font-size:.8125rem}.bv-tab-panel[data-v-814ca01a]{padding:12px 8px}}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
2
|
+
import { Fragment as e, Teleport as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, inject as u, nextTick as d, normalizeClass as f, normalizeStyle as p, onBeforeUnmount as m, openBlock as h, provide as g, reactive as _, ref as v, renderList as y, toDisplayString as b, unref as x, vModelSelect as S, vModelText as C, vShow as w, watch as T, withDirectives as E } from "vue";
|
|
3
|
+
// src/utils.ts
|
|
4
|
+
var D = /^(https?:\/\/|\/|\.{0,2}\/|#|\?)/i;
|
|
5
|
+
function O(e, t) {
|
|
6
|
+
if (!e || !t) return;
|
|
7
|
+
let n = encodeURIComponent(t).replace(/%3A/gi, ":"), r = e.split("{accession}").join(n).trim();
|
|
8
|
+
return D.test(r) ? r : void 0;
|
|
9
|
+
}
|
|
10
|
+
function k(e) {
|
|
11
|
+
return Number.isFinite(e) ? e === 0 ? "0.0" : e < .001 ? e.toExponential(2) : e.toFixed(4) : "N/A";
|
|
12
|
+
}
|
|
13
|
+
function A(e, t) {
|
|
14
|
+
return t > 0 ? Math.round(e / t * 100) : 0;
|
|
15
|
+
}
|
|
16
|
+
function j(e) {
|
|
17
|
+
let t = String(e).replace(/[\t\r\n]+/g, " ");
|
|
18
|
+
return /^[=+\-@]/.test(t) ? `'${t}` : t;
|
|
19
|
+
}
|
|
20
|
+
function M(e) {
|
|
21
|
+
return e.replace(/[^\w.-]+/g, "_").slice(0, 100) || "blast_results";
|
|
22
|
+
}
|
|
23
|
+
var N = (e, t = 0) => {
|
|
24
|
+
let n = typeof e == "number" ? e : Number(e);
|
|
25
|
+
return Number.isFinite(n) ? n : t;
|
|
26
|
+
}, P = (e) => typeof e == "string" ? e : e == null ? "" : String(e);
|
|
27
|
+
function F(e) {
|
|
28
|
+
let t = (Array.isArray(e.hits) ? e.hits : []).map((e, t) => {
|
|
29
|
+
let n = Array.isArray(e?.description) && e.description.length ? e.description : [{}];
|
|
30
|
+
return {
|
|
31
|
+
num: N(e?.num, t + 1),
|
|
32
|
+
len: N(e?.len),
|
|
33
|
+
description: n.map((e) => ({
|
|
34
|
+
id: P(e?.id),
|
|
35
|
+
accession: P(e?.accession ?? e?.id),
|
|
36
|
+
title: P(e?.title),
|
|
37
|
+
taxid: e?.taxid
|
|
38
|
+
})),
|
|
39
|
+
hsps: (Array.isArray(e?.hsps) ? e.hsps : []).map((e, t) => ({
|
|
40
|
+
...e,
|
|
41
|
+
num: N(e?.num, t + 1),
|
|
42
|
+
bit_score: N(e?.bit_score),
|
|
43
|
+
score: N(e?.score),
|
|
44
|
+
evalue: N(e?.evalue, 1e400),
|
|
45
|
+
identity: N(e?.identity),
|
|
46
|
+
positive: e?.positive === void 0 ? void 0 : N(e.positive),
|
|
47
|
+
query_from: N(e?.query_from, 1),
|
|
48
|
+
query_to: N(e?.query_to, 1),
|
|
49
|
+
hit_from: N(e?.hit_from, 1),
|
|
50
|
+
hit_to: N(e?.hit_to, 1),
|
|
51
|
+
align_len: N(e?.align_len),
|
|
52
|
+
gaps: N(e?.gaps),
|
|
53
|
+
qseq: P(e?.qseq),
|
|
54
|
+
hseq: P(e?.hseq),
|
|
55
|
+
midline: P(e?.midline)
|
|
56
|
+
}))
|
|
57
|
+
};
|
|
58
|
+
});
|
|
59
|
+
return {
|
|
60
|
+
query_id: P(e.query_id),
|
|
61
|
+
query_title: P(e.query_title),
|
|
62
|
+
query_len: Math.max(1, N(e.query_len, 1)),
|
|
63
|
+
hits: t
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function I(e) {
|
|
67
|
+
let t = e.toLowerCase();
|
|
68
|
+
return {
|
|
69
|
+
q: t === "blastx" || t === "tblastx" ? 3 : 1,
|
|
70
|
+
s: t === "tblastn" || t === "tblastx" ? 3 : 1
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
var L = (e, t, n, r) => r < n || String(e ?? "").toLowerCase() === "minus" || N(t) < 0;
|
|
74
|
+
function R(e, t, n) {
|
|
75
|
+
let r = e[e.length - 1];
|
|
76
|
+
r && r.type === t ? r.text += n : e.push({
|
|
77
|
+
type: t,
|
|
78
|
+
text: n
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
function z(e, t = "", n = 60) {
|
|
82
|
+
let { qseq: r, hseq: i, midline: a } = e, o = I(t), s = L(e.query_strand, e.query_frame, e.query_from, e.query_to), c = L(e.hit_strand, e.hit_frame, e.hit_from, e.hit_to), l = s ? -1 : 1, u = c ? -1 : 1, d = s ? Math.max(e.query_from, e.query_to) : Math.min(e.query_from, e.query_to), f = c ? Math.max(e.hit_from, e.hit_to) : Math.min(e.hit_from, e.hit_to), p = [], m = Math.max(r.length, i.length);
|
|
83
|
+
for (let e = 0; e < m; e += n) {
|
|
84
|
+
let t = Math.min(e + n, m), s = {
|
|
85
|
+
queryStart: d,
|
|
86
|
+
queryEnd: d,
|
|
87
|
+
sbjctStart: f,
|
|
88
|
+
sbjctEnd: f,
|
|
89
|
+
query: [],
|
|
90
|
+
midline: [],
|
|
91
|
+
sbjct: []
|
|
92
|
+
}, c = 0, h = 0;
|
|
93
|
+
for (let n = e; n < t; n++) {
|
|
94
|
+
let e = r[n] ?? " ", t = i[n] ?? " ", o = a[n] ?? " ", l;
|
|
95
|
+
l = e === "-" || t === "-" ? "gap" : o === "+" ? "positive" : o === "|" || o !== " " && o === e || e.toUpperCase() === t.toUpperCase() ? "match" : "mismatch", R(s.query, l, e), R(s.sbjct, l, t), R(s.midline, l, l === "match" ? "|" : l === "positive" ? "+" : " "), e !== "-" && c++, t !== "-" && h++;
|
|
96
|
+
}
|
|
97
|
+
s.queryEnd = c ? d + l * (c * o.q - 1) : d, s.sbjctEnd = h ? f + u * (h * o.s - 1) : f, d += l * c * o.q, f += u * h * o.s, p.push(s);
|
|
98
|
+
}
|
|
99
|
+
return p;
|
|
100
|
+
}
|
|
101
|
+
var B = (e) => [Math.min(e.query_from, e.query_to), Math.max(e.query_from, e.query_to)];
|
|
102
|
+
function ee(e, t) {
|
|
103
|
+
let n = e.hsps.map(B).sort((e, t) => e[0] - t[0]);
|
|
104
|
+
if (!n.length) return 0;
|
|
105
|
+
let r = 0, [i, a] = n[0];
|
|
106
|
+
for (let e = 1; e < n.length; e++) {
|
|
107
|
+
let [t, o] = n[e];
|
|
108
|
+
t <= a + 1 ? a = Math.max(a, o) : (r += a - i + 1, [i, a] = [t, o]);
|
|
109
|
+
}
|
|
110
|
+
return r += a - i + 1, Math.min(100, A(r, t));
|
|
111
|
+
}
|
|
112
|
+
// src/components/BlastHeader.vue?vue&type=script&setup=true&lang.ts
|
|
113
|
+
var V = { class: "bv-card bv-header" }, H = { class: "bv-header-main" }, U = { class: "bv-header-title" }, W = {
|
|
114
|
+
key: 0,
|
|
115
|
+
class: "bv-chip bv-chip--primary bv-chip--label bv-program"
|
|
116
|
+
}, G = ["title"], K = { class: "bv-card-subtitle" }, q = { class: "bv-meta" }, te = ["href"], ne = {
|
|
117
|
+
key: 1,
|
|
118
|
+
class: "bv-mono bv-strong"
|
|
119
|
+
}, re = {
|
|
120
|
+
key: 0,
|
|
121
|
+
class: "bv-meta"
|
|
122
|
+
}, ie = { class: "bv-strong" }, ae = {
|
|
123
|
+
key: 0,
|
|
124
|
+
class: "bv-version bv-mono"
|
|
125
|
+
}, oe = { class: "bv-stats" }, se = { class: "bv-overline" }, ce = { class: "bv-stat-value bv-mono" }, le = /*@__PURE__*/ l({
|
|
5
126
|
__name: "BlastHeader",
|
|
6
127
|
props: {
|
|
7
128
|
searchData: {},
|
|
@@ -10,266 +131,351 @@ var S = { class: "blast-header fade-in" }, C = { class: "header-main glass-panel
|
|
|
10
131
|
db: {},
|
|
11
132
|
queryLink: {}
|
|
12
133
|
},
|
|
13
|
-
setup(
|
|
14
|
-
let
|
|
15
|
-
let e = 0;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
])
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
134
|
+
setup(t) {
|
|
135
|
+
let r = t, c = n(() => {
|
|
136
|
+
let e = 0, t = 1e400;
|
|
137
|
+
for (let n of r.searchData.hits) for (let r of n.hsps) r.bit_score > e && (e = r.bit_score), r.evalue < t && (t = r.evalue);
|
|
138
|
+
return [
|
|
139
|
+
{
|
|
140
|
+
label: "Query length",
|
|
141
|
+
value: r.searchData.query_len.toLocaleString("en-US")
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
label: "Hits",
|
|
145
|
+
value: r.searchData.hits.length.toLocaleString("en-US")
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
label: "Best bit score",
|
|
149
|
+
value: e ? e.toFixed(1) : "N/A"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
label: "Best E-value",
|
|
153
|
+
value: k(t)
|
|
154
|
+
}
|
|
155
|
+
];
|
|
156
|
+
}), l = n(() => O(r.queryLink, r.searchData.query_id));
|
|
157
|
+
return (n, r) => (h(), a("section", V, [o("div", H, [o("div", U, [
|
|
158
|
+
t.program ? (h(), a("span", W, b(t.program), 1)) : i("", !0),
|
|
159
|
+
o("h2", {
|
|
160
|
+
class: "bv-card-title",
|
|
161
|
+
title: t.searchData.query_title
|
|
162
|
+
}, b(t.searchData.query_title || t.searchData.query_id || "BLAST results"), 9, G),
|
|
163
|
+
o("p", K, [o("span", q, [r[0] ||= s(" Query ", -1), l.value ? (h(), a("a", {
|
|
164
|
+
key: 0,
|
|
165
|
+
href: l.value,
|
|
166
|
+
target: "_blank",
|
|
167
|
+
rel: "noopener noreferrer",
|
|
168
|
+
class: "bv-mono"
|
|
169
|
+
}, b(t.searchData.query_id), 9, te)) : (h(), a("span", ne, b(t.searchData.query_id), 1))]), t.db ? (h(), a("span", re, [r[1] ||= s("Database ", -1), o("span", ie, b(t.db), 1)])) : i("", !0)])
|
|
170
|
+
]), t.version ? (h(), a("span", ae, b(t.version), 1)) : i("", !0)]), o("dl", oe, [(h(!0), a(e, null, y(c.value, (e) => (h(), a("div", {
|
|
171
|
+
key: e.label,
|
|
172
|
+
class: "bv-stat"
|
|
173
|
+
}, [o("dt", se, b(e.label), 1), o("dd", ce, b(e.value), 1)]))), 128))])]));
|
|
49
174
|
}
|
|
50
|
-
}),
|
|
175
|
+
}), J = (e, t) => {
|
|
51
176
|
let n = e.__vccOpts || e;
|
|
52
177
|
for (let [e, r] of t) n[e] = r;
|
|
53
178
|
return n;
|
|
54
|
-
},
|
|
179
|
+
}, ue = /*#__PURE__*/ J(le, [["__scopeId", "data-v-40b77822"]]), de = { class: "tt-title" }, fe = { class: "tt-acc" }, Y = 14, pe = /*#__PURE__*/ J(/* @__PURE__ */ l({
|
|
180
|
+
__name: "HspTooltip",
|
|
181
|
+
props: {
|
|
182
|
+
state: {},
|
|
183
|
+
theme: {}
|
|
184
|
+
},
|
|
185
|
+
setup(e) {
|
|
186
|
+
let s = e, c = n(() => {
|
|
187
|
+
let { x: e, y: t } = s.state, n = typeof window > "u" ? 1024 : window.innerWidth, r = typeof window > "u" ? 768 : window.innerHeight, i = e > n * .6, a = t > r * .6;
|
|
188
|
+
return {
|
|
189
|
+
left: `${i ? e - Y : e + Y}px`,
|
|
190
|
+
top: `${a ? t - Y : t + Y}px`,
|
|
191
|
+
transform: `translate(${i ? "-100%" : "0"}, ${a ? "-100%" : "0"})`
|
|
192
|
+
};
|
|
193
|
+
});
|
|
194
|
+
return (n, s) => (h(), r(t, { to: "body" }, [e.state.visible && e.state.data ? (h(), a("div", {
|
|
195
|
+
key: 0,
|
|
196
|
+
class: f(["bv-portal bv-tooltip", `bv-theme--${e.theme}`]),
|
|
197
|
+
style: p(c.value),
|
|
198
|
+
role: "tooltip"
|
|
199
|
+
}, [
|
|
200
|
+
o("div", de, b(e.state.data.title), 1),
|
|
201
|
+
o("div", fe, b(e.state.data.accession), 1),
|
|
202
|
+
o("table", null, [o("tbody", null, [
|
|
203
|
+
o("tr", null, [s[0] ||= o("th", null, "Bit score", -1), o("td", null, b(e.state.data.bitScore.toFixed(1)), 1)]),
|
|
204
|
+
o("tr", null, [s[1] ||= o("th", null, "E-value", -1), o("td", null, b(x(k)(e.state.data.evalue)), 1)]),
|
|
205
|
+
o("tr", null, [s[2] ||= o("th", null, "Identities", -1), o("td", null, b(e.state.data.identity) + "%", 1)]),
|
|
206
|
+
o("tr", null, [s[3] ||= o("th", null, "Query cover", -1), o("td", null, b(e.state.data.coverage) + "%", 1)]),
|
|
207
|
+
o("tr", null, [s[4] ||= o("th", null, "Query", -1), o("td", null, b(e.state.data.qFrom) + ".." + b(e.state.data.qTo), 1)]),
|
|
208
|
+
o("tr", null, [s[5] ||= o("th", null, "Subject", -1), o("td", null, b(e.state.data.hFrom) + ".." + b(e.state.data.hTo), 1)])
|
|
209
|
+
])])
|
|
210
|
+
], 6)) : i("", !0)]));
|
|
211
|
+
}
|
|
212
|
+
}), [["__scopeId", "data-v-b0b2f60e"]]), me = { class: "bv-graphics" }, he = { class: "bv-graphics-head" }, ge = { class: "bv-card-subtitle" }, _e = {
|
|
213
|
+
class: "bv-legend",
|
|
214
|
+
"aria-label": "Colour key for alignment scores"
|
|
215
|
+
}, ve = { class: "bv-svg-container" }, ye = ["viewBox", "aria-label"], be = { class: "bv-grid" }, xe = [
|
|
55
216
|
"x1",
|
|
56
|
-
"y1",
|
|
57
217
|
"x2",
|
|
218
|
+
"y1",
|
|
58
219
|
"y2"
|
|
59
|
-
],
|
|
220
|
+
], Se = { class: "bv-ruler" }, Ce = ["x", "y"], we = ["x", "y"], Te = [
|
|
60
221
|
"x1",
|
|
61
|
-
"y1",
|
|
62
222
|
"x2",
|
|
223
|
+
"y1",
|
|
63
224
|
"y2"
|
|
64
|
-
],
|
|
65
|
-
class: "hits-group",
|
|
66
|
-
transform: "translate(0, 30)"
|
|
67
|
-
}, se = ["onClick"], ce = [
|
|
225
|
+
], Ee = ["x", "y"], De = ["onClick"], Oe = [
|
|
68
226
|
"x",
|
|
69
227
|
"y",
|
|
70
|
-
"width"
|
|
71
|
-
|
|
72
|
-
], le = [
|
|
228
|
+
"width"
|
|
229
|
+
], ke = ["x", "y"], Ae = [
|
|
73
230
|
"x1",
|
|
74
|
-
"y1",
|
|
75
231
|
"x2",
|
|
232
|
+
"y1",
|
|
76
233
|
"y2"
|
|
77
|
-
],
|
|
234
|
+
], je = [
|
|
78
235
|
"x",
|
|
79
236
|
"y",
|
|
80
237
|
"width",
|
|
81
238
|
"fill",
|
|
82
239
|
"onMouseenter"
|
|
83
|
-
],
|
|
240
|
+
], Me = 1e3, X = 10, Z = 18, Ne = /*#__PURE__*/ J(/* @__PURE__ */ l({
|
|
84
241
|
__name: "BlastGraphicViewer",
|
|
85
|
-
props: {
|
|
242
|
+
props: {
|
|
243
|
+
searchData: {},
|
|
244
|
+
theme: {}
|
|
245
|
+
},
|
|
86
246
|
emits: ["select-hit"],
|
|
87
|
-
setup(
|
|
88
|
-
let
|
|
89
|
-
top:
|
|
90
|
-
right:
|
|
91
|
-
bottom:
|
|
247
|
+
setup(t, { emit: r }) {
|
|
248
|
+
let l = t, u = r, d = {
|
|
249
|
+
top: 40,
|
|
250
|
+
right: 24,
|
|
251
|
+
bottom: 16,
|
|
92
252
|
left: 40
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
253
|
+
}, f = Me - d.left - d.right, m = d.top, g = d.top + 30, v = [
|
|
254
|
+
{
|
|
255
|
+
label: "< 40",
|
|
256
|
+
min: -1e400,
|
|
257
|
+
color: "var(--bv-score-1)"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
label: "40–50",
|
|
261
|
+
min: 40,
|
|
262
|
+
color: "var(--bv-score-2)"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
label: "50–80",
|
|
266
|
+
min: 50,
|
|
267
|
+
color: "var(--bv-score-3)"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
label: "80–200",
|
|
271
|
+
min: 80,
|
|
272
|
+
color: "var(--bv-score-4)"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
label: "≥ 200",
|
|
276
|
+
min: 200,
|
|
277
|
+
color: "var(--bv-score-5)"
|
|
278
|
+
}
|
|
279
|
+
], S = (e) => {
|
|
280
|
+
for (let t = v.length - 1; t >= 0; t--) if (e >= v[t].min) return v[t].color;
|
|
281
|
+
return v[0].color;
|
|
282
|
+
}, C = n(() => l.searchData.query_len), w = (e) => d.left + (e - 1) / C.value * f, T = n(() => g + Math.max(1, l.searchData.hits.length) * Z + d.bottom), E = n(() => {
|
|
283
|
+
let e = C.value, t = e / 8, n = 10 ** Math.floor(Math.log10(Math.max(t, 1))), r = [
|
|
284
|
+
1,
|
|
285
|
+
2,
|
|
286
|
+
5,
|
|
287
|
+
10
|
|
288
|
+
].map((e) => e * n).find((e) => e >= t) ?? n * 10, i = [];
|
|
289
|
+
for (let t = 0; t < e; t += r) i.push(t === 0 ? 1 : t);
|
|
290
|
+
return e - i[i.length - 1] < r / 3 && i.pop(), i.push(e), i.map((t) => ({
|
|
102
291
|
value: t,
|
|
103
|
-
x:
|
|
292
|
+
x: d.left + (t - 1) / e * f
|
|
104
293
|
}));
|
|
105
|
-
}),
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
294
|
+
}), D = n(() => l.searchData.hits.map((e, t) => {
|
|
295
|
+
let n = g + t * Z, r = e.hsps.map(B);
|
|
296
|
+
return {
|
|
297
|
+
hit: e,
|
|
298
|
+
index: t,
|
|
299
|
+
y: n,
|
|
300
|
+
bars: e.hsps.map((e, t) => {
|
|
301
|
+
let n = w(r[t][0]), i = w(r[t][1] + 1);
|
|
302
|
+
return {
|
|
303
|
+
hsp: e,
|
|
304
|
+
x: n,
|
|
305
|
+
width: Math.max(2, i - n),
|
|
306
|
+
color: S(e.bit_score)
|
|
307
|
+
};
|
|
308
|
+
}),
|
|
309
|
+
connector: r.length > 1 ? {
|
|
310
|
+
x1: w(Math.min(...r.map((e) => e[0]))),
|
|
311
|
+
x2: w(Math.max(...r.map((e) => e[1])) + 1)
|
|
312
|
+
} : null
|
|
313
|
+
};
|
|
314
|
+
})), O = _({
|
|
315
|
+
visible: !1,
|
|
316
|
+
x: 0,
|
|
317
|
+
y: 0,
|
|
318
|
+
data: null
|
|
319
|
+
}), k = (e, t, n) => {
|
|
320
|
+
let [r, i] = B(n), a = t.description[0];
|
|
321
|
+
O.data = {
|
|
322
|
+
title: a.title,
|
|
323
|
+
accession: a.accession,
|
|
111
324
|
bitScore: n.bit_score,
|
|
112
325
|
evalue: n.evalue,
|
|
113
|
-
identity:
|
|
114
|
-
coverage:
|
|
326
|
+
identity: A(n.identity, n.align_len),
|
|
327
|
+
coverage: A(i - r + 1, C.value),
|
|
115
328
|
qFrom: n.query_from,
|
|
116
329
|
qTo: n.query_to,
|
|
117
330
|
hFrom: n.hit_from,
|
|
118
331
|
hTo: n.hit_to
|
|
119
|
-
};
|
|
120
|
-
},
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
v.value = !1, x.value = null, S.value = null;
|
|
127
|
-
}, A = (e) => {
|
|
128
|
-
l("select-hit", e);
|
|
332
|
+
}, j(e), O.visible = !0;
|
|
333
|
+
}, j = (e) => {
|
|
334
|
+
O.x = e.clientX, O.y = e.clientY;
|
|
335
|
+
}, M = () => {
|
|
336
|
+
O.visible = !1;
|
|
337
|
+
}, N = (e) => {
|
|
338
|
+
M(), u("select-hit", e);
|
|
129
339
|
};
|
|
130
|
-
return (
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
y: f.top - 20,
|
|
148
|
-
width: _,
|
|
149
|
-
height: "10",
|
|
150
|
-
rx: "5",
|
|
151
|
-
fill: "var(--color-primary-glow)",
|
|
152
|
-
stroke: "var(--color-primary)",
|
|
153
|
-
"stroke-width": "1.5"
|
|
154
|
-
}, null, 8, Y),
|
|
155
|
-
i("text", {
|
|
156
|
-
x: f.left,
|
|
157
|
-
y: f.top - 28,
|
|
158
|
-
fill: "var(--color-primary)",
|
|
159
|
-
"font-size": "11",
|
|
160
|
-
"font-weight": "600"
|
|
161
|
-
}, " QUERY (" + g(o.searchData.query_len) + " letters) ", 9, X),
|
|
162
|
-
(p(!0), r(e, null, h(T.value, (e) => (p(), r("g", { key: "tick-" + e.value }, [i("line", {
|
|
340
|
+
return (n, r) => (h(), a("div", me, [
|
|
341
|
+
o("div", he, [o("p", ge, b(t.searchData.hits.length) + " hits on the query. Hover a segment for details, click it to open the alignment. ", 1), o("div", _e, [r[0] ||= o("span", { class: "bv-legend-title" }, "Bit score", -1), (h(), a(e, null, y(v, (e) => o("span", {
|
|
342
|
+
key: e.label,
|
|
343
|
+
class: "bv-legend-item"
|
|
344
|
+
}, [o("span", {
|
|
345
|
+
class: "bv-legend-swatch",
|
|
346
|
+
style: p({ background: e.color })
|
|
347
|
+
}, null, 4), s(b(e.label), 1)])), 64))])]),
|
|
348
|
+
o("div", ve, [(h(), a("svg", {
|
|
349
|
+
viewBox: `0 0 ${Me} ${T.value}`,
|
|
350
|
+
width: "100%",
|
|
351
|
+
class: "bv-svg",
|
|
352
|
+
role: "img",
|
|
353
|
+
"aria-label": `Alignment overview: ${t.searchData.hits.length} hits on a query of ${C.value} letters`
|
|
354
|
+
}, [
|
|
355
|
+
o("g", be, [(h(!0), a(e, null, y(E.value, (e) => (h(), a("line", {
|
|
356
|
+
key: "g" + e.value,
|
|
163
357
|
x1: e.x,
|
|
164
|
-
y1: f.top - 10,
|
|
165
358
|
x2: e.x,
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
"
|
|
175
|
-
"
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
},
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
i("tr", null, [s[3] ||= i("td", { class: "label" }, "Query Cover:", -1), i("td", _e, g(x.value.coverage) + "%", 1)]),
|
|
243
|
-
i("tr", null, [s[4] ||= i("td", { class: "label" }, "Query:", -1), i("td", ve, g(x.value.qFrom) + " .. " + g(x.value.qTo), 1)]),
|
|
244
|
-
i("tr", null, [s[5] ||= i("td", { class: "label" }, "Subject:", -1), i("td", ye, g(x.value.hFrom) + " .. " + g(x.value.hTo), 1)])
|
|
245
|
-
])])
|
|
246
|
-
], 4)) : n("", !0)])]));
|
|
359
|
+
y1: x(m) + 12,
|
|
360
|
+
y2: T.value - d.bottom
|
|
361
|
+
}, null, 8, xe))), 128))]),
|
|
362
|
+
o("g", Se, [
|
|
363
|
+
o("text", {
|
|
364
|
+
x: d.left,
|
|
365
|
+
y: x(m) - 12,
|
|
366
|
+
class: "bv-ruler-label"
|
|
367
|
+
}, "Query · " + b(C.value.toLocaleString("en-US")) + " letters", 9, Ce),
|
|
368
|
+
o("rect", {
|
|
369
|
+
x: d.left,
|
|
370
|
+
y: x(m) - 4,
|
|
371
|
+
width: f,
|
|
372
|
+
height: "8",
|
|
373
|
+
rx: "4",
|
|
374
|
+
class: "bv-query-bar"
|
|
375
|
+
}, null, 8, we),
|
|
376
|
+
(h(!0), a(e, null, y(E.value, (e) => (h(), a("g", { key: "t" + e.value }, [o("line", {
|
|
377
|
+
x1: e.x,
|
|
378
|
+
x2: e.x,
|
|
379
|
+
y1: x(m) + 4,
|
|
380
|
+
y2: x(m) + 9,
|
|
381
|
+
class: "bv-tick"
|
|
382
|
+
}, null, 8, Te), o("text", {
|
|
383
|
+
x: e.x,
|
|
384
|
+
y: x(m) + 20,
|
|
385
|
+
"text-anchor": "middle",
|
|
386
|
+
class: "bv-tick-label"
|
|
387
|
+
}, b(e.value), 9, Ee)]))), 128))
|
|
388
|
+
]),
|
|
389
|
+
(h(!0), a(e, null, y(D.value, (t) => (h(), a("g", {
|
|
390
|
+
key: t.hit.num,
|
|
391
|
+
class: "bv-hit-row",
|
|
392
|
+
onClick: (e) => N(t.hit.num)
|
|
393
|
+
}, [
|
|
394
|
+
o("rect", {
|
|
395
|
+
x: d.left - 34,
|
|
396
|
+
y: t.y - 4,
|
|
397
|
+
width: f + 34 + 8,
|
|
398
|
+
height: Z,
|
|
399
|
+
class: "bv-row-bg"
|
|
400
|
+
}, null, 8, Oe),
|
|
401
|
+
o("text", {
|
|
402
|
+
x: d.left - 8,
|
|
403
|
+
y: t.y + X - 1,
|
|
404
|
+
"text-anchor": "end",
|
|
405
|
+
class: "bv-row-label"
|
|
406
|
+
}, b(t.index + 1), 9, ke),
|
|
407
|
+
t.connector ? (h(), a("line", {
|
|
408
|
+
key: 0,
|
|
409
|
+
x1: t.connector.x1,
|
|
410
|
+
x2: t.connector.x2,
|
|
411
|
+
y1: t.y + X / 2,
|
|
412
|
+
y2: t.y + X / 2,
|
|
413
|
+
class: "bv-connector"
|
|
414
|
+
}, null, 8, Ae)) : i("", !0),
|
|
415
|
+
(h(!0), a(e, null, y(t.bars, (e) => (h(), a("rect", {
|
|
416
|
+
key: e.hsp.num,
|
|
417
|
+
x: e.x,
|
|
418
|
+
y: t.y,
|
|
419
|
+
width: e.width,
|
|
420
|
+
height: X,
|
|
421
|
+
fill: e.color,
|
|
422
|
+
rx: "2",
|
|
423
|
+
class: "bv-hsp-bar",
|
|
424
|
+
onMouseenter: (n) => k(n, t.hit, e.hsp),
|
|
425
|
+
onMousemove: j,
|
|
426
|
+
onMouseleave: M
|
|
427
|
+
}, null, 40, je))), 128))
|
|
428
|
+
], 8, De))), 128))
|
|
429
|
+
], 8, ye))]),
|
|
430
|
+
c(pe, {
|
|
431
|
+
state: O,
|
|
432
|
+
theme: t.theme
|
|
433
|
+
}, null, 8, ["state", "theme"])
|
|
434
|
+
]));
|
|
247
435
|
}
|
|
248
|
-
}), [["__scopeId", "data-v-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
436
|
+
}), [["__scopeId", "data-v-07f476a9"]]), Pe = ["width", "height"], Fe = ["d"], Q = /*#__PURE__*/ J(/* @__PURE__ */ l({
|
|
437
|
+
__name: "BvIcon",
|
|
438
|
+
props: {
|
|
439
|
+
name: {},
|
|
440
|
+
size: { default: 20 }
|
|
441
|
+
},
|
|
442
|
+
setup(e) {
|
|
443
|
+
let t = {
|
|
444
|
+
"chevron-right": "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",
|
|
445
|
+
"chevron-left": "M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",
|
|
446
|
+
"chevron-down": "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",
|
|
447
|
+
close: "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",
|
|
448
|
+
magnify: "M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z",
|
|
449
|
+
download: "M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z",
|
|
450
|
+
"arrow-up": "M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",
|
|
451
|
+
"arrow-down": "M11,4H13V16L18.5,10.5L19.92,11.92L12,19.84L4.08,11.92L5.5,10.5L11,16V4Z",
|
|
452
|
+
"alert-circle-outline": "M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z",
|
|
453
|
+
"open-in-new": "M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",
|
|
454
|
+
eye: "M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"
|
|
455
|
+
};
|
|
456
|
+
return (n, r) => (h(), a("svg", {
|
|
457
|
+
class: "bv-icon",
|
|
458
|
+
viewBox: "0 0 24 24",
|
|
459
|
+
width: e.size,
|
|
460
|
+
height: e.size,
|
|
461
|
+
"aria-hidden": "true",
|
|
462
|
+
focusable: "false"
|
|
463
|
+
}, [o("path", {
|
|
464
|
+
d: t[e.name],
|
|
465
|
+
fill: "currentColor"
|
|
466
|
+
}, null, 8, Fe)], 8, Pe));
|
|
467
|
+
}
|
|
468
|
+
}), [["__scopeId", "data-v-84d1a979"]]), Ie = { class: "bv-hit-table" }, Le = { class: "bv-toolbar" }, Re = { class: "bv-field bv-filter" }, ze = { class: "bv-count" }, Be = { class: "bv-table-wrapper bv-card--outlined" }, Ve = { class: "bv-table" }, He = ["aria-sort"], Ue = ["onClick"], We = { class: "col-expand" }, Ge = [
|
|
469
|
+
"aria-expanded",
|
|
470
|
+
"aria-label",
|
|
471
|
+
"onClick"
|
|
472
|
+
], Ke = ["onClick"], qe = ["title"], Je = { class: "bv-desc-meta" }, Ye = { key: 0 }, Xe = { class: "bv-mono" }, Ze = ["href"], Qe = { key: 1 }, $e = { class: "col-num bv-mono" }, et = { class: "col-num bv-mono" }, tt = { class: "col-num bv-mono" }, nt = { class: "col-num bv-mono" }, rt = { class: "col-num bv-mono" }, it = { class: "col-action" }, at = ["onClick"], ot = {
|
|
261
473
|
key: 0,
|
|
262
|
-
class: "
|
|
263
|
-
}, st = ["href"],
|
|
264
|
-
key: 1,
|
|
265
|
-
class: "hsp-det-val sequence-font"
|
|
266
|
-
}, lt = { key: 0 }, ut = {
|
|
474
|
+
class: "bv-expand-row"
|
|
475
|
+
}, st = { colspan: "9" }, ct = { class: "bv-hsp-grid" }, lt = { class: "bv-hsp-head" }, ut = { class: "bv-hsp-name" }, dt = ["onClick"], ft = { class: "bv-hsp-body" }, pt = { class: "bv-mono" }, mt = { class: "bv-mono" }, ht = { class: "bv-mono" }, gt = { class: "bv-mono" }, _t = { class: "bv-mono" }, vt = { class: "bv-mono" }, yt = ["href"], bt = { key: 0 }, xt = {
|
|
267
476
|
colspan: "9",
|
|
268
|
-
class: "empty
|
|
269
|
-
},
|
|
270
|
-
key: 0,
|
|
271
|
-
class: "pagination"
|
|
272
|
-
}, ft = ["disabled"], pt = { class: "page-indicator" }, mt = ["disabled"], ht = /*#__PURE__*/ V(/* @__PURE__ */ c({
|
|
477
|
+
class: "bv-empty"
|
|
478
|
+
}, St = { class: "bv-footer" }, Ct = { class: "bv-per-page" }, wt = ["value"], Tt = { class: "bv-mono" }, Et = { class: "bv-pager" }, Dt = ["disabled"], Ot = ["disabled"], kt = /*#__PURE__*/ J(/* @__PURE__ */ l({
|
|
273
479
|
__name: "BlastHitTable",
|
|
274
480
|
props: {
|
|
275
481
|
searchData: {},
|
|
@@ -277,64 +483,74 @@ var S = { class: "blast-header fade-in" }, C = { class: "header-main glass-panel
|
|
|
277
483
|
isGenomic: { type: Boolean }
|
|
278
484
|
},
|
|
279
485
|
emits: ["select-hit"],
|
|
280
|
-
setup(
|
|
281
|
-
let
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
486
|
+
setup(t, { emit: r }) {
|
|
487
|
+
let l = t, d = r, p = u("bv-scroll-top", () => {}), m = [
|
|
488
|
+
{
|
|
489
|
+
key: "maxScore",
|
|
490
|
+
label: "Max score"
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
key: "totalScore",
|
|
494
|
+
label: "Total score"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
key: "coverage",
|
|
498
|
+
label: "Query cover"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
key: "evalue",
|
|
502
|
+
label: "E-value"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
key: "identity",
|
|
506
|
+
label: "Ident."
|
|
288
507
|
}
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
totalScore: t,
|
|
299
|
-
maxScore: n,
|
|
300
|
-
evalue: r,
|
|
301
|
-
identity: Math.round(i * 10) / 10,
|
|
302
|
-
coverage: C(e, c.searchData.query_len)
|
|
303
|
-
};
|
|
304
|
-
}, T = t(() => c.searchData.hits.map((e) => {
|
|
305
|
-
let t = w(e), n = e.description[0];
|
|
508
|
+
], g = [
|
|
509
|
+
10,
|
|
510
|
+
25,
|
|
511
|
+
50,
|
|
512
|
+
100
|
|
513
|
+
], w = v(""), D = v("totalScore"), N = v("desc"), P = v(1), F = v(10), I = _(/* @__PURE__ */ new Set()), L = n(() => l.searchData.hits.map((e) => {
|
|
514
|
+
let t = 0, n = 0, r = 1e400, i = 0;
|
|
515
|
+
for (let a of e.hsps) t += a.bit_score, n = Math.max(n, a.bit_score), r = Math.min(r, a.evalue), a.align_len > 0 && (i = Math.max(i, a.identity / a.align_len * 100));
|
|
516
|
+
let a = e.description[0];
|
|
306
517
|
return {
|
|
307
518
|
raw: e,
|
|
308
519
|
num: e.num,
|
|
309
|
-
title:
|
|
310
|
-
accession:
|
|
311
|
-
|
|
312
|
-
taxid: n.taxid,
|
|
520
|
+
title: a.title,
|
|
521
|
+
accession: a.accession,
|
|
522
|
+
taxid: a.taxid,
|
|
313
523
|
len: e.len,
|
|
314
|
-
|
|
524
|
+
link: O(l.subjectLink, a.accession),
|
|
525
|
+
searchText: `${a.title}\u0000${a.accession}`.toLowerCase(),
|
|
526
|
+
totalScore: t,
|
|
527
|
+
maxScore: n,
|
|
528
|
+
evalue: r,
|
|
529
|
+
identity: Math.round(i * 10) / 10,
|
|
530
|
+
coverage: ee(e, l.searchData.query_len)
|
|
315
531
|
};
|
|
316
|
-
})),
|
|
317
|
-
let e =
|
|
318
|
-
return e ?
|
|
319
|
-
}),
|
|
320
|
-
let
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
},
|
|
335
|
-
|
|
336
|
-
},
|
|
337
|
-
let e = [
|
|
532
|
+
})), R = n(() => {
|
|
533
|
+
let e = w.value.toLowerCase().trim();
|
|
534
|
+
return e ? L.value.filter((t) => t.searchText.includes(e)) : L.value;
|
|
535
|
+
}), z = n(() => {
|
|
536
|
+
let e = D.value, t = N.value === "asc" ? 1 : -1;
|
|
537
|
+
return [...R.value].sort((n, r) => n[e] === r[e] ? 0 : n[e] < r[e] ? -t : t);
|
|
538
|
+
}), B = n(() => Math.max(1, Math.ceil(z.value.length / F.value))), V = n(() => (P.value - 1) * F.value), H = n(() => z.value.slice(V.value, V.value + F.value));
|
|
539
|
+
T([
|
|
540
|
+
w,
|
|
541
|
+
F,
|
|
542
|
+
D,
|
|
543
|
+
N,
|
|
544
|
+
() => l.searchData
|
|
545
|
+
], () => {
|
|
546
|
+
P.value = 1;
|
|
547
|
+
}), T(() => l.searchData, () => I.clear());
|
|
548
|
+
let U = (e) => {
|
|
549
|
+
D.value === e ? N.value = N.value === "asc" ? "desc" : "asc" : (D.value = e, N.value = e === "evalue" ? "asc" : "desc");
|
|
550
|
+
}, W = (e) => D.value === e ? N.value === "asc" ? "ascending" : "descending" : "none", G = (e) => {
|
|
551
|
+
I.has(e) ? I.delete(e) : I.add(e);
|
|
552
|
+
}, K = (e, t, n) => O(l.subjectLink, `${e}:${t}..${n}`), q = () => {
|
|
553
|
+
let e = [[
|
|
338
554
|
"Description",
|
|
339
555
|
"Accession",
|
|
340
556
|
"Max Score",
|
|
@@ -343,363 +559,467 @@ var S = { class: "blast-header fade-in" }, C = { class: "header-main glass-panel
|
|
|
343
559
|
"E-value",
|
|
344
560
|
"Identity (%)",
|
|
345
561
|
"Length"
|
|
346
|
-
],
|
|
347
|
-
e.title
|
|
348
|
-
e.accession,
|
|
562
|
+
], ...z.value.map((e) => [
|
|
563
|
+
j(e.title),
|
|
564
|
+
j(e.accession),
|
|
349
565
|
e.maxScore.toFixed(1),
|
|
350
566
|
e.totalScore.toFixed(1),
|
|
351
|
-
|
|
352
|
-
e.evalue === 0 ? "0.0" : e.evalue
|
|
353
|
-
|
|
354
|
-
e.len
|
|
355
|
-
])
|
|
356
|
-
|
|
357
|
-
let o = c.searchData.query_id || "blast_results";
|
|
358
|
-
a.setAttribute("download", `${o}_hits.tsv`), a.style.visibility = "hidden", document.body.appendChild(a), a.click(), document.body.removeChild(a);
|
|
567
|
+
String(e.coverage),
|
|
568
|
+
e.evalue === 0 ? "0.0" : String(e.evalue),
|
|
569
|
+
String(e.identity),
|
|
570
|
+
String(e.len)
|
|
571
|
+
])].map((e) => e.join(" ")).join("\n"), t = URL.createObjectURL(new Blob([e], { type: "text/tab-separated-values;charset=utf-8" })), n = document.createElement("a");
|
|
572
|
+
n.href = t, n.download = `${M(l.searchData.query_id)}_hits.tsv`, document.body.appendChild(n), n.click(), n.remove(), setTimeout(() => URL.revokeObjectURL(t), 0);
|
|
359
573
|
};
|
|
360
|
-
return (
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
s[13] ||= i("th", { class: "desc-col" }, "Description", -1),
|
|
381
|
-
s[14] ||= i("th", { class: "acc-col" }, "Accession", -1),
|
|
382
|
-
i("th", {
|
|
383
|
-
class: u(["sortable", {
|
|
384
|
-
"active-sort": f.value === "maxScore",
|
|
385
|
-
[v.value]: f.value === "maxScore"
|
|
386
|
-
}]),
|
|
387
|
-
onClick: s[3] ||= (e) => A("maxScore")
|
|
388
|
-
}, "Max Score", 2),
|
|
389
|
-
i("th", {
|
|
390
|
-
class: u(["sortable", {
|
|
391
|
-
"active-sort": f.value === "totalScore",
|
|
392
|
-
[v.value]: f.value === "totalScore"
|
|
393
|
-
}]),
|
|
394
|
-
onClick: s[4] ||= (e) => A("totalScore")
|
|
395
|
-
}, "Total Score", 2),
|
|
396
|
-
i("th", {
|
|
397
|
-
class: u(["sortable", {
|
|
398
|
-
"active-sort": f.value === "coverage",
|
|
399
|
-
[v.value]: f.value === "coverage"
|
|
400
|
-
}]),
|
|
401
|
-
onClick: s[5] ||= (e) => A("coverage")
|
|
402
|
-
}, "Query Cover", 2),
|
|
403
|
-
i("th", {
|
|
404
|
-
class: u(["sortable", {
|
|
405
|
-
"active-sort": f.value === "evalue",
|
|
406
|
-
[v.value]: f.value === "evalue"
|
|
407
|
-
}]),
|
|
408
|
-
onClick: s[6] ||= (e) => A("evalue")
|
|
409
|
-
}, "E-value", 2),
|
|
410
|
-
i("th", {
|
|
411
|
-
class: u(["sortable", {
|
|
412
|
-
"active-sort": f.value === "identity",
|
|
413
|
-
[v.value]: f.value === "identity"
|
|
414
|
-
}]),
|
|
415
|
-
onClick: s[7] ||= (e) => A("identity")
|
|
416
|
-
}, "Ident (%)", 2),
|
|
417
|
-
s[15] ||= i("th", { class: "action-col" }, "Alignment", -1)
|
|
418
|
-
])]), i("tbody", null, [(p(!0), r(e, null, h(O.value, (c) => (p(), r(e, { key: c.num }, [i("tr", { class: u(["main-row", { expanded: S.value[c.num] }]) }, [
|
|
419
|
-
i("td", {
|
|
420
|
-
class: "expand-cell",
|
|
421
|
-
onClick: (e) => j(c.num)
|
|
422
|
-
}, [i("span", { class: u(["chevron", { open: S.value[c.num] }]) }, "▶", 2)], 8, Oe),
|
|
423
|
-
i("td", {
|
|
424
|
-
class: "desc-cell",
|
|
425
|
-
onClick: (e) => j(c.num)
|
|
426
|
-
}, [i("div", {
|
|
427
|
-
class: "desc-title",
|
|
428
|
-
title: c.title
|
|
429
|
-
}, g(c.title), 9, Ae), c.taxid ? (p(), r("div", je, "Tax ID: " + g(c.taxid) + " | Length: " + g(c.len), 1)) : n("", !0)], 8, ke),
|
|
430
|
-
i("td", Me, [i("a", {
|
|
431
|
-
href: P(c.accession),
|
|
432
|
-
target: "_blank",
|
|
433
|
-
class: "acc-link"
|
|
434
|
-
}, g(c.accession), 9, Ne)]),
|
|
435
|
-
i("td", Pe, g(c.maxScore.toFixed(1)), 1),
|
|
436
|
-
i("td", Fe, g(c.totalScore.toFixed(1)), 1),
|
|
437
|
-
i("td", Ie, g(c.coverage) + "%", 1),
|
|
438
|
-
i("td", Le, g(N(c.evalue)), 1),
|
|
439
|
-
i("td", Re, g(c.identity) + "%", 1),
|
|
440
|
-
i("td", ze, [i("button", {
|
|
441
|
-
class: "btn btn-secondary btn-sm",
|
|
442
|
-
onClick: (e) => M(c.num)
|
|
443
|
-
}, " View ", 8, Be)])
|
|
444
|
-
], 2), S.value[c.num] ? (p(), r("tr", Ve, [i("td", He, [i("div", Ue, [s[22] ||= i("div", { class: "hsp-summary-title" }, "High-scoring Segment Pairs (HSPs) details for this hit:", -1), i("div", We, [(p(!0), r(e, null, h(c.raw.hsps, (e) => (p(), r("div", {
|
|
445
|
-
key: e.num,
|
|
446
|
-
class: "hsp-item-card"
|
|
447
|
-
}, [i("div", Ge, [i("span", Ke, [o("HSP " + g(e.num) + " - ", 1), i("a", {
|
|
448
|
-
href: "javascript:void(0)",
|
|
449
|
-
onClick: s[8] ||= (e) => t.$el.closest(".blast-viewer")?.querySelector(".blastviewer-top-anchor")?.scrollIntoView({
|
|
450
|
-
behavior: "smooth",
|
|
451
|
-
block: "start"
|
|
452
|
-
}),
|
|
453
|
-
title: "Top of the page"
|
|
454
|
-
}, "Back to top")]), i("button", {
|
|
455
|
-
class: "btn btn-primary btn-xs",
|
|
456
|
-
onClick: (e) => M(c.num)
|
|
457
|
-
}, " Alignments Detail ", 8, qe)]), i("div", Je, [
|
|
458
|
-
i("div", Ye, [s[16] ||= i("span", { class: "hsp-det-lbl" }, "Bit Score:", -1), i("span", Xe, g(e.bit_score.toFixed(1)), 1)]),
|
|
459
|
-
i("div", Ze, [s[17] ||= i("span", { class: "hsp-det-lbl" }, "E-value:", -1), i("span", Qe, g(N(e.evalue)), 1)]),
|
|
460
|
-
i("div", $e, [s[18] ||= i("span", { class: "hsp-det-lbl" }, "Identities:", -1), i("span", et, g(e.identity) + " / " + g(e.align_len) + " (" + g(Math.round(e.identity / e.align_len * 100)) + "%) ", 1)]),
|
|
461
|
-
e.gaps > 0 ? (p(), r("div", tt, [s[19] ||= i("span", { class: "hsp-det-lbl" }, "Gaps:", -1), i("span", nt, g(e.gaps), 1)])) : n("", !0),
|
|
462
|
-
i("div", rt, [s[20] ||= i("span", { class: "hsp-det-lbl" }, "Query Coordinates:", -1), i("span", it, g(e.query_from) + " to " + g(e.query_to), 1)]),
|
|
463
|
-
i("div", at, [s[21] ||= i("span", { class: "hsp-det-lbl" }, "Subject Coordinates:", -1), a.isGenomic ? (p(), r("span", ot, [i("a", {
|
|
464
|
-
href: F(c.accession, e.hit_from, e.hit_to),
|
|
465
|
-
target: "_blank"
|
|
466
|
-
}, g(e.hit_from) + " to " + g(e.hit_to), 9, st)])) : (p(), r("span", ct, g(e.hit_from) + " to " + g(e.hit_to), 1))])
|
|
467
|
-
])]))), 128))])])])])) : n("", !0)], 64))), 128)), E.value.length === 0 ? (p(), r("tr", lt, [i("td", ut, " No matching hits found for \"" + g(d.value) + "\" ", 1)])) : n("", !0)])])]),
|
|
468
|
-
k.value > 1 ? (p(), r("div", dt, [
|
|
469
|
-
i("button", {
|
|
470
|
-
class: "btn btn-secondary btn-pagination",
|
|
471
|
-
disabled: y.value === 1,
|
|
472
|
-
onClick: s[9] ||= (e) => y.value--
|
|
473
|
-
}, " ◀ Prev ", 8, ft),
|
|
474
|
-
i("span", pt, [
|
|
475
|
-
s[23] ||= o(" Page ", -1),
|
|
476
|
-
i("strong", null, g(y.value), 1),
|
|
477
|
-
s[24] ||= o(" of ", -1),
|
|
478
|
-
i("strong", null, g(k.value), 1)
|
|
574
|
+
return (n, r) => (h(), a("div", Ie, [
|
|
575
|
+
o("div", Le, [
|
|
576
|
+
o("label", Re, [
|
|
577
|
+
c(Q, { name: "magnify" }),
|
|
578
|
+
E(o("input", {
|
|
579
|
+
"onUpdate:modelValue": r[0] ||= (e) => w.value = e,
|
|
580
|
+
type: "search",
|
|
581
|
+
placeholder: "Filter by description or accession",
|
|
582
|
+
"aria-label": "Filter hits"
|
|
583
|
+
}, null, 512), [[C, w.value]]),
|
|
584
|
+
w.value ? (h(), a("button", {
|
|
585
|
+
key: 0,
|
|
586
|
+
type: "button",
|
|
587
|
+
class: "bv-btn bv-btn--icon bv-btn--small",
|
|
588
|
+
"aria-label": "Clear filter",
|
|
589
|
+
onClick: r[1] ||= (e) => w.value = ""
|
|
590
|
+
}, [c(Q, {
|
|
591
|
+
name: "close",
|
|
592
|
+
size: 18
|
|
593
|
+
})])) : i("", !0)
|
|
479
594
|
]),
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
595
|
+
o("span", ze, b(R.value.length) + " of " + b(t.searchData.hits.length) + " hits", 1),
|
|
596
|
+
o("button", {
|
|
597
|
+
type: "button",
|
|
598
|
+
class: "bv-btn bv-btn--tonal",
|
|
599
|
+
title: "Export the filtered hits as TSV",
|
|
600
|
+
onClick: q
|
|
601
|
+
}, [c(Q, {
|
|
602
|
+
name: "download",
|
|
603
|
+
size: 18
|
|
604
|
+
}), r[6] ||= s(" Export TSV ", -1)])
|
|
605
|
+
]),
|
|
606
|
+
o("div", Be, [o("table", Ve, [o("thead", null, [o("tr", null, [
|
|
607
|
+
r[7] ||= o("th", { class: "col-expand" }, [o("span", { class: "bv-sr-only" }, "Details")], -1),
|
|
608
|
+
r[8] ||= o("th", null, "Description", -1),
|
|
609
|
+
r[9] ||= o("th", null, "Accession", -1),
|
|
610
|
+
(h(), a(e, null, y(m, (e) => o("th", {
|
|
611
|
+
key: e.key,
|
|
612
|
+
class: f(["col-num", { "is-sorted": D.value === e.key }]),
|
|
613
|
+
"aria-sort": W(e.key)
|
|
614
|
+
}, [o("button", {
|
|
615
|
+
type: "button",
|
|
616
|
+
class: "bv-sort",
|
|
617
|
+
onClick: (t) => U(e.key)
|
|
618
|
+
}, [s(b(e.label) + " ", 1), c(Q, {
|
|
619
|
+
name: D.value === e.key && N.value === "asc" ? "arrow-up" : "arrow-down",
|
|
620
|
+
size: 16,
|
|
621
|
+
class: "bv-sort-icon"
|
|
622
|
+
}, null, 8, ["name"])], 8, Ue)], 10, He)), 64)),
|
|
623
|
+
r[10] ||= o("th", { class: "col-action" }, [o("span", { class: "bv-sr-only" }, "Alignment")], -1)
|
|
624
|
+
])]), o("tbody", null, [(h(!0), a(e, null, y(H.value, (n) => (h(), a(e, { key: n.num }, [o("tr", { class: f(["bv-row", { "is-expanded": I.has(n.num) }]) }, [
|
|
625
|
+
o("td", We, [o("button", {
|
|
626
|
+
type: "button",
|
|
627
|
+
class: "bv-btn bv-btn--icon bv-btn--small",
|
|
628
|
+
"aria-expanded": I.has(n.num),
|
|
629
|
+
"aria-label": `HSP details for ${n.accession}`,
|
|
630
|
+
onClick: (e) => G(n.num)
|
|
631
|
+
}, [c(Q, {
|
|
632
|
+
name: "chevron-right",
|
|
633
|
+
class: f(["bv-chevron", { open: I.has(n.num) }])
|
|
634
|
+
}, null, 8, ["class"])], 8, Ge)]),
|
|
635
|
+
o("td", {
|
|
636
|
+
class: "col-desc",
|
|
637
|
+
onClick: (e) => G(n.num)
|
|
638
|
+
}, [o("div", {
|
|
639
|
+
class: "bv-desc-title",
|
|
640
|
+
title: n.title
|
|
641
|
+
}, b(n.title), 9, qe), o("div", Je, [n.taxid ? (h(), a("span", Ye, "Tax ID " + b(n.taxid) + " · ", 1)) : i("", !0), s("Length " + b(n.len.toLocaleString("en-US")), 1)])], 8, Ke),
|
|
642
|
+
o("td", Xe, [n.link ? (h(), a("a", {
|
|
643
|
+
key: 0,
|
|
644
|
+
href: n.link,
|
|
645
|
+
target: "_blank",
|
|
646
|
+
rel: "noopener noreferrer"
|
|
647
|
+
}, b(n.accession), 9, Ze)) : (h(), a("span", Qe, b(n.accession), 1))]),
|
|
648
|
+
o("td", $e, b(n.maxScore.toFixed(1)), 1),
|
|
649
|
+
o("td", et, b(n.totalScore.toFixed(1)), 1),
|
|
650
|
+
o("td", tt, b(n.coverage) + "%", 1),
|
|
651
|
+
o("td", nt, b(x(k)(n.evalue)), 1),
|
|
652
|
+
o("td", rt, b(n.identity) + "%", 1),
|
|
653
|
+
o("td", it, [o("button", {
|
|
654
|
+
type: "button",
|
|
655
|
+
class: "bv-btn bv-btn--text bv-btn--small",
|
|
656
|
+
onClick: (e) => d("select-hit", n.num)
|
|
657
|
+
}, "View", 8, at)])
|
|
658
|
+
], 2), I.has(n.num) ? (h(), a("tr", ot, [o("td", st, [o("div", ct, [(h(!0), a(e, null, y(n.raw.hsps, (l) => (h(), a("div", {
|
|
659
|
+
key: l.num,
|
|
660
|
+
class: "bv-hsp-card bv-card--outlined"
|
|
661
|
+
}, [o("div", lt, [o("span", ut, "HSP " + b(l.num), 1), o("span", null, [o("button", {
|
|
662
|
+
type: "button",
|
|
663
|
+
class: "bv-btn bv-btn--text bv-btn--x-small",
|
|
664
|
+
title: "Back to top",
|
|
665
|
+
onClick: r[2] ||= (...e) => x(p) && x(p)(...e)
|
|
666
|
+
}, [c(Q, {
|
|
667
|
+
name: "arrow-up",
|
|
668
|
+
size: 14
|
|
669
|
+
}), r[11] ||= s(" Top ", -1)]), o("button", {
|
|
670
|
+
type: "button",
|
|
671
|
+
class: "bv-btn bv-btn--tonal bv-btn--x-small",
|
|
672
|
+
onClick: (e) => d("select-hit", n.num)
|
|
673
|
+
}, " Alignment ", 8, dt)])]), o("dl", ft, [
|
|
674
|
+
r[13] ||= o("dt", null, "Bit score", -1),
|
|
675
|
+
o("dd", pt, b(l.bit_score.toFixed(1)), 1),
|
|
676
|
+
r[14] ||= o("dt", null, "E-value", -1),
|
|
677
|
+
o("dd", mt, b(x(k)(l.evalue)), 1),
|
|
678
|
+
r[15] ||= o("dt", null, "Identities", -1),
|
|
679
|
+
o("dd", ht, b(l.identity) + "/" + b(l.align_len) + " (" + b(x(A)(l.identity, l.align_len)) + "%)", 1),
|
|
680
|
+
l.gaps > 0 ? (h(), a(e, { key: 0 }, [r[12] ||= o("dt", null, "Gaps", -1), o("dd", gt, b(l.gaps), 1)], 64)) : i("", !0),
|
|
681
|
+
r[16] ||= o("dt", null, "Query", -1),
|
|
682
|
+
o("dd", _t, b(l.query_from) + ".." + b(l.query_to), 1),
|
|
683
|
+
r[17] ||= o("dt", null, "Subject", -1),
|
|
684
|
+
o("dd", vt, [t.isGenomic && K(n.accession, l.hit_from, l.hit_to) ? (h(), a("a", {
|
|
685
|
+
key: 0,
|
|
686
|
+
href: K(n.accession, l.hit_from, l.hit_to),
|
|
687
|
+
target: "_blank",
|
|
688
|
+
rel: "noopener noreferrer"
|
|
689
|
+
}, b(l.hit_from) + ".." + b(l.hit_to), 9, yt)) : (h(), a(e, { key: 1 }, [s(b(l.hit_from) + ".." + b(l.hit_to), 1)], 64))])
|
|
690
|
+
])]))), 128))])])])) : i("", !0)], 64))), 128)), R.value.length === 0 ? (h(), a("tr", bt, [o("td", xt, "No hits match “" + b(w.value) + "”.", 1)])) : i("", !0)])])]),
|
|
691
|
+
o("div", St, [
|
|
692
|
+
o("label", Ct, [r[18] ||= s(" Items per page ", -1), E(o("select", {
|
|
693
|
+
"onUpdate:modelValue": r[3] ||= (e) => F.value = e,
|
|
694
|
+
class: "bv-select"
|
|
695
|
+
}, [(h(), a(e, null, y(g, (e) => o("option", {
|
|
696
|
+
key: e,
|
|
697
|
+
value: e
|
|
698
|
+
}, b(e), 9, wt)), 64))], 512), [[
|
|
699
|
+
S,
|
|
700
|
+
F.value,
|
|
701
|
+
void 0,
|
|
702
|
+
{ number: !0 }
|
|
703
|
+
]])]),
|
|
704
|
+
o("span", Tt, b(R.value.length ? V.value + 1 : 0) + "–" + b(Math.min(V.value + F.value, R.value.length)) + " of " + b(R.value.length), 1),
|
|
705
|
+
o("span", Et, [o("button", {
|
|
706
|
+
type: "button",
|
|
707
|
+
class: "bv-btn bv-btn--icon",
|
|
708
|
+
disabled: P.value === 1,
|
|
709
|
+
"aria-label": "Previous page",
|
|
710
|
+
onClick: r[4] ||= (e) => P.value--
|
|
711
|
+
}, [c(Q, { name: "chevron-left" })], 8, Dt), o("button", {
|
|
712
|
+
type: "button",
|
|
713
|
+
class: "bv-btn bv-btn--icon",
|
|
714
|
+
disabled: P.value >= B.value,
|
|
715
|
+
"aria-label": "Next page",
|
|
716
|
+
onClick: r[5] ||= (e) => P.value++
|
|
717
|
+
}, [c(Q, { name: "chevron-right" })], 8, Ot)])
|
|
718
|
+
])
|
|
486
719
|
]));
|
|
487
720
|
}
|
|
488
|
-
}), [["__scopeId", "data-v-
|
|
721
|
+
}), [["__scopeId", "data-v-e7ebcd85"]]), At = { class: "bv-aln-coord" }, jt = { class: "bv-aln-seq" }, Mt = { class: "bv-aln-coord bv-aln-end" }, Nt = {
|
|
722
|
+
class: "bv-aln-seq bv-aln-mid",
|
|
723
|
+
"aria-hidden": "true"
|
|
724
|
+
}, Pt = { class: "bv-aln-coord" }, Ft = { class: "bv-aln-seq" }, It = { class: "bv-aln-coord bv-aln-end" }, $ = 50, Lt = /*#__PURE__*/ J(/* @__PURE__ */ l({
|
|
725
|
+
__name: "BlastHspAlignment",
|
|
726
|
+
props: {
|
|
727
|
+
hsp: {},
|
|
728
|
+
program: {}
|
|
729
|
+
},
|
|
730
|
+
setup(t) {
|
|
731
|
+
let r = t, s = v(!1), c = n(() => z(r.hsp, r.program)), l = n(() => s.value ? c.value : c.value.slice(0, $)), u = n(() => {
|
|
732
|
+
let e = r.hsp, t = Math.max(e.query_from, e.query_to, e.hit_from, e.hit_to);
|
|
733
|
+
return `${String(t).length}ch`;
|
|
734
|
+
});
|
|
735
|
+
return (t, n) => (h(), a("div", {
|
|
736
|
+
class: "bv-aln",
|
|
737
|
+
style: p({ "--bv-coord-w": u.value })
|
|
738
|
+
}, [(h(!0), a(e, null, y(l.value, (t, r) => (h(), a("div", {
|
|
739
|
+
key: r,
|
|
740
|
+
class: "bv-aln-block"
|
|
741
|
+
}, [
|
|
742
|
+
n[1] ||= o("span", { class: "bv-aln-label" }, "Query", -1),
|
|
743
|
+
o("span", At, b(t.queryStart), 1),
|
|
744
|
+
o("span", jt, [(h(!0), a(e, null, y(t.query, (e, t) => (h(), a("span", {
|
|
745
|
+
key: t,
|
|
746
|
+
class: f(e.type)
|
|
747
|
+
}, b(e.text), 3))), 128))]),
|
|
748
|
+
o("span", Mt, b(t.queryEnd), 1),
|
|
749
|
+
n[2] ||= o("span", { class: "bv-aln-label" }, null, -1),
|
|
750
|
+
n[3] ||= o("span", { class: "bv-aln-coord" }, null, -1),
|
|
751
|
+
o("span", Nt, [(h(!0), a(e, null, y(t.midline, (e, t) => (h(), a("span", {
|
|
752
|
+
key: t,
|
|
753
|
+
class: f(e.type)
|
|
754
|
+
}, b(e.text), 3))), 128))]),
|
|
755
|
+
n[4] ||= o("span", { class: "bv-aln-coord" }, null, -1),
|
|
756
|
+
n[5] ||= o("span", { class: "bv-aln-label" }, "Sbjct", -1),
|
|
757
|
+
o("span", Pt, b(t.sbjctStart), 1),
|
|
758
|
+
o("span", Ft, [(h(!0), a(e, null, y(t.sbjct, (e, t) => (h(), a("span", {
|
|
759
|
+
key: t,
|
|
760
|
+
class: f(e.type)
|
|
761
|
+
}, b(e.text), 3))), 128))]),
|
|
762
|
+
o("span", It, b(t.sbjctEnd), 1)
|
|
763
|
+
]))), 128)), !s.value && c.value.length > $ ? (h(), a("button", {
|
|
764
|
+
key: 0,
|
|
765
|
+
type: "button",
|
|
766
|
+
class: "bv-btn bv-btn--tonal bv-btn--small bv-aln-more",
|
|
767
|
+
onClick: n[0] ||= (e) => s.value = !0
|
|
768
|
+
}, " Show the " + b(c.value.length - $) + " remaining blocks ", 1)) : i("", !0)], 4));
|
|
769
|
+
}
|
|
770
|
+
}), [["__scopeId", "data-v-29632248"]]), Rt = { class: "bv-alignments" }, zt = { class: "bv-panels" }, Bt = { class: "bv-panel-heading" }, Vt = ["aria-expanded", "onClick"], Ht = { class: "bv-chip bv-chip--label bv-index" }, Ut = { class: "bv-panel-text" }, Wt = { class: "bv-panel-meta" }, Gt = ["href"], Kt = {
|
|
771
|
+
key: 1,
|
|
772
|
+
class: "bv-chip bv-mono"
|
|
773
|
+
}, qt = { class: "bv-len" }, Jt = {
|
|
489
774
|
key: 0,
|
|
490
|
-
class: "
|
|
491
|
-
},
|
|
775
|
+
class: "bv-panel-content"
|
|
776
|
+
}, Yt = { class: "bv-hsp-header" }, Xt = { class: "bv-hsp-title" }, Zt = { class: "bv-hsp-stat" }, Qt = { class: "bv-hsp-stat" }, $t = { class: "bv-hsp-stat" }, en = {
|
|
492
777
|
key: 0,
|
|
493
|
-
class: "hsp-stat
|
|
494
|
-
},
|
|
778
|
+
class: "bv-hsp-stat"
|
|
779
|
+
}, tn = {
|
|
495
780
|
key: 1,
|
|
496
|
-
class: "hsp-stat
|
|
497
|
-
},
|
|
781
|
+
class: "bv-hsp-stat"
|
|
782
|
+
}, nn = {
|
|
498
783
|
key: 2,
|
|
499
|
-
class: "hsp-stat
|
|
500
|
-
},
|
|
784
|
+
class: "bv-hsp-stat"
|
|
785
|
+
}, rn = ["href"], an = /*#__PURE__*/ J(/* @__PURE__ */ l({
|
|
501
786
|
__name: "BlastAlignmentDetails",
|
|
502
787
|
props: {
|
|
503
788
|
searchData: {},
|
|
504
|
-
|
|
789
|
+
program: {},
|
|
790
|
+
selection: {},
|
|
505
791
|
subjectLink: {},
|
|
506
792
|
isGenomic: { type: Boolean }
|
|
507
793
|
},
|
|
508
794
|
setup(t) {
|
|
509
|
-
let
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
}), setTimeout(() => {
|
|
520
|
-
d.value === e && (d.value = null);
|
|
521
|
-
}, 2500));
|
|
522
|
-
}
|
|
523
|
-
});
|
|
524
|
-
let _ = (e, t) => {
|
|
525
|
-
t && (c.value[e] = t);
|
|
526
|
-
}, v = (e) => {
|
|
527
|
-
s.value[e] = !s.value[e];
|
|
528
|
-
}, b = (e) => {
|
|
529
|
-
let t = e.qseq, n = e.hseq, r = e.midline, i = t.length, a = [], o = e.query_from, s = e.hit_from, c = e.hit_strand === "minus" || e.hit_to < e.hit_from;
|
|
530
|
-
for (let e = 0; e < i; e += 60) {
|
|
531
|
-
let l = Math.min(e + 60, i), u = [], d = o, f = s, p = 0, m = 0;
|
|
532
|
-
for (let i = e; i < l; i++) {
|
|
533
|
-
let e = t[i], a = n[i], l = r[i] || " ", d = "mismatch";
|
|
534
|
-
e === "-" || a === "-" ? d = "gap" : l === "|" ? d = "match" : l === "+" ? d = "positive" : e === a && (l = "|", d = "match"), u.push({
|
|
535
|
-
q: e,
|
|
536
|
-
h: a,
|
|
537
|
-
m: l,
|
|
538
|
-
type: d
|
|
539
|
-
}), e !== "-" && (o++, p++), a !== "-" && (c ? s-- : s++, m++);
|
|
540
|
-
}
|
|
541
|
-
let h = d + (p > 0 ? p - 1 : 0), g = c ? f - (m > 0 ? m - 1 : 0) : f + (m > 0 ? m - 1 : 0);
|
|
542
|
-
a.push({
|
|
543
|
-
queryStart: d,
|
|
544
|
-
queryEnd: h,
|
|
545
|
-
sbjctStart: f,
|
|
546
|
-
sbjctEnd: g,
|
|
547
|
-
columns: u
|
|
548
|
-
});
|
|
549
|
-
}
|
|
550
|
-
return a;
|
|
551
|
-
}, S = (e) => e === 0 ? "0.0" : e < .001 ? e.toExponential(2) : e.toFixed(4), C = (e) => a.subjectLink ? a.subjectLink.replace("{accession}", e) : "", w = (e, t, n) => a.subjectLink ? a.subjectLink.replace("{accession}", `${e}:${t}..${n}`) : "";
|
|
552
|
-
return (a, c) => (p(), r("div", gt, [c[12] ||= i("div", { class: "alignments-title" }, [i("h2", null, "Detailed Pairwise Alignments"), i("p", null, "Click headers to collapse/expand. Matching bases/residues are color-highlighted.")], -1), i("div", _t, [(p(!0), r(e, null, h(t.searchData.hits, (l, f) => (p(), r("div", {
|
|
553
|
-
key: l.num,
|
|
554
|
-
ref_for: !0,
|
|
555
|
-
ref: (e) => _(l.num, e),
|
|
556
|
-
class: u(["hit-alignment-card glass-panel", {
|
|
557
|
-
expanded: s.value[l.num],
|
|
558
|
-
"highlighted-flash": d.value === l.num
|
|
559
|
-
}])
|
|
560
|
-
}, [i("div", {
|
|
561
|
-
class: "alignment-card-header",
|
|
562
|
-
onClick: (e) => v(l.num)
|
|
563
|
-
}, [i("div", yt, [i("span", { class: u(["chevron-icon", { open: s.value[l.num] }]) }, "▶", 2), i("div", bt, [i("span", xt, "Hit " + g(f + 1), 1), i("span", St, g(l.description[0].title), 1)])]), i("div", Ct, [i("a", {
|
|
564
|
-
href: C(l.description[0].accession),
|
|
565
|
-
target: "_blank",
|
|
566
|
-
class: "accession-badge sequence-font",
|
|
567
|
-
onClick: c[0] ||= x(() => {}, ["stop"])
|
|
568
|
-
}, g(l.description[0].accession), 9, wt), i("span", Tt, "Length: " + g(l.len), 1)])], 8, vt), s.value[l.num] ? (p(), r("div", Et, [(p(!0), r(e, null, h(l.hsps, (s) => (p(), r("div", {
|
|
569
|
-
key: s.num,
|
|
570
|
-
class: "hsp-alignment-box"
|
|
571
|
-
}, [i("div", Dt, [i("div", Ot, [o("HSP " + g(s.num) + " - ", 1), i("a", {
|
|
572
|
-
href: "javascript:void(0)",
|
|
573
|
-
onClick: c[1] ||= (e) => a.$el.closest(".blast-viewer")?.querySelector(".blastviewer-top-anchor")?.scrollIntoView({
|
|
795
|
+
let n = t, r = u("bv-scroll-top", () => {}), l = _(/* @__PURE__ */ new Set()), p = v(null), g = /* @__PURE__ */ new Map(), S, C = (e, t) => {
|
|
796
|
+
t ? g.set(e, t) : g.delete(e);
|
|
797
|
+
}, w = (e) => {
|
|
798
|
+
l.has(e) ? l.delete(e) : l.add(e);
|
|
799
|
+
};
|
|
800
|
+
T(() => n.searchData, (e) => {
|
|
801
|
+
l.clear(), e.hits.length && l.add(e.hits[0].num);
|
|
802
|
+
}, { immediate: !0 }), T(() => n.selection?.seq, async () => {
|
|
803
|
+
let e = n.selection?.num;
|
|
804
|
+
e != null && (l.add(e), p.value = e, await d(), g.get(e)?.scrollIntoView({
|
|
574
805
|
behavior: "smooth",
|
|
575
806
|
block: "start"
|
|
576
|
-
}),
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
s.gaps > 0 ? (p(), r("div", Rt, [c[5] ||= i("span", { class: "lbl" }, "Gaps:", -1), i("span", zt, g(s.gaps) + "/" + g(s.align_len) + " (" + g(Math.round(s.gaps / s.align_len * 100)) + "%)", 1)])) : n("", !0),
|
|
588
|
-
s.query_strand || s.hit_strand ? (p(), r("div", Bt, [c[6] ||= i("span", { class: "lbl" }, "Strand:", -1), i("span", Vt, g(s.query_strand) + " / " + g(s.hit_strand), 1)])) : n("", !0)
|
|
589
|
-
])]), i("div", Ht, [(p(!0), r(e, null, h(b(s), (t, n) => (p(), r("div", {
|
|
590
|
-
key: n,
|
|
591
|
-
class: "alignment-block"
|
|
807
|
+
}), clearTimeout(S), S = setTimeout(() => p.value = null, 2500));
|
|
808
|
+
}, { immediate: !0 }), m(() => clearTimeout(S));
|
|
809
|
+
let E = (e) => O(n.subjectLink, e), D = (e, t, r) => O(n.subjectLink, `${e}:${t}..${r}`);
|
|
810
|
+
return (n, u) => (h(), a("div", Rt, [u[9] ||= o("p", { class: "bv-card-subtitle" }, "Click a hit to show or hide its alignments.", -1), o("div", zt, [(h(!0), a(e, null, y(t.searchData.hits, (n, d) => (h(), a("section", {
|
|
811
|
+
key: n.num,
|
|
812
|
+
ref_for: !0,
|
|
813
|
+
ref: (e) => C(n.num, e),
|
|
814
|
+
class: f(["bv-panel", {
|
|
815
|
+
"is-open": l.has(n.num),
|
|
816
|
+
"is-highlighted": p.value === n.num
|
|
817
|
+
}])
|
|
592
818
|
}, [
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
819
|
+
o("h3", Bt, [o("button", {
|
|
820
|
+
type: "button",
|
|
821
|
+
class: "bv-panel-title",
|
|
822
|
+
"aria-expanded": l.has(n.num),
|
|
823
|
+
onClick: (e) => w(n.num)
|
|
824
|
+
}, [
|
|
825
|
+
o("span", Ht, b(d + 1), 1),
|
|
826
|
+
o("span", Ut, b(n.description[0].title || n.description[0].accession), 1),
|
|
827
|
+
c(Q, {
|
|
828
|
+
name: "chevron-down",
|
|
829
|
+
class: "bv-panel-chevron"
|
|
830
|
+
})
|
|
831
|
+
], 8, Vt)]),
|
|
832
|
+
o("div", Wt, [E(n.description[0].accession) ? (h(), a("a", {
|
|
833
|
+
key: 0,
|
|
834
|
+
href: E(n.description[0].accession),
|
|
835
|
+
target: "_blank",
|
|
836
|
+
rel: "noopener noreferrer",
|
|
837
|
+
class: "bv-chip bv-chip--primary bv-mono"
|
|
838
|
+
}, b(n.description[0].accession), 9, Gt)) : (h(), a("span", Kt, b(n.description[0].accession), 1)), o("span", qt, "Length " + b(n.len.toLocaleString("en-US")), 1)]),
|
|
839
|
+
l.has(n.num) ? (h(), a("div", Jt, [(h(!0), a(e, null, y(n.hsps, (e) => (h(), a("article", {
|
|
840
|
+
key: e.num,
|
|
841
|
+
class: "bv-hsp"
|
|
842
|
+
}, [o("header", Yt, [
|
|
843
|
+
o("span", Xt, "HSP " + b(e.num), 1),
|
|
844
|
+
o("span", Zt, [u[1] ||= o("span", null, "Score", -1), s(" " + b(e.bit_score.toFixed(1)) + " bits (" + b(e.score) + ")", 1)]),
|
|
845
|
+
o("span", Qt, [u[2] ||= o("span", null, "Expect", -1), s(" " + b(x(k)(e.evalue)), 1)]),
|
|
846
|
+
o("span", $t, [u[3] ||= o("span", null, "Identities", -1), s(" " + b(e.identity) + "/" + b(e.align_len) + " (" + b(x(A)(e.identity, e.align_len)) + "%) ", 1)]),
|
|
847
|
+
e.positive != null && e.positive !== e.identity ? (h(), a("span", en, [u[4] ||= o("span", null, "Positives", -1), s(" " + b(e.positive) + "/" + b(e.align_len) + " (" + b(x(A)(e.positive, e.align_len)) + "%) ", 1)])) : i("", !0),
|
|
848
|
+
e.gaps > 0 ? (h(), a("span", tn, [u[5] ||= o("span", null, "Gaps", -1), s(" " + b(e.gaps) + "/" + b(e.align_len) + " (" + b(x(A)(e.gaps, e.align_len)) + "%) ", 1)])) : i("", !0),
|
|
849
|
+
e.query_strand || e.hit_strand ? (h(), a("span", nn, [u[6] ||= o("span", null, "Strand", -1), s(" " + b(e.query_strand) + "/" + b(e.hit_strand), 1)])) : i("", !0),
|
|
850
|
+
u[8] ||= o("span", { class: "bv-spacer" }, null, -1),
|
|
851
|
+
t.isGenomic && D(n.description[0].accession, e.hit_from, e.hit_to) ? (h(), a("a", {
|
|
852
|
+
key: 3,
|
|
853
|
+
href: D(n.description[0].accession, e.hit_from, e.hit_to),
|
|
854
|
+
target: "_blank",
|
|
855
|
+
rel: "noopener noreferrer",
|
|
856
|
+
class: "bv-btn bv-btn--outlined bv-btn--x-small bv-region"
|
|
857
|
+
}, [s(b(n.description[0].accession) + ":" + b(e.hit_from) + ".." + b(e.hit_to) + " ", 1), c(Q, {
|
|
858
|
+
name: "open-in-new",
|
|
859
|
+
size: 12
|
|
860
|
+
})], 8, rn)) : i("", !0),
|
|
861
|
+
o("button", {
|
|
862
|
+
type: "button",
|
|
863
|
+
class: "bv-btn bv-btn--text bv-btn--x-small",
|
|
864
|
+
title: "Back to top",
|
|
865
|
+
onClick: u[0] ||= (...e) => x(r) && x(r)(...e)
|
|
866
|
+
}, [c(Q, {
|
|
867
|
+
name: "arrow-up",
|
|
868
|
+
size: 14
|
|
869
|
+
}), u[7] ||= s(" Top ", -1)])
|
|
870
|
+
]), c(Lt, {
|
|
871
|
+
hsp: e,
|
|
872
|
+
program: t.program
|
|
873
|
+
}, null, 8, ["hsp", "program"])]))), 128))])) : i("", !0)
|
|
874
|
+
], 2))), 128))])]));
|
|
621
875
|
}
|
|
622
|
-
}), [["__scopeId", "data-v-
|
|
876
|
+
}), [["__scopeId", "data-v-b06059c1"]]), on = ["data-theme"], sn = {
|
|
623
877
|
key: 0,
|
|
624
|
-
class: "
|
|
625
|
-
|
|
878
|
+
class: "bv-alert",
|
|
879
|
+
role: "alert"
|
|
880
|
+
}, cn = { class: "bv-card bv-tabs-card" }, ln = {
|
|
881
|
+
class: "bv-tabs",
|
|
882
|
+
role: "tablist",
|
|
883
|
+
"aria-label": "BLAST result views"
|
|
884
|
+
}, un = [
|
|
885
|
+
"id",
|
|
886
|
+
"aria-selected",
|
|
887
|
+
"aria-controls",
|
|
888
|
+
"tabindex",
|
|
889
|
+
"onClick",
|
|
890
|
+
"onKeydown"
|
|
891
|
+
], dn = ["id", "aria-labelledby"], fn = /*#__PURE__*/ J(/* @__PURE__ */ l({
|
|
626
892
|
__name: "BlastViewer",
|
|
627
893
|
props: {
|
|
628
894
|
blastData: {},
|
|
629
895
|
queryLink: {},
|
|
630
896
|
subjectLink: {},
|
|
631
|
-
theme: {},
|
|
897
|
+
theme: { default: "light" },
|
|
632
898
|
db: {},
|
|
633
|
-
isGenomic: {
|
|
899
|
+
isGenomic: {
|
|
900
|
+
type: Boolean,
|
|
901
|
+
default: !1
|
|
902
|
+
}
|
|
634
903
|
},
|
|
635
|
-
setup(
|
|
636
|
-
let
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
904
|
+
setup(t) {
|
|
905
|
+
let l = t, u = [
|
|
906
|
+
{
|
|
907
|
+
id: "graphics",
|
|
908
|
+
label: "Graphics"
|
|
909
|
+
},
|
|
910
|
+
{
|
|
911
|
+
id: "table",
|
|
912
|
+
label: "Descriptions"
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
id: "alignments",
|
|
916
|
+
label: "Alignments"
|
|
917
|
+
}
|
|
918
|
+
], d = v("graphics"), p = _({
|
|
919
|
+
graphics: !0,
|
|
920
|
+
table: !1,
|
|
921
|
+
alignments: !1
|
|
922
|
+
});
|
|
923
|
+
T(d, (e) => p[e] = !0, { immediate: !0 });
|
|
924
|
+
let m = v(null), S = n(() => l.blastData?.BlastOutput2?.[0]?.report ?? null), C = n(() => {
|
|
925
|
+
let e = S.value?.results?.search;
|
|
926
|
+
return e ? F(e) : null;
|
|
927
|
+
});
|
|
928
|
+
T(C, () => {
|
|
929
|
+
m.value = null;
|
|
930
|
+
});
|
|
931
|
+
let D = n(() => S.value?.program || ""), O = n(() => S.value?.version || ""), k = n(() => l.db || S.value?.search_target?.db || ""), A = v(null);
|
|
932
|
+
g("bv-scroll-top", () => A.value?.scrollIntoView({
|
|
933
|
+
behavior: "smooth",
|
|
934
|
+
block: "start"
|
|
935
|
+
})), g("bv-theme", n(() => l.theme));
|
|
936
|
+
let j = (e) => {
|
|
937
|
+
m.value = {
|
|
938
|
+
num: e,
|
|
939
|
+
seq: (m.value?.seq ?? 0) + 1
|
|
940
|
+
}, d.value = "alignments";
|
|
941
|
+
}, M = v([]), N = (e, t) => {
|
|
942
|
+
let n = e.key === "ArrowRight" ? 1 : e.key === "ArrowLeft" ? -1 : 0;
|
|
943
|
+
if (!n) return;
|
|
944
|
+
e.preventDefault();
|
|
945
|
+
let r = (t + n + u.length) % u.length;
|
|
946
|
+
d.value = u[r].id, M.value[r]?.focus();
|
|
947
|
+
}, P = Math.random().toString(36).slice(2, 8);
|
|
948
|
+
return (n, l) => (h(), a("div", {
|
|
949
|
+
ref_key: "root",
|
|
950
|
+
ref: A,
|
|
951
|
+
class: f(["blast-viewer", `bv-theme--${t.theme}`]),
|
|
952
|
+
"data-theme": t.theme
|
|
953
|
+
}, [!S.value || !C.value ? (h(), a("div", sn, [c(Q, {
|
|
954
|
+
name: "alert-circle-outline",
|
|
955
|
+
size: 24
|
|
956
|
+
}), l[0] ||= o("div", null, [o("div", { class: "bv-alert-title" }, "Invalid BLAST JSON format"), o("div", null, [
|
|
957
|
+
s(" The data does not follow the BLAST JSON structure ("),
|
|
958
|
+
o("code", null, "BlastOutput2"),
|
|
959
|
+
s(", as produced by "),
|
|
960
|
+
o("code", null, "-outfmt 15"),
|
|
961
|
+
s("). ")
|
|
962
|
+
])], -1)])) : (h(), a(e, { key: 1 }, [c(ue, {
|
|
963
|
+
"search-data": C.value,
|
|
964
|
+
program: D.value,
|
|
965
|
+
version: O.value,
|
|
966
|
+
db: k.value,
|
|
967
|
+
"query-link": t.queryLink
|
|
968
|
+
}, null, 8, [
|
|
969
|
+
"search-data",
|
|
970
|
+
"program",
|
|
971
|
+
"version",
|
|
972
|
+
"db",
|
|
973
|
+
"query-link"
|
|
974
|
+
]), o("section", cn, [o("div", ln, [(h(), a(e, null, y(u, (e, t) => o("button", {
|
|
975
|
+
id: `bv-tab-${x(P)}-${e.id}`,
|
|
976
|
+
key: e.id,
|
|
977
|
+
ref_for: !0,
|
|
978
|
+
ref_key: "tabEls",
|
|
979
|
+
ref: M,
|
|
980
|
+
type: "button",
|
|
981
|
+
role: "tab",
|
|
982
|
+
class: f(["bv-tab", { "bv-tab--active": d.value === e.id }]),
|
|
983
|
+
"aria-selected": d.value === e.id,
|
|
984
|
+
"aria-controls": `bv-panel-${x(P)}-${e.id}`,
|
|
985
|
+
tabindex: d.value === e.id ? 0 : -1,
|
|
986
|
+
onClick: (t) => d.value = e.id,
|
|
987
|
+
onKeydown: (e) => N(e, t)
|
|
988
|
+
}, b(e.label), 43, un)), 64))]), (h(), a(e, null, y(u, (n) => E(o("div", {
|
|
989
|
+
id: `bv-panel-${x(P)}-${n.id}`,
|
|
990
|
+
key: n.id,
|
|
991
|
+
role: "tabpanel",
|
|
992
|
+
"aria-labelledby": `bv-tab-${x(P)}-${n.id}`,
|
|
993
|
+
class: "bv-tab-panel"
|
|
994
|
+
}, [p[n.id] ? (h(), a(e, { key: 0 }, [n.id === "graphics" ? (h(), r(Ne, {
|
|
995
|
+
key: 0,
|
|
996
|
+
"search-data": C.value,
|
|
997
|
+
theme: t.theme,
|
|
998
|
+
onSelectHit: j
|
|
999
|
+
}, null, 8, ["search-data", "theme"])) : n.id === "table" ? (h(), r(kt, {
|
|
1000
|
+
key: 1,
|
|
1001
|
+
"search-data": C.value,
|
|
1002
|
+
"subject-link": t.subjectLink,
|
|
1003
|
+
"is-genomic": t.isGenomic,
|
|
1004
|
+
onSelectHit: j
|
|
1005
|
+
}, null, 8, [
|
|
1006
|
+
"search-data",
|
|
1007
|
+
"subject-link",
|
|
1008
|
+
"is-genomic"
|
|
1009
|
+
])) : (h(), r(an, {
|
|
1010
|
+
key: 2,
|
|
1011
|
+
"search-data": C.value,
|
|
1012
|
+
program: D.value,
|
|
1013
|
+
selection: m.value,
|
|
1014
|
+
"subject-link": t.subjectLink,
|
|
1015
|
+
"is-genomic": t.isGenomic
|
|
1016
|
+
}, null, 8, [
|
|
1017
|
+
"search-data",
|
|
1018
|
+
"program",
|
|
1019
|
+
"selection",
|
|
1020
|
+
"subject-link",
|
|
1021
|
+
"is-genomic"
|
|
1022
|
+
]))], 64)) : i("", !0)], 8, dn), [[w, d.value === n.id]])), 64))])], 64))], 10, on));
|
|
702
1023
|
}
|
|
703
|
-
}), [["__scopeId", "data-v-
|
|
704
|
-
|
|
705
|
-
export { cn as BlastViewer };
|
|
1024
|
+
}), [["__scopeId", "data-v-814ca01a"]]);
|
|
1025
|
+
export { fn as BlastViewer };
|