Skip to content

Commit ad66e99

Browse files
committed
Improving crate bedset field
1 parent 0e45de0 commit ad66e99

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

ui/src/components/modals/create-bedset-modal.tsx

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,22 @@ export const generateBEDsetCreationDescription = () => {
1919
const text = `
2020
**To create a new BEDset:**
2121
22-
1. Create PEP in [PEPhub](https://pephub.databio.org/), by copying the text below, and pasting it into the sample table.
23-
The name of the PEP project will be used as the name and identifier for the BEDset.
24-
2. Add source, author, and other metadata to config file. e.g.
22+
1. Create PEP in [PEPhub](https://pephub.databio.org/), by copying the text from **'PEP sample table'** section below, and pasting it into the sample table in PEPhub.
23+
The name of the PEP project will be used as the name and identifier for the new BEDset.
24+
2. Add *source*, *author*, and other metadata to config file in PEP. e.g. (not required, but recommended):
2525
\`\`\`json
2626
'author': "BEDbase team",
2727
'source': "BEDbase",
2828
\`\`\`
29-
3. Use 'Submit PEP' form below or BEDbase API ([${API_BASE}](${API_BASE}/docs#/bedset/create_bedset_v1_bedset_create__post)) and
30-
create a new BEDset by providing the registry path in the Body of the request. (Registry path can be copied from the PEPhub):
29+
3. Use **'Submit PEP'** section form below to create a new BEDset by providing the registry path (e.g. databio/new_bedset:default). Registry path can be copied from the PEPhub. \n
30+
**Optionally, you can use BEDbase API ([${API_BASE}](${API_BASE}/docs#/bedset/create_bedset_v1_bedset_create__post)), where you can provide registry path
31+
in the Body of the request. Example Body request:*
3132
\`\`\`json
3233
{
3334
"registry_path": "namespace/name:tag"
3435
}
3536
\`\`\`
36-
**Note**: We currently only support PEPs from the bedbase team. If you want to create new bedset, please create an issue: [https://github.com/databio/bedbase](https://github.com/databio/bedbase/issues)
37+
***Note**: We currently only support PEPs from the __bedbase team__. If you want to create new bedset, please create an issue: [https://github.com/databio/bedbase](https://github.com/databio/bedbase/issues)
3738
3839
`;
3940
return text;
@@ -92,6 +93,10 @@ export const CreateBedSetModal = (props: Props) => {
9293
</Markdown>
9394
</div>
9495

96+
<div className="border-bottom my-3" style={{ margin: '0 -1em' }}></div>
97+
<span className="fw-semibold text-lg">
98+
PEP sample table
99+
</span>
95100
<div className="position-relative my-1 px-3" style={{ margin: '-1em' }}>
96101
<Markdown className='rounded rounded-2 bg-body-secondary markdown-bg' rehypePlugins={[rehypeHighlight]}>{generateBEDsetPEPMd(Object.values(cart).map((item) => item.id))}</Markdown>
97102
<div className="position-absolute top-0 end-0 m-3">

0 commit comments

Comments
 (0)