import { Component, For, Show } from "solid-js"; import { Anchor } from "../components/Anchor"; import { Loader } from "../components/Loader"; import { Breadcrumb } from "../components/Breadcrumb"; import { VcfHeaderRow } from "../components/VcfHeaderRow"; import { createAsync } from "@solidjs/router"; import { getConfig, getMetadata } from "./data/data"; import { getHeaderValue } from "../utils/vcf.ts"; import { Table } from "../components/Table.tsx"; import { ConfigJson } from "../types/config"; import { Json } from "@molgenis/vip-report-api"; export const Help: Component = () => { const metadata = createAsync(() => getMetadata()); const config = createAsync(() => getConfig()); function createParamList(config: ConfigJson) { const stack: { path: string[]; values: { [property: string]: Json } }[] = [{ path: [], values: config.vip.params }]; const paramList: [key: string, value: string][] = []; while (stack.length !== 0) { const params = stack.pop()!; const values = params.values; for (const key in values) { const path = [...params.path, key]; const value = values[key]!; // derived from https://stackoverflow.com/a/8511350 if (typeof value === "object" && !Array.isArray(value) && value !== null) { stack.push({ path, values: value as { [property: string]: Json } }); } else { paramList.push([path.join("."), String(value)]); } } } return paramList.sort((keyA, keyB) => keyA[0].localeCompare(keyB[0])); } return ( <>

Documentation

The documentation for the Variant Interpretation Pipeline is located here .
}> {(metadata) => ( <>

About

Software metadata
Name: {metadata().app.name}
Version: {metadata().app.version}
Arguments: {metadata().app.args}
Input metadata
Filename: {metadata().app.htsFile?.uri}
Assembly: {metadata().app.htsFile?.genomeAssembly}
)}
}> {(config) => ( <>

Configuration

Listing of all VIP parameters used in the process to create this report

{([key, value]) => ( )}
{key} {value}
)}
); };