Skip to main content
Ctrl+K
logo

Lamin Docs

Site Navigation

  • Guide
  • Reference
  • Changelog

Site Navigation

  • Guide
  • Reference
  • Changelog

Overview

  • Introduction
  • Tutorial: Files & datasets
  • Tutorial: Features & labels

How to

  • Install & setup LaminDB
  • Query & search
    • Query & search registries
    • Query files & datasets
  • Validate data
  • Manage biological registries
  • Manage schemas

Use cases

  • Data flow
    • Project flow
    • Analysis flow
  • Registries
    • CellTypist
    • Gene Ontology (GO)
  • Data types
    • scRNA-seq
      • Integrate scRNA-seq datasets
    • Bulk RNA-seq
    • Flow cytometry
      • Ingest a second file
      • Query & integrate data
      • Analyze a sharded dataset
    • Spatial
    • Multi-modal
  • Pipelines
    • Redun
    • Nextflow
    • Snakemake
  • Atlases
    • cellxgene-census
      • Register cellxgene-census metadata
    • RxRx

Other topics

  • Features
  • FAQ
    • Are LaminDB’s operations idempotent? (What happens if I save the same files & records twice?)
    • Are LaminDB’s operations ACID?
    • Can I disable tracking run inputs?
    • How to track notebooks?
    • What happens when importing lamindb and the instance it not yet setup?
    • What happens if I import a schema module without lamindb?
    • Where to store external links and IDs?
    • Storage FAQ
  • Influences
  • Glossary

Where to store external links and IDs?#

When registering data in LaminDB, you might want to store a reference link or ID to indicate the source of the dataset.

We have reference and reference_type fields for this purpose, they are available for Dataset, Transform, Run and ULabel.

!lamin init --storage testreference
✅ saved: User(id='DzTjkKse', handle='testuser1', email='testuser1@lamin.ai', name='Test User1', updated_at=2023-09-26 15:21:28)
✅ saved: Storage(id='VkfVQzpZ', root='/home/runner/work/lamindb/lamindb/docs/faq/testreference', type='local', updated_at=2023-09-26 15:21:28, created_by_id='DzTjkKse')
💡 loaded instance: testuser1/testreference
💡 did not register local instance on hub (if you want, call `lamin register`)

import lamindb as ln
💡 loaded instance: testuser1/testreference (lamindb 0.54.2)

Let’s say we have a few donor samples that came form Vendor X, in order to chase back the orders, I’d like to keep track the donor ids provided by the vendor:

ln.ULabel(
    name="donor 001", reference="VX984545", reference_type="Donor ID from Vendor X"
)
ULabel(id='qgeXdtIZ', name='donor 001', reference='VX984545', reference_type='Donor ID from Vendor X', created_by_id='DzTjkKse')
!lamin delete --force testreference
💡 deleting instance testuser1/testreference
✅     deleted instance settings file: /home/runner/.lamin/instance--testuser1--testreference.env
✅     instance cache deleted
✅     deleted '.lndb' sqlite file
❗     consider manually deleting your stored data: /home/runner/work/lamindb/lamindb/docs/faq/testreference

previous

What happens if I import a schema module without lamindb?

next

Storage FAQ

© 2023 Lamin Labs · Docs · Imprint · Contact · About · Legal · Twitter · GitHub · LinkedIn