aluetg
  • NEW!
    NEW!  Connect Ideas Across Notes
    Save time and share insights. With Paragraph Citation, you can quote others’ work with source info built in. If someone cites your note, you’ll see a card showing where it’s used—bringing notes closer together.
    Got it
      • Create new note
      • Create a note from template
        • Sharing URL Link copied
        • /edit
        • View mode
          • Edit mode
          • View mode
          • Book mode
          • Slide mode
          Edit mode View mode Book mode Slide mode
        • Customize slides
        • Note Permission
        • Read
          • Only me
          • Signed-in users
          • Everyone
          Only me Signed-in users Everyone
        • Write
          • Only me
          • Signed-in users
          • Everyone
          Only me Signed-in users Everyone
        • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invite by email
        Invitee

        This note has no invitees

      • Publish Note

        Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

        Your note will be visible on your profile and discoverable by anyone.
        Your note is now live.
        This note is visible on your profile and discoverable online.
        Everyone on the web can find and read all notes of this public team.

        Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

        Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

        Explore these features while you wait
        Complete general settings
        Bookmark and like published notes
        Write a few more notes
        Complete general settings
        Write a few more notes
        See published notes
        Unpublish note
        Please check the box to agree to the Community Guidelines.
        View profile
      • Commenting
        Permission
        Disabled Forbidden Owners Signed-in users Everyone
      • Enable
      • Permission
        • Forbidden
        • Owners
        • Signed-in users
        • Everyone
      • Suggest edit
        Permission
        Disabled Forbidden Owners Signed-in users Everyone
      • Enable
      • Permission
        • Forbidden
        • Owners
        • Signed-in users
      • Emoji Reply
      • Enable
      • Versions and GitHub Sync
      • Note settings
      • Note Insights New
      • Engagement control
      • Make a copy
      • Transfer ownership
      • Delete this note
      • Save as template
      • Insert from template
      • Import from
        • Dropbox
        • Google Drive
        • Gist
        • Clipboard
      • Export to
        • Dropbox
        • Google Drive
        • Gist
      • Download
        • Markdown
        • HTML
        • Raw HTML
    Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
    Create Create new note Create a note from template
    Menu
    Options
    Engagement control Make a copy Transfer ownership Delete this note
    Import from
    Dropbox Google Drive Gist Clipboard
    Export to
    Dropbox Google Drive Gist
    Download
    Markdown HTML Raw HTML
    Back
    Sharing URL Link copied
    /edit
    View mode
    • Edit mode
    • View mode
    • Book mode
    • Slide mode
    Edit mode View mode Book mode Slide mode
    Customize slides
    Note Permission
    Read
    Only me
    • Only me
    • Signed-in users
    • Everyone
    Only me Signed-in users Everyone
    Write
    Only me
    • Only me
    • Signed-in users
    • Everyone
    Only me Signed-in users Everyone
    Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    --- title: 'Omnibenchmark projects' disqus: hackmd --- Omnibenchmark projects === ## Table of Contents [TOC] ## Development ### Project 1: Omnibenchmark CLI #### Background: Each of the omnibenchmark modules is a self-contained GitLab project that comes with input and output dataset (bundled into "renku datasets"), a renku workflow that can be exported as CWL file or python class object and a container to execute the workflow with. All these components can be queried and accessed across the entire benchmark via renku API and GitLab API. #### Aims: 1. Develop a CLI to query and access datasets and workflows project-wide across omnibenchmark. 2. Use workflows (CWL files or renku CLI commands) to execute workflows via CLI with existing inputs/outputs, but without renku triplet generation for the renku KG. 3. Extend renku independent workflow execution to new inputs and outputs #### Suggested (not implemented) method signatures: ```bash= # see https://github.com/omnibenchmark/omnibenchmark-py/blob/main/omnibenchmark/management/general_checks.py $ omnicli query_benchmarks ["omni_clustering", "spatial_clustering"] # see here https://renkulab.io/gitlab/omnibenchmark/omni-batch-py/orchestrator-py/-/blob/master/.gitlab-ci.yml $ omnicli list_stages --benchmark = 'omni-batch-py' ["data_run", "process_run", "param_run", "method_run", "metric_run", "summary_run"] # optional stage, that defaults to all? # see https://renkulab.io/gitlab/omnibenchmark/omni_site/src/data_gen/get_projects.py $ omnicli list_projects --benchmark = 'omni-batch-py' --stage = 'param_run' ["https://renkulab.io/gitlab/omnibenchmark/omni-batch-py/omni-batch-param-py"] # Optional arguments with "all" as defaults? # https://github.com/omnibenchmark/omnibenchmark-py/blob/d5925cffe6fc9ed7a5d59d828fe12beeba246bf3/omnibenchmark/management/data_commands.py#L44 # maybe a flag about the return? names|ids|names + ids + keywords ? $ omnicli query_renku_datasets --benchmark = 'omni-batch-py' --project = 'mnn-py' --keyword = 'omni_batch_method' ["https://renkulab.io/datasets/2203a15d700940e29ce418cf8fc263f3"] $ omnicli download_renku_datasets --id = '2203a15d700940e29ce418cf8fc263f3' # Optional name argument with default to all $ omnicli download_renku_datasets --project = 'mnn-py' --name = 'omni_batch_param' $ omnicli download_renku_datasets --benchmark = 'omni-batch-py' --keyword = 'omni_batch_method' # see https://renkulab.io/gitlab/omnibenchmark/omni-batch-py/csf-patients-py/-/blob/master/.renku/metadata/plans | renku workflow export (https://github.com/SwissDataScienceCenter/renku-python/blob/38aa53c3fa2a15976ff1cce68b5a21ca24df2078/renku/core/workflow/plan.py#L548) $ omnicli run_workflow --benchmark = 'omni-batch-py' --project = 'mnn-py' --use_docker = yes --input_1="path/to/local/file" --input_2 ="path/to/metadata" --output_1="path/to/new/file" ``` #### Links: [renku CLI](https://github.com/SwissDataScienceCenter/renku-python/blob/develop/renku/ui/cli/run.py) [CWL](https://www.commonwl.org/) [python click](https://click.palletsprojects.com/en/8.1.x/) [omnibenchmark python](https://github.com/almutlue/omnibenchmark-py) ### Project 2: Renku CLI plugin #### Background: Renku tracks CLI commands by generating triples sent to a Knowledge graph database. We host the triples on a Jena Fuseki SPARQL server. We query the server to mainly retrieve the metadata associated to files lineages; which parameters were used in combination to a method, which dataset does it come from, how many steps of processing/ method did it undergo, etc. These metadata are retrieved with a collection of SPARQL queries (`omniSparql`, see below) at the end of each benchmark. Although functional, the queries could be optimized as they are working 'step-by-step' and undirected. Renku has several plugin hooks that can be used to add additional metadata (triples) and commands to the Renku CLI. These plugin hooks can be extended by using existing graph ontologies. #### Aim: To use the full potential of the renku KG, we want to add custom triples. This would be particular useful to add file lineage triples to renku dataset files and thus enable input file matching in omnibenchmark based on their lineage trees. To do so we could write a renku CLI plugin upon adding files to renku datasets. Alternatively, the SPARQL queries in `omniSparql` could be optimized to retrieve and store the files lineage along the workflow. #### Links: [renku CLI plugin](https://renku.readthedocs.io/en/stable/renku-python/docs/reference/plugins.html#develop-plugins-reference) [renku CLI](https://renku.readthedocs.io/en/stable/renku-python/docs/reference/commands/index.html) [renku ontology](https://swissdatasciencecenter.github.io/renku-ontology/) [renku graph](https://github.com/SwissDataScienceCenter/renku-graph) [omniSparql](https://github.com/omnibenchmark/omniSparql) #### Queries | Description | Use case | Reference | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | **File lineage**: Dataset ids from all input files, that were neccessary to generate this file across all projects, e.g., dataset ids from all inputs, the inputs to those inputs etc. | File matching, Benchmark summaries, benchmark "reconstruction" | [omni-sparql](https://github.com/omnibenchmark/omniSparql) | | Sub-queries: **Parents**: Inputs used in the activity, where this file was generated (is an output) | "" | "" | | Sub-queries: **File - renku dataset**: Dataset ID(s)(*maybe keyword as well?*), that a renku file belongs to. A file can be belong to multiple renku datasets. | "" | "" | | Sub-queries: **Renku dataset - project**: Project a renku dataset was generated in. There will be different versions of the same dataset with different ids and projects linked. The project that generated the original version of the dataset. | dataset import, link lineages to projects (?) | [omnibenchmark-python/original dataset id](https://github.com/omnibenchmark/omnibenchmark-py/blob/d5925cffe6fc9ed7a5d59d828fe12beeba246bf3/omnibenchmark/management/data_commands.py#L257) | | **Benchmark projects**: All projects associated with a certain benchmark (+stage) (Orchestrator); | website, omni-cli, summaries (?) | [gitlab api/check orchestrator](https://github.com/omnibenchmark/omnibenchmark-py/blob/d5925cffe6fc9ed7a5d59d828fe12beeba246bf3/omnibenchmark/management/data_commands.py#L298) | | **Ghost datasets**: retrieve renku datasets/ workflows that are still in the Knowledge Graph but that were deleted and replaced by newer versions. | Maintenance (filtering out these datasets) | Some examples of such datasets: ['pca_hc'](https://renkulab.io/knowledge-graph/datasets?query=pca_hc), ['sc3_clustering'](https://renkulab.io/knowledge-graph/datasets?query=sc3_clustering), ['cidr-clusttering'](https://renkulab.io/knowledge-graph/datasets?query=cidr-clustering) | | **Renku dataset size**: the size of all/ individual files of a renku dataset (not sure that the information is stored somewhere. Will have to search.) | Website, metrics sumamries | - | ### Project 3: Summary dashboard #### Background: Results from omnibenchmark are currently summarized in a distinct project and result tables are used as inputs for the shiny bettr dashboard to be explored by the user. While this process works in general, there are several bits and pieces that need to be optimized/improved: #### Aim/Tasks: 1. Optimal defaults (MCDA) 2. Extend bettr to allow parameter and dataset filtering (see this [issue](https://github.com/federicomarini/bettr/issues/8)). 3. Optimize app performance (?) #### Links: [bettr](https://github.com/federicomarini/bettr) [summary project](https://renkulab.io/gitlab/omnibenchmark/omni-batch-py/omni-batch-summary-py) [bettr dashboard](http://imlspenticton.uzh.ch:3840/omni_batch/) [MCDA](https://en.wikipedia.org/wiki/Multiple-criteria_decision_analysis) ## Some definitions Some polysemic terms to be aware of: - dataset - dataset (statistics) - [renku dataset](https://renku.readthedocs.io/en/latest/tutorials/first_steps/03_add_data.html#) - fuseki2 dataset, a persistent knowledgebase served by jena/fuseki2 - renku - [renku or renkulab](https://github.com/SwissDataScienceCenter/renku) - renkulab.io, the renkulab deployment at https://renkulab.io/ - [renku python](https://github.com/SwissDataScienceCenter/renku-python) - [renku client](https://renku.readthedocs.io/en/latest/introduction/what-is-renku.html#renku-client) - parameter - parameter (statistics) - renku arguments to renku CLI commands - workflow - workflow (computing) - [renku workflow](https://renku.readthedocs.io/en/latest/tutorials/first_steps/08_create_workflow.html) - renku plan - renku activity - metadata - metadata (computing) - .renku files - (queries to) renkulab endpoints: graphml, gitlab API, renku API - (queries to) our fuseki2 datasets - omnibenchmark - [omnibenchmark (framework)](https://github.com/orgs/omnibenchmark), omnibenchmark, omniValidator, omniSparql (python modules), custom templates - omnibenchmark (production), current system with renkulab.io, omnibenchmark framework, custom triplestore, bettR, computing resources at UZH. [List of current benchmarks](http://omnibenchmark.org/p/benchmarks/). - omnibenchmark (physical server) ## Useful (not yet implemented) queries to the triplestore - which methods are run on dataset X? - which are the omb dependencies/omb full lineage of metric result Y? - which parameters are used by method Z? - which normalization (preprocessing) was run on a method file ? - which renku datasets/ workflows are still in the KG but not in a benchmark (i.e., 'ghost datasets') ? - what size is a renku dataset X ? (not sure that this information is here) ###### tags: `omb` `development`

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Google Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully