2.1.4 • Published 2 years ago

@ebi-gene-expression-group/atlas-bioentity-information v2.1.4

Weekly downloads
8
License
Apache-2.0
Repository
github
Last release
2 years ago

Bioentity Information Card for Expression Atlas

Build Status Coverage Status

React component

import BioentityInformation from '@ebi-gene-expression-group/atlas-bioentity-information'

ReactDOM.render(
  <BioentityInformation
    className={`foobar`}
    bioentityProperties={
      {
        type: `expression_atlas`,
        name: `Expression Atlas`,
        values: [
          {
            text: `ENSG00000012048`,
            url: `https://www.ebi.ac.uk/gxa/genes/ENSG00000012048`,
            relevance: 0
          }
        ]
      }
    }/>,
  node)

Deprecated legacy mode, will be removed in next major version

Render convenience method with Atlas React Fetch Loader

import { render } from '@ebi-gene-expression-group/atlas-bioentity-information'

render(
  {
    host: `https://www.ebi.ac.uk/gxa/sc`,
    geneId: `ENSG00000012048`
  },
  node)
)