Tutorials: Difference between revisions

From BCOeditor Wiki
Jump to navigation Jump to search
No edit summary
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Register for a portal account ==
{{DISPLAYTITLE:<span style="position: absolute; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px);">{{FULLPAGENAME}}</span>}}
__NOTOC__
<!-- BANNER ACROSS TOP OF PAGE -->
<!-- BANNER ACROSS TOP OF PAGE -->
<div id="ggw-topbanner" style="clear:both; position:relative; box-sizing:border-box; width:100%; margin:1.2em 0 6px; min-width:47em; border:1px solid #ddd; background-color:#f9f9f9; color:#000;">
    <div style="margin:0.4em; text-align:center;">
        <div style="font-size:160%; padding:.1em;">Welcome to BioCompute Tutorial,</div>
        <div style="font-size:100%;">This page provides information regarding the BioCompute portal. It has several sections on different topics that will help you to navigate through most of the functions on the BioCOmpute Portal.
    </div>
</div>
<div style="clear: both;"></div>


Before building a BioCompute Object (BCO), please register an account first by following the listed steps:
<div id="ggw_row2" style="display: flex; flex-flow: row wrap; justify-content: space-between; padding: 0; margin: 0 -5px 0 -5px;">
# Go to '''Log in''' on the header: [[File:log_in_22.09.png|800px|thumb|center]]
    <div style="flex: 1; margin: 5px; min-width: 210px; border: 1px solid #CCC; padding: 0 10px 10px 10px; box-shadow: 0 2px 2px rgba(0,0,0,0.1); background: #f5faff;">
# Click on '''Sign up''', and complete the requested information, including First and Last name, email, username, and password. Once finished, click on '''SIGN UP FOR PORTAL ACCOUNT'''.  
        <h3>[[Account registration|Account]]</h3>
# An activation email from object.biocompute@gmail.com should be sent to your entered email address. Click on the activation link from the email within 10 minutes to activate your BioCompute Portal account. Once activated, a new window should prompt open and indicate the activation status.  
        <div style="border-top: 1px solid #CCC; padding-top: 0.5em;">
# Login to the Portal account using your username and password by clicking on '''SIGN IN'''.
BioCompute Team recommends all users to create an account before editing or creating a BCO. By creating an account, users can add multiple databases, edit groups/permissions, change passwords, and more.  
        </div>
    </div>
    <div style="flex: 1; margin: 5px; min-width: 210px; border: 1px solid #CCC; padding: 0 10px 10px 10px; box-shadow: 0 2px 2px rgba(0,0,0,0.1); background: #f5faff;">
        <h3>[[Prefix registration|Prefix and Permission]]</h3>
        <div style="border-top: 1px solid #CCC; padding-top: 0.5em;">
BioCompute portal enables users to create prefix for personal or public usage. Then, owner of the prefix can modify personnel permissions inside the group. For example, the owner can grant certain people draft only permissions and other people publish only permissions. 
</div>
    </div>
    <div style="flex: 1; margin: 5px; min-width: 210px; border: 1px solid #CCC; padding: 0 10px 10px 10px; box-shadow: 0 2px 2px rgba(0,0,0,0.1); background: #f5faff;">
        <h3>[[Buildbcos|Build a BCO]]</h3>
<div style="border-top: 1px solid #CCC; padding-top: 0.5em;">
The portal allows users to build a BCO using a user-friendly interface where the BCO is divided into different domain. In addition, the JSON format is also available for edit and view. By following this tutorial, users can easily build a BCO.
        </div>
    </div>
</div>


== Account information ==
<div id="ggw_row3" style="display: flex; flex-flow: row wrap; justify-content: space-between; padding: 0; margin: 0 -5px 0 -5px;">
 
    <div style="flex: 1; margin: 5px; min-width: 210px; border: 1px solid #CCC; padding: 0 10px 10px 10px; box-shadow: 0 2px 2px rgba(0,0,0,0.1); background: #f5faff;">
Under Account, personal/account information can be modified. In addition, the users are able to change passwords, add servers, and edit Groups and Permissions.
        <h3>[[Search|Search BCOs]]</h3>
# After logging in, go to '''Account''' on the header: [[File:Account 22.09.png|800px|thumb|center]]
        <div style="border-top: 1px solid #CCC; padding-top: 0.5em;">
# On the Account page, account details can be changed and the user can choose to make the information publicly by checking '''Public'''.
Users can search for an existing BCO, either publish or draft through the portal. Search can be based on keywords, prefix, owned-BCO and more.  
# To change passwords and modify Databases, Groups, and Permissions, click on the drop-down arrow on the right for each section.
</div>
 
    </div>
== Search for a draft and existing BCO ==
    <div style="flex: 1; margin: 5px; min-width: 210px; border: 1px solid #CCC; padding: 0 10px 10px 10px; box-shadow: 0 2px 2px rgba(0,0,0,0.1); background: #f5faff;">
# Click on '''Objects''' on the header: [[File:Objects1——22.09.png|800px|thumb|center]]
        <h3>[[Swagger Usage]]</h3>
# Select a server by clicking on the dropdown arrow:[[File:Objects2 22.09.png|800px|thumb|center]]
        <div style="border-top: 1px solid #CCC; padding-top: 0.5em;">
# Select Search Type. Three search types are available, My BCOs, Prefix Search, and Search BCO_ID. Once a Search Type is selected, the SEARCH button will lite up. [[File:Objects3.png|800px|thumb|center]]
Users and developers can use the swagger site to interact with the BioCompute APIs to create and publish drafts.  
# Enter the search term in the blank field. This function is only available when doing a search by '''Prefix Search''' and '''Search BCO_ID''' to achieve a precise search. All BCO Accessions are clickable which will direct to the BCO. [[File:object3.png|800px|thumb|center]]
</div>
 
    </div>
== Build a BCO ==
    <div style="flex: 1; margin: 5px; min-width: 210px; border: 1px solid #CCC; padding: 0 10px 10px 10px; box-shadow: 0 2px 2px rgba(0,0,0,0.1); background: #f5faff;">
# Click on '''Builder''' on the header:[[File:Builder1 22.09.png|800px|thumb|center]]Each domain can be expanded by clicking on the expand arrow.
        <h3>[[BCODB Sandbox]]</h3>
# Before creating a BCO, an eTag needs to be generated. To do so, click on the expand arrow in '''Object Information''' section, then click '''GENERATE ETAG'''. Do not worry about '''Object ID''', it will auto-generate when saving the BCO draft.[[File:Builder2 22.09.png|800px|thumb|center]]
        <div style="border-top: 1px solid #CCC; padding-top: 0.5em;">
# To begin filling out the BCO, click on '''Provenance Domain''' to expand the section. Fill out the information as needed. Red boxes are required fields, yellow boxes are recommended fields, and plain boxes are optional fields.[[File:Builder3 22.09.png|800px|thumb|center]]
The BCODB sandbox is an isolated testing environment that allows developers to interact with BCO APIs without affecting the system, database, and portal. To add the BCODB sandbox to your account, please contact BioCompute Admins first.  
# For information to fill out each domain, please go to [[Provenance-domain|Provenance Domain]], [[Usability-domain|Usability Domain]], [[Extension-domain|Extension Domain]], [[Description-domain|Description Domain]], [[Execution-domain|Execution Domain]], [[Iodomain|I/O Domain]], [[Parametric-domain|Parametric Domain]], and [[Error-domain|Error Domain]]. Or, click on the question mark icon on each domain for more information.
</div>
# User can also view/edit the BCO in JSON by clicking on either '''TREE VIEW JSON''' or '''RAW JSON VIEW'''.[[File:Builder4 22.09.png|800px|thumb|center]][[File:Builder5 treeview.png|800px|thumb|center]][[File:Builder6 JSON.png|800px|thumb|center]]
    </div>
# A BCO draft can be saved at any time of editing. In order to save a draft, go to the top of the page, and click on '''SAVING AND PUBLISHING'''.  
</div>
[[File:SAVE1 22.09.png|800px|thumb|center]]
    <div style="flex: 1; margin: 5px; min-width: 210px; border: 1px solid #CCC; padding: 0 10px 10px 10px; box-shadow: 0 2px 2px rgba(0,0,0,0.1); background: #f5faff;">
# To save the draft properly, first choose a server to save the draft. Then the BCO prefix field will show up. Enter a specific BCO prefix based on user groups and permissions. The default prefix is BCO, which can be used by all users. Click on '''CREATE NEW DRAFT'''. If the entered prefix is not correct, an error message will pop up saying “Create Draft Failed” with a specific reason. Otherwise, the message will say “Create Draft Success”. Click OK on the message to return to the builder page.
        <h3>[[Faq|FAQs]]</h3>
# Once the new draft is created, the Builder page will refresh and generate an Object ID, which will show in the Object Information section. Continue to edit the BCO as needed.
        <div style="border-top: 1px solid #CCC; padding-top: 0.5em;">
# Once finish editing or need to save the draft again, go back to the top of the page, click on '''SAVING AND PUBLISHING''', then click '''SAVE CURRENT DRAFT'''. A pop-up window will show up and indicate the draft is saved successfully.
For common issues and question, refer to this page. If you need more assistance, please click on Contact Us or Bug Report.  
# Before publishing the draft, users need to validate the draft first. To do this, click on '''SAVING AND PUBLISHING'''. Choose '''Display Validation''', then '''VALIDATE DRAFT'''. A new window will pop up with validation results. [[File:Validation.png|800px|thumb|center]]
</div>
# If validation results show ‘“number_of_errors”: 0’, this means the draft has passed validation and it’s ready to publish. Go back to the Builder screen, now the '''PUBLISH DRAFT''' button should show up, click on it to publish the draft. [[File:Publish.png|800px|thumb|center]]
    </div>
# If any errors were detected during validation, then correct those errors based on the validation results. Revalidation is needed before publishing.
</div>
# Other options on the Builder page include DOWNLOAD DRAFT in JSON format and DELETE DRAFT permanently.

Latest revision as of 21:11, 21 June 2023


Welcome to BioCompute Tutorial,
This page provides information regarding the BioCompute portal. It has several sections on different topics that will help you to navigate through most of the functions on the BioCOmpute Portal.

Account

BioCompute Team recommends all users to create an account before editing or creating a BCO. By creating an account, users can add multiple databases, edit groups/permissions, change passwords, and more.

Prefix and Permission

BioCompute portal enables users to create prefix for personal or public usage. Then, owner of the prefix can modify personnel permissions inside the group. For example, the owner can grant certain people draft only permissions and other people publish only permissions.

Build a BCO

The portal allows users to build a BCO using a user-friendly interface where the BCO is divided into different domain. In addition, the JSON format is also available for edit and view. By following this tutorial, users can easily build a BCO.

Search BCOs

Users can search for an existing BCO, either publish or draft through the portal. Search can be based on keywords, prefix, owned-BCO and more.

Swagger Usage

Users and developers can use the swagger site to interact with the BioCompute APIs to create and publish drafts.

BCODB Sandbox

The BCODB sandbox is an isolated testing environment that allows developers to interact with BCO APIs without affecting the system, database, and portal. To add the BCODB sandbox to your account, please contact BioCompute Admins first.

FAQs

For common issues and question, refer to this page. If you need more assistance, please click on Contact Us or Bug Report.