Skip to content

Commit 83c4dac

Browse files
committed
Wire up single end fastqs
1 parent b5fef1e commit 83c4dac

File tree

52 files changed

+172
-86
lines changed

Some content is hidden

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

52 files changed

+172
-86
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import { Step } from "@databiosphere/findable-ui/lib/components/Stepper/components/Step/step";
2+
import { StepContent } from "@databiosphere/findable-ui/lib/components/Stepper/components/Step/components/StepContent/stepContent";
3+
import { StepLabel } from "@databiosphere/findable-ui/lib/components/Stepper/components/Step/components/StepLabel/stepLabel";
4+
import { StepProps } from "../types";
5+
import { Button } from "@mui/material";
6+
import { BUTTON_PROPS } from "@databiosphere/findable-ui/lib/components/common/Button/constants";
7+
8+
export const LaunchStep = ({
9+
active,
10+
completed,
11+
entryLabel,
12+
index,
13+
onLaunchGalaxy,
14+
status,
15+
}: StepProps): JSX.Element => {
16+
return (
17+
<Step active={active} completed={completed} index={index}>
18+
<StepLabel>{entryLabel}</StepLabel>
19+
<StepContent>
20+
<Button
21+
{...BUTTON_PROPS.PRIMARY_CONTAINED}
22+
disabled={status.disabled || status.loading}
23+
onClick={onLaunchGalaxy}
24+
>
25+
Launch In Galaxy
26+
</Button>
27+
</StepContent>
28+
</Step>
29+
);
30+
};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { StepConfig } from "../types";
2+
import { LaunchStep } from "./launchStep";
3+
4+
export const STEP = {
5+
Step: LaunchStep,
6+
key: "referenceAssembly", // Reuse an existing key but won't actually configure anything
7+
label: "Launch Workflow",
8+
renderValue(): string | undefined {
9+
return undefined;
10+
},
11+
} satisfies StepConfig;

app/components/Entity/components/ConfigureWorkflowInputs/components/Main/components/Stepper/components/Step/PairedEndStep/step.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ import { BUTTON_PROPS } from "@databiosphere/findable-ui/lib/components/common/B
66
import { useState } from "react";
77
import { Table } from "./components/Table/table";
88
import { RowSelectionState } from "@tanstack/table-core";
9-
import { STEP } from "../../../../step";
109
import { buildEnaPairedReads } from "../../utils";
1110

1211
export const CollectionSelector = ({
1312
onClose,
1413
onConfigure,
1514
open,
1615
selectedCount,
16+
stepKey,
1717
table,
1818
}: Props): JSX.Element => {
1919
const [rowSelection, setRowSelection] = useState<RowSelectionState>({});
@@ -40,7 +40,7 @@ export const CollectionSelector = ({
4040
{...BUTTON_PROPS.PRIMARY_CONTAINED}
4141
disabled={selectedCount === 0}
4242
onClick={() => {
43-
onConfigure(STEP.key, buildEnaPairedReads(table));
43+
onConfigure(stepKey, buildEnaPairedReads(table));
4444
onClose();
4545
}}
4646
>

0 commit comments

Comments
 (0)