Skip to content

SSSOM example uses invalid SSSOM #60

@nichtich

Description

@nichtich

The example given at Assembly refers to an invalid SSSOM file:

import semra.io

# load mappings from any standardized SSSOM file as a file path or URL, via `pandas.read_csv`
sssom_url = "https://w3id.org/biopragmatics/biomappings/sssom/biomappings.sssom.tsv"
mappings = semra.io.from_sssom(sssom_url)

File https://w3id.org/biopragmatics/biomappings/sssom/biomappings.sssom.tsv currently lacks a SSSOM MappingSet header so it can only be parsed as valid SSSOM with external metadata to specify at least required fields mapping_set_id and license.

Function from_sssom could be extended an documented to

  • support mapping_set_id with default value derived from path (URL or file:// - URI)-
  • support license with default value
mappings = semra.io.from_sssom(sssom_url, license="https://creativecommons.org/licenses/by/4.0/")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions