CINXE.COM

Sample Types: Examples

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="canonical" href="https://www.labkey.org/Documentation/wiki-page.view?name=exampleSampleSets"> <meta name="authenticatedUser" content="guest"> <meta name="robots" content="noindex"> <meta name="impersonatedUser" content="-"> <title>Sample Types: Examples</title> <link rel="shortcut icon" href="/Documentation/favicon.image?revision=1366"> <link rel="icon" href="/Documentation/favicon.image?revision=1366"> <script src="/labkey.js?1486157598" type="text/javascript" nonce="d7a58725e52ec882"></script> <script type="text/javascript" nonce="d7a58725e52ec882">LABKEY.init({"container":{"formats":{"dateTimeFormat":"yyyy-MM-dd HH:mm","dateFormat":"yyyy-MM-dd","timeFormat":"HH:mm:ss"},"isArchived":false,"parentPath":"/","title":"Documentation","type":"project","folderType":"Collaboration","parentId":"79704b7a-b9ab-e733-0001-0106c1fdd116","path":"/Documentation","startUrl":"/Documentation/project-begin.view","auditCommentsRequired":false,"isWorkbook":false,"sortOrder":17,"hasRestrictedActiveModule":false,"name":"Documentation","isContainerTab":false,"iconHref":"/_icons/icon_folder2.png","id":"e7a158ef-ed4e-1034-b734-fe851e088836","activeModules":["Wiki","ServiceTools","Issues","Search","FileContent","Experiment","Query","Pipeline","API","Announcements","Core"]},"extThemeName_42":"overcast","imagePath":"/_images","timezone":"America/Los_Angeles","useMDYDateParsing":true,"project":{"path":"/Documentation","rootId":"79704b7a-b9ab-e733-0001-0106c1fdd116","name":"Documentation","id":"e7a158ef-ed4e-1034-b734-fe851e088836","title":"Documentation"},"serverName":"www.labkey.org","experimental":{"disableGuestAccount":false,"javascriptErrorServerLogging":false,"containerRelativeURL":true,"javascriptMothership":false},"login":{"registrationEnabled":true,"requiresTermsOfUse":false,"hasOtherLoginMechanisms":false},"tours":{},"sharedContainer":"Shared","defaultHeaders":{"X-LABKEY-CSRF":"e0e4b2252d47c24cf5a842901e1affe2acc8237ba84181fc4731f4e7f3384b39","X-ONUNAUTHORIZED":"UNAUTHORIZED"},"pageAdminMode":false,"jdkJavaDocLinkPrefix":"https://docs.oracle.com/en/java/javase/17/docs/api/java.base/","versionString":"25.2-SNAPSHOT","contextPath":"","demoMode":false,"homeContainer":"home","extJsRoot":"ext-3.4.1","extDefaultDateTimeFormat":"Y-m-d H:i","helpLinkPrefix":"https://www.labkey.org/Documentation/24.11/wiki-page.view?name=","devMode":false,"portalContext":{},"standardDisplayFormats":{"dateFormats":["yyyy-MM-dd","yyyy-MMM-dd","yyyy-MM","dd-MM-yyyy","dd-MMM-yyyy","dd-MMM-yy","ddMMMyyyy","ddMMMyy","MM/dd/yyyy","MM-dd-yyyy","MMMM dd yyyy"],"timeFormats":["HH:mm:ss","HH:mm","HH:mm:ss.SSS","hh:mm a"]},"extDateInputFormat":"Y-m-d","CSRF":"e0e4b2252d47c24cf5a842901e1affe2acc8237ba84181fc4731f4e7f3384b39","analyticProviders":{"AGG_MAD":"Median Absolute Deviation","AGG_COUNT_BLANK":"Count (blank)","AGG_CV":"Coefficient of Variation","AGG_MIN":"Minimum","AGG_STDERR":"Standard Error (of mean)","COL_SUMMARYSTATS":"Summary Statistics...","VIS_PIE":"Pie Chart","VIS_BOX":"Box & Whisker","AGG_COUNT_DISTINCT":"Count (distinct)","AGG_COUNT":"Count (non-blank)","AGG_MEAN":"Mean","COL_QUICK_CHART":"Quick Chart","VIS_BAR":"Bar Chart","AGG_STDDEV":"Standard Deviation (of mean)","AGG_QUARTILES":"Quartiles","AGG_MAX":"Maximum","AGG_RSD":"Relative Standard Deviation","COL_REMOVE":"Remove Column","AGG_MEDIAN":"Median","AGG_IQR":"Interquartile Range","AGG_SUM":"Sum"},"user":{"canUpdateOwn":false,"isRootAdmin":false,"canUpdate":false,"isGuest":true,"canInsert":false,"displayName":"guest","isSignedIn":false,"avatar":"/_images/defaultavatar.png","isAdmin":false,"isDeveloper":false,"isSystemAdmin":false,"isSystem":false,"canDeleteOwn":false,"isAnalyst":false,"canDelete":false,"id":0,"email":"guest","canImpersonateSiteRoles":false,"isTrusted":false,"maxAllowedPhi":"Restricted"},"hash":"1486157598","notifications":{"unreadCount":0},"moduleContext":{"pipeline":{},"core":{"productFeatures":["ELN","CalculatedFields","Media","SampleManagement","Workflow","CustomImportTemplates","TransformScripts","Assay","ApiKeys","ConditionalFormatting","DataChangeCommentRequirement","Folders","ChartBuilding","NonstandardAssay","FreezerManagement","BiologicsRegistry","AssayQC"]},"search":{},"experiment":{},"filecontent":{},"wiki":{},"query":{"isProductFoldersEnabled":false,"queryProductProjectDataListingScoped":false,"hasProductFolders":false,"hasEditQueriesPermission":false,"queryProductAllFolderLookups":true},"api":{"allowApiKeys":true,"allowSessionKeys":true,"apiKeyExpirationSeconds":-1,"moduleNames":["core","10minutetutorial","announcements","api","bigiron","cas","cloud","cloudservices","connectors","docker","ldap","mfa","moduleeditor","mothership","pipeline","puppeteer","pushdownloads","query","experiment","assay","audit","cdisc_odm","dataintegration","elisa","filecontent","flow","inventory","list","elispotassay","luminex","nab","premium","protein","recipe","rstudio","saml","samplemanagement","search","issues","assayrequest","ontology","servicetools","signing","compliance","complianceactivities","snowflake","study","professional","redcap","survey","targetedms","visualization","wiki","labbook","biologics"],"compliance":{"sessionInvalidBackgroundHideEnabled":false},"applicationMenuDisplayMode":"ALWAYS"},"servicetools":{},"announcements":{},"issues":{"hasRestrictedIssueList":false}},"extDefaultDateFormat":"Y-m-d","uuids":["68ed46e6-d666-103d-b623-48b76d4f94f0","68ed46e7-d666-103d-b623-48b76d4f94f0","68ed46e8-d666-103d-b623-48b76d4f94f0"]}); </script> <link href="/core/css/core.css?1486157598" type="text/css" rel="stylesheet"> <link href="/core/css/overcast.css?1486157598" type="text/css" rel="stylesheet"> <link href="/Documentation/core-customStylesheet.view?revision=1366" type="text/css" rel="stylesheet"> <script type="text/javascript" nonce="d7a58725e52ec882">LABKEY.loadedScripts('internal/jQuery/jquery-3.5.1.js','internal/jQuery/jquery-dateFormat.js','internal/jQuery/jquery-3.5.1.min.js','internal/jQuery/jquery-dateFormat.min.js','core/css/core.js','clientapi/labkey-api-js-core.min.js','clientapi/dom/Utils.js','clientapi/dom/Assay.js','clientapi/dom/Experiment.js','clientapi/dom/Tour.js','clientapi/dom/Form.js','clientapi/dom/NavTrail.js','clientapi/dom/Portal.js','clientapi/dom/Query.js','clientapi/dom/Security.js','clientapi/dom/GetData.js','clientapi/dom/WebPart.js','clientapi/dom/WebSocket.js','clientapi/dom/DataRegion.js','clientapi.min.js','util.js','internal.min.js'); </script> <script src="/internal/jQuery/jquery-3.5.1.min.js?1486157598" type="text/javascript" nonce="d7a58725e52ec882"></script> <script src="/internal/jQuery/jquery-dateFormat.min.js?1486157598" type="text/javascript" nonce="d7a58725e52ec882"></script> <script src="/core/css/core.js?1486157598" type="text/javascript" nonce="d7a58725e52ec882"></script> <script src="/clientapi/labkey-api-js-core.min.js?1486157598" type="text/javascript" nonce="d7a58725e52ec882"></script> <script src="/clientapi.min.js?1486157598" type="text/javascript" nonce="d7a58725e52ec882"></script> <script src="/internal.min.js?1486157598" type="text/javascript" nonce="d7a58725e52ec882"></script> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-29CS901149" nonce="d7a58725e52ec882"></script> <script nonce="d7a58725e52ec882"> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-29CS901149', { 'send_page_view': true }); </script> </head> <body class="print-template-body"> <div class="lk-body-ct"> <div class="container"> <div class="row"> <div class="col-md-12"> </div> </div> <div class="row content-row"> <div class="content-left"> <div style="padding:10px;"> <table width="100%"> <tr> <td align=left><h3 class="labkey-header-large">Sample Types: Examples</h3></td> <td align=right>2025-02-26</td> </tr> </table> <hr> <div class="labkey-wiki">Sample types help you track sample properties and laboratory workflows. The examples described in this topic are provide to help illustrate the features available. For a live version of these examples see the <span class="nobr"><a target="_blank" href="https://www.labkey.org/home/Demos/Sample%20Types/project-begin.view?">&#83;ample Types Interactive Example</a></span>. <h3 class="heading-1">Blood Samples - <span class="nobr"><a href="https://www.labkey.org/home/Demos/Sample%20Types/experiment-showSampleType.view?rowId=216">Live Version</a></span></h3><p class="paragraph"/>A sample type recording the original blood draws and aliquots (derived child samples) for a clinical study. The original parent vials for the aliquots are indicated by the column "Parent Blood Sample" (previously known as "MaterialInputs").<p class="paragraph"/><table class="wiki-table" cellpadding="0" cellspacing="0" border="0"><tr><th>Name</th><th>Description</th><th>Volume</th><th>VolumeUnit</th><th>SampleType</th><th>Parent Blood Sample</th></tr><tr class="table-odd"><td>S1</td><td>Baseline blood draw</td><td>10</td><td>mL</td><td>Whole Blood</td><td>&#160;</td></tr><tr class="table-even"><td>S2</td><td>Baseline blood draw</td><td>10</td><td>mL</td><td>Whole Blood</td><td>&#160;</td></tr><tr class="table-odd"><td>S3</td><td>Baseline blood draw</td><td>10</td><td>mL</td><td>Whole Blood</td><td>&#160;</td></tr><tr class="table-even"><td>S4</td><td>Baseline blood draw</td><td>10</td><td>mL</td><td>Whole Blood</td><td>&#160;</td></tr><tr class="table-odd"><td>S1.100</td><td>Aliquot from original vial S1</td><td>2</td><td>mL</td><td>Whole Blood</td><td>S1</td></tr><tr class="table-even"><td>S1.200</td><td>Aliquot from original vial S1</td><td>2</td><td>mL</td><td>Whole Blood</td><td>S1</td></tr><tr class="table-odd"><td>S1.300</td><td>Aliquot from original vial S1</td><td>6</td><td>mL</td><td>Whole Blood</td><td>S1</td></tr><tr class="table-even"><td>S2.100</td><td>Aliquot from original vial S2</td><td>2</td><td>mL</td><td>Whole Blood</td><td>S2</td></tr><tr class="table-odd"><td>S2.200</td><td>Aliquot from original vial S2</td><td>4</td><td>mL</td><td>Whole Blood</td><td>S2</td></tr><tr class="table-even"><td>S2.300</td><td>Aliquot from original vial S2</td><td>4</td><td>mL</td><td>Whole Blood</td><td>S2</td></tr></table><p class="paragraph"/>The following image shows the derivation graph for one the aliquot vials.<p class="paragraph"/><img class="link" src="/Documentation/wiki-download.view?entityId=32d6fb00-ed56-1034-b734-fe851e088836&amp;name=sample1.png" title="sample1.png"> <h3 class="heading-1">Cocktails - <span class="nobr"><a href="https://www.labkey.org/home/Demos/Sample%20Types/experiment-showSampleType.view?rowId=219">Live Version</a></span></h3><p class="paragraph"/>A sample type capturing cocktail recipes. The column "MaterialInputs/Cocktails" refers to multiple parent ingredient for each recipe.<p class="paragraph"/><table class="wiki-table" cellpadding="0" cellspacing="0" border="0"><tr><th>Name</th><th>Description</th><th>MaterialType</th><th>MaterialInputs/Cocktails</th></tr><tr class="table-odd"><td>Vodka</td><td>Liquor</td><td>Liquid</td><td>&#160;</td></tr><tr class="table-even"><td>Gin</td><td>Liquor</td><td>Liquid</td><td>&#160;</td></tr><tr class="table-odd"><td>Bourbon</td><td>Liquor</td><td>Liquid</td><td>&#160;</td></tr><tr class="table-even"><td>Bitters</td><td>Mixer</td><td>Liquid</td><td>&#160;</td></tr><tr class="table-odd"><td>Vermouth</td><td>Mixer</td><td>Liquid</td><td>&#160;</td></tr><tr class="table-even"><td>Ice</td><td>Garnish</td><td>Solid</td><td>&#160;</td></tr><tr class="table-odd"><td>Olive</td><td>Garnish</td><td>Solid</td><td>&#160;</td></tr><tr class="table-even"><td>Orange Slice</td><td>Mixer</td><td>Garnish</td><td>&#160;</td></tr><tr class="table-odd"><td>Martini</td><td>Classic Cocktail</td><td>Liquid</td><td>Gin, Vermouth, Ice, Olive</td></tr><tr class="table-even"><td>Vespers</td><td>Classic Cocktail</td><td>Liquid</td><td>Gin, Vodka, Vermouth, Ice</td></tr><tr class="table-odd"><td>Old Fashioned</td><td>Classic Cocktail</td><td>Liquid</td><td>Bourbon, Bitters, Orange Slice</td></tr></table><p class="paragraph"/>The derivation diagram for a Martini:<p class="paragraph"/><img class="link" src="/Documentation/wiki-download.view?entityId=32d6fb00-ed56-1034-b734-fe851e088836&amp;name=sample2.png" title="sample2.png"> <h3 class="heading-1">Beer Recipes</h3><p class="paragraph"/>This example is consists of four different tables: <ul class="minus"> <li>Beer Ingredient Types: a DataClass used to capture the different kinds of ingredients that go into beer, such as Yeast and Hops. In order to keep this example simple, we have consolidated all of the ingredient types into one large DataClass. But you could also split out each of these types into separate DataClasses, resulting in four different DataClases: Yeast Types, Hops Types, Water Types, and Grain Types.</li> <li>Beer Recipe Types: a DataClass used to capture the different kinds of beer recipes, such as Lager, IPA, and Ale.</li> <li>Beer Ingredient Samples: a Sample Type that instantiates the ingredient types.</li> <li>Beer Samples: a Sample Type that captures the final result: samples of beer mixed from the ingredient samples and recipes.</li> </ul>The image below shows the derivation diagram for an Ale sample:<p class="paragraph"/><img class="link" src="/Documentation/wiki-download.view?entityId=32d6fb00-ed56-1034-b734-fe851e088836&amp;name=sample3.png" title="sample3.png"><p class="paragraph"/>Tables used in the sample: <h3 class="heading-1-1">Beer Ingredient Types - <span class="nobr"><a href="https://www.labkey.org/home/Demos/Sample%20Types/experiment-showDataClass.view?name=Beer%20Ingredient%20Types">Live Version</a></span></h3><p class="paragraph"/><table class="wiki-table" cellpadding="0" cellspacing="0" border="0"><tr><th>Name</th><th>Description</th><th>Form</th></tr><tr class="table-odd"><td>Water</td><td>Water from different sources.</td><td>liquid</td></tr><tr class="table-even"><td>Yeast</td><td>Yeast used for fermentation.</td><td>granular</td></tr><tr class="table-odd"><td>Grain</td><td>Grain types such as wheat, barley, oats, etc.</td><td>solid</td></tr><tr class="table-even"><td>Hops</td><td>Various hop strains</td><td>solid</td></tr></table> <h3 class="heading-1-1">Beer Recipe Types - <span class="nobr"><a href="https://www.labkey.org/home/Demos/Sample%20Types/experiment-showDataClass.view?name=Beer%20Recipe%20Types">Live Version</a></span></h3><p class="paragraph"/><table class="wiki-table" cellpadding="0" cellspacing="0" border="0"><tr><th>Name</th><th>Recipe Text</th></tr><tr class="table-odd"><td>Lager</td><td>Mix and bottom ferment.</td></tr><tr class="table-even"><td>Ale</td><td>Mix and use wild yeast from the environment.</td></tr><tr class="table-odd"><td>IPA</td><td>Mix using lots of hops.</td></tr></table> <h3 class="heading-1-1">Beer Ingredient Samples - <span class="nobr"><a href="https://www.labkey.org/home/Demos/Sample%20Types/experiment-showSampleType.view?rowId=211">Live Version</a></span></h3><p class="paragraph"/><table class="wiki-table" cellpadding="0" cellspacing="0" border="0"><tr><th>Name</th><th>Description</th><th>Volume</th><th>VolumeUnits</th><th>DataInputs/Beer Ingredient Types</th></tr><tr class="table-odd"><td>Yeast.1</td><td>Sample derived from Beer Ingredient Types</td><td>10</td><td>grams</td><td>Yeast</td></tr><tr class="table-even"><td>Yeast.2</td><td>Sample derived from Beer Ingredient Types</td><td>10</td><td>grams</td><td>Yeast</td></tr><tr class="table-odd"><td>Yeast.3</td><td>Sample derived from Beer Ingredient Types</td><td>10</td><td>grams</td><td>Yeast</td></tr><tr class="table-even"><td>Water.1</td><td>Sample derived from Beer Ingredient Types</td><td>1000</td><td>mL</td><td>Water</td></tr><tr class="table-odd"><td>Water.2</td><td>Sample derived from Beer Ingredient Types</td><td>1000</td><td>mL</td><td>Water</td></tr><tr class="table-even"><td>Grain.1</td><td>Sample derived from Beer Ingredient Types</td><td>100</td><td>grams</td><td>Grain</td></tr><tr class="table-odd"><td>Grain.2</td><td>Sample derived from Beer Ingredient Types</td><td>100</td><td>grams</td><td>Grain</td></tr><tr class="table-even"><td>Hops.1</td><td>Sample derived from Beer Ingredient Types</td><td>3</td><td>grams</td><td>Hops</td></tr><tr class="table-odd"><td>Hops.2</td><td>Sample derived from Beer Ingredient Types</td><td>3</td><td>grams</td><td>Hops</td></tr></table> <h3 class="heading-1-1">Beer Samples - <span class="nobr"><a href="https://www.labkey.org/home/Demos/Sample%20Types/experiment-showSampleType.view?rowId=214">Live Version</a></span></h3><p class="paragraph"/><table class="wiki-table" cellpadding="0" cellspacing="0" border="0"><tr><th>Name</th><th>MaterialInputs/Beer Ingredient Samples</th><th>DataInputs/Beer Recipe Types</th></tr><tr class="table-odd"><td>Lager.1</td><td>Yeast.1, Water.2, Grain.1, Hops.2</td><td>Lager</td></tr><tr class="table-even"><td>Ale.1</td><td>Yeast.2, Water.1, Grain.1, Hops.1</td><td>Ale</td></tr><tr class="table-odd"><td>IPA.1</td><td>Yeast.3, Water.2, Grain.2, Hops.2</td><td>IPA</td></tr></table> <h3 class="heading-1">Related Topics </h3> <ul class="minus"> <li><a class="link" href="/Documentation/wiki-page.view?name=deriveSamples">Sample Parents: Derivation and Lineage</a></li> <li><a class="link" href="/Documentation/wiki-page.view?name=dataClass">Data Classes</a></li> <li><span class="nobr"><a href="https://www.labkey.org/home/Demos/Sample%20Types/project-begin.view?">Sample Types Example Project</a></span></li> </ul></div> </div> </div> </div> </div> </div> <a href="/__r1848/wiki-page.view?name=exampleSampleSets&amp;_print=1" id="permalink" name="permalink" style="display: none;"></a><!-- Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506; .NET CLR 3.5.21022; .NET CLR 1.0.3705; .NET CLR 1.1.4322) --> <script type="text/javascript" nonce="d7a58725e52ec882"> LABKEY.loadScripts(); LABKEY.showNavTrail(); if (LABKEY.WebSocket) LABKEY.WebSocket.initWebSocket(); (function() { function _on_dom_content_loaded_(){const A = function(a,b,c){LABKEY.Utils.attachEventHandler(a,b,c,1);} } function _on_document_loaded_(){ } if (document.readyState !== "loading") { _on_dom_content_loaded_(); if (document.readyState === "complete") _on_document_loaded_(); } document.addEventListener('readystatechange', function() { if (document.readyState === 'interactive') _on_dom_content_loaded_(); else if (document.readyState === 'complete') _on_document_loaded_(); }); })(); </script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10