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 collection.
We have reference
and reference_type
fields for this purpose, they are available for Collection
, Transform
, Run
and ULabel
.
!lamin init --storage testreference
馃挕 connected lamindb: testuser1/testreference
import lamindb as ln
馃挕 connected lamindb: testuser1/testreference
Let鈥檚 say we have a few donor samples that came form Vendor X, in order to chase back the orders, I鈥檇 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(uid='o4WbKvvt', name='donor 001', reference='VX984545', reference_type='Donor ID from Vendor X', created_by_id=1)
!lamin delete --force testreference
馃挕 deleting instance testuser1/testreference