Comparative analysis is used to view groups of samples to determine similarities and differences between them. It works by taking the resulting organisms from all samples selected and making a matrix. This matrix contains each organism and each sample and identifies whether or not each organism was found in a sample. You can also select groups of samples, also known as cohorts, to compare to each other so you can determine differences or similarities between the groups.Comparative analysis allows you to look for trends in your data. For example, certain bacteria might be present in higher abundance in certain cohorts. An example would be comparing the gut microbiome of mice fed different diets. Some groups may have different gut bacteria depending on what they eat.
Create a New Comparative Analysis
To create a new comparative analysis, navigate to the comparative analysis page by clicking on the comparative analysis button. If you have already run some comparative analyses they will appear here.Click on the “Create” button. Enter a name for your comparative analysis report. Select database from the dropdown menu. Select filtered or total results to use for the comparative analysis. Read more about Filtering. Select the value to use for the comparative analysis. For the main databases, you can choose relative abundance, frequency, total matches %, or unique matches %. Click here for the Definition of each of these values.Cohorts are available to define groups of samples. Enter the names you wish to use in the cohort boxes.
Select Samples
To select samples you can click the check box to the left of the sample. You can do this for individual samples or for all samples by clicking the check box next to “file” at the top of the sample table. You can also assign samples to labels by selecting the check box under the correct label column. By default, if not given names, the labels are called “L1, L2, L3,” etc. in the table. You can search for a sample name or date range by entering the search term in the search boxes just above the sample table. You can toggle on and off the initial example data sets provided.Under the “submit” button on the right you can change the number of samples that are viewed at a time by selecting a number from the drop down menu. To scroll through pages of samples, click on the page numbers or “previous” or “next” at the bottom of the table.In the sample selection table, in addition to the sample name, you will see the sample size and number of hits for that database (the number of organisms or genes identified).
You must select at least 2 datasets to perform comparative analysis.
After selecting your samples, click “Submit” to run your comparative analysis.
Comparative Analysis Setup using the TSV Template
In order to make the setup of complex comparative analyses more manageable, you can define the cohorts and assign samples using a spreadsheet. To do so please click on the “Export TSV” button to initiate the download of the TSV template. The TSV file can be opened in Excel or your favorite spreadsheet software. It comes pre-filled with the following information.Columns: 1 Display name 2 Selected 3 Cohort 4 Cohort Order 5 File name 6 Path 7 Submitted 8 Size 9 Dataset Reads 10 Hits (Total) 11 Hits (Filtered) 12 UUID (Do not modify)RowsEach row represents a sample that has been analyzed in your account using the database you selected at the beginning of the comparative analysis setup process.Filling out the Template Only three columns need to be edited.2 Selected - enter an X next to any sample you wish to include in the comparative analysis. 3 Cohort - assign a selected name to a cohort by entering the cohort name here. For all samples belonging to the same cohort, please enter the same cohort name. 4 Cohort Order - enter the number in which you’d like cohorts to appear in the comparative analysis results. For all samples belonging to the same cohort, please enter the same number.Column 1 Display name - can be edited optionally and by default shows the file name. Columns 5 - 11 - include information that will make it easier to search or select the right samples. Editing this information has no effect.Column 12 UUID (Do not modify) - includes a unique sample ID. This information may NOT be edited, otherwise the comparative analysis might fail. Once the comparative analysis has been defined, please save the sheet in TSV format, then click on the Import TSV button, navigate to the saved TSV file and proceed.
Duplicating an existing Comparative Analysis
If you want to change certain samples or parameters of an already existing comparative analysis it is not necessary to go through the entire setup process again. You can instead create copy of the existing comparative analysis.Open the menu by clicking on the comparative analysis icon on the left panel. Select the comparative analysis you wish to duplicate. Click the Duplicate button in the upper right corner of the screen. The comparative analysis setup menu will appear where you can enter a name for the comparative analysis and modify for instance the database, samples, filter settings or the comparator metric. Once complete proceed by clicking the Submit button.
Rename or Remove existing Comparative Analysis
Open the menu by clicking on the comparative analysis icon on the left panel. Select one or multiple comparative analysis. Next to the search field in the upper left corner of the menu, you will see a confirmation of how many Comparative Analyses you have selected, followed by a Delete icon and a Rename icon.Selected Comparative Analyses will be permanently deleted and cannot be restored. They can however be recreated from original sample files. You will be asked to confirm if you wish to proceed. It is possible to select and delete multiple Comparative Analyses, but renaming is only possible for one Comparative Analyses at a time. To rename a Comparative Analyses, click the Rename button, which will give you access to a text entry field you can use to change the existing name. Text entry is limited to latin letters, numbers, ’, &, (, ), [, ], +, !, ., - and _ symbols.
Create Comparative Analysis Video
⌘I
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Cosmos-Hub","description":"A comprehensive documentation on the Cosmos-Hub, the leading cloud-based microbiome analysis software.","colors":{"primary":"#002d70","light":"#005149","dark":"#005148"},"logo":{"light":"https://mintcdn.com/cmbio/1bkEKvEMzn3OLKqg/logo/dark.svg?fit=max\u0026auto=format\u0026n=1bkEKvEMzn3OLKqg\u0026q=85\u0026s=d0761cd0ad078897e0e627c55375d649","dark":"https://mintcdn.com/cmbio/1bkEKvEMzn3OLKqg/logo/white.svg?fit=max\u0026auto=format\u0026n=1bkEKvEMzn3OLKqg\u0026q=85\u0026s=56bca9c9a3314a9269f13feaaf6f6a85","href":"https://www.cosmos-hub.com/"},"favicon":"https://mintcdn.com/cmbio/1_URKzklO7hYjRsk/favicon.png?fit=max\u0026auto=format\u0026n=1_URKzklO7hYjRsk\u0026q=85\u0026s=23259a2023627573f3ee7c51a79643fb","appearance":{"default":"light"},"background":{"decoration":"gradient"},"navbar":{"links":[{"href":"https://cosmos-hub.com/support","label":"Support"}],"primary":{"type":"button","label":"Launch the Hub","href":"https://app.cosmosid.com"}},"footer":{"socials":{"youtube":"https://www.youtube.com/microbiome-4-u","linkedin":"https://www.linkedin.com/company/cmbio"}},"fonts":{"heading":{"family":"Poppins","weight":500,"source":"https://fonts.gstatic.com/s/poppins/v21/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2","format":"woff2"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cmbio","hasAudioNarration":false,"actualSubdomain":"cmbio","customDomains":["docs.cosmosid.com"],"gitSource":{"type":"github","owner":"cosmos-hub-docs","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"issues":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b005c98a22d9093f0bad987","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"default","tag":"Documentation","count":104},{"language":"default","tag":"Guides","count":62},{"language":"default","tag":"Cosmos-Hub 2.0","count":35},{"language":"default","tag":"Analysis Projects","count":25},{"language":"default","tag":"Analysis Modules","count":19},{"language":"default","tag":"Comparative Analysis and Statistics","count":19},{"language":"default","tag":"Interpreting Profiling Results","count":11},{"language":"default","tag":"API","count":10},{"language":"default","tag":"Microbiome Profiling","count":9},{"language":"default","tag":"Technical Appendix","count":9}]},"assistantConfig":{"enableAskAiButton":true,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"help@cosmos-hub.com","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"v1.0/docs/new-comparative-analysis","slug":"/v1.0/docs/new-comparative-analysis","pageMetadata":{"title":"Overview","description":"How to create a new comparative analysis","href":"/v1.0/docs/new-comparative-analysis"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"How to create a new comparative analysis\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Frame,Heading,Icon,OptimizedFrame,Warning}=_components;if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Icon)_missingMdxReference(`Icon`,true);if(!OptimizedFrame)_missingMdxReference(`OptimizedFrame`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`introduction`,children:`Introduction`}),`\n`,_jsx(_components.p,{children:`Comparative analysis is used to view groups of samples to determine similarities and differences between them. It works by taking the resulting organisms from all samples selected and making a matrix. This matrix contains each organism and each sample and identifies whether or not each organism was found in a sample. You can also select groups of samples, also known as cohorts, to compare to each other so you can determine differences or similarities between the groups.`}),`\n`,_jsx(_components.p,{children:`Comparative analysis allows you to look for trends in your data. For example, certain bacteria might be present in higher abundance in certain cohorts. An example would be comparing the gut microbiome of mice fed different diets. Some groups may have different gut bacteria depending on what they eat.`}),`\n`,_jsx(Heading,{level:`2`,id:`create-a-new-comparative-analysis`,children:`Create a New Comparative Analysis`}),`\n`,_jsxs(_components.p,{children:[`To create a new comparative analysis, navigate to the comparative analysis page by clicking on the comparative analysis `,_jsx(Icon,{icon:`copy`,icontype:`solid`}),` button. If you have already run some comparative analyses they will appear here.`]}),`\n`,_jsxs(_components.p,{children:[`Click on the “Create” button. Enter a name for your comparative analysis report. Select database from the dropdown menu. Select filtered or total results to use for the comparative analysis. Read more about `,_jsx(_components.a,{href:`/v1.0/docs/filtering`,children:`Filtering`}),`. Select the value to use for the comparative analysis. For the main databases, you can choose relative abundance, frequency, total matches %, or unique matches %. Click here for the `,_jsx(_components.a,{href:`/v1.0/docs/definitions`,children:`Definition`}),` of each of these values.`]}),`\n`,_jsx(_components.p,{children:`Cohorts are available to define groups of samples. Enter the names you wish to use in the cohort boxes.`}),`\n`,_jsx(Heading,{level:`2`,id:`select-samples`,children:`Select Samples`}),`\n`,_jsx(_components.p,{children:`To select samples you can click the check box to the left of the sample. You can do this for individual samples or for all samples by clicking the check box next to “file” at the top of the sample table. You can also assign samples to labels by selecting the check box under the correct label column. By default, if not given names, the labels are called “L1, L2, L3,” etc. in the table. You can search for a sample name or date range by entering the search term in the search boxes just above the sample table. You can toggle on and off the initial example data sets provided.`}),`\n`,_jsx(_components.p,{children:`Under the “submit” button on the right you can change the number of samples that are viewed at a time by selecting a number from the drop down menu. To scroll through pages of samples, click on the page numbers or “previous” or “next” at the bottom of the table.`}),`\n`,_jsx(_components.p,{children:`In the sample selection table, in addition to the sample name, you will see the sample size and number of hits for that database (the number of organisms or genes identified).`}),`\n`,_jsx(Warning,{children:_jsx(Heading,{level:`2`,id:`you-must-select-at-least-2-datasets-to-perform-comparative-analysis`,children:`You must select at least 2 datasets to perform comparative analysis.`})}),`\n`,_jsx(_components.p,{children:`After selecting your samples, click “Submit” to run your comparative analysis.`}),`\n`,_jsx(Heading,{level:`2`,id:`comparative-analysis-setup-using-the-tsv-template`,children:`Comparative Analysis Setup using the TSV Template`}),`\n`,_jsx(_components.p,{children:`In order to make the setup of complex comparative analyses more manageable, you can define the cohorts and assign samples using a spreadsheet. To do so please click on the “Export TSV” button to initiate the download of the TSV template. The TSV file can be opened in Excel or your favorite spreadsheet software. It comes pre-filled with the following information.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Columns:`}),` 1 Display name 2 Selected 3 Cohort 4 Cohort Order 5 File name 6 Path 7 Submitted 8 Size 9 Dataset Reads 10 Hits (Total) 11 Hits (Filtered) 12 UUID (Do not modify)`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`Rows`})}),`\n`,_jsx(_components.p,{children:`Each row represents a sample that has been analyzed in your account using the database you selected at the beginning of the comparative analysis setup process.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Filling out the Template`}),` Only three columns need to be edited.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`2 Selected`}),` - enter an X next to any sample you wish to include in the comparative analysis. `,_jsx(_components.strong,{children:`3 Cohort`}),` - assign a selected name to a cohort by entering the cohort name here. For all samples belonging to the same cohort, please enter the same cohort name. `,_jsx(_components.strong,{children:`4 Cohort Order`}),` - enter the number in which you’d like cohorts to appear in the comparative analysis results. For all samples belonging to the same cohort, please enter the same number.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Column 1 Display name`}),` - can be edited optionally and by default shows the file name. `,_jsx(_components.strong,{children:`Columns 5 - 11`}),` - include information that will make it easier to search or select the right samples. Editing this information has no effect.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Column 12 UUID`}),` (Do not modify) - includes a unique sample ID. This information may NOT be edited, otherwise the comparative analysis might fail. Once the comparative analysis has been defined, please save the sheet in TSV format, then click on the Import TSV button, navigate to the saved TSV file and proceed.`]}),`\n`,_jsx(Heading,{level:`2`,id:`duplicating-an-existing-comparative-analysis`,children:`Duplicating an existing Comparative Analysis`}),`\n`,_jsx(_components.p,{children:`If you want to change certain samples or parameters of an already existing comparative analysis it is not necessary to go through the entire setup process again. You can instead create copy of the existing comparative analysis.`}),`\n`,_jsx(_components.p,{children:`Open the menu by clicking on the comparative analysis icon on the left panel. Select the comparative analysis you wish to duplicate. Click the Duplicate button in the upper right corner of the screen. The comparative analysis setup menu will appear where you can enter a name for the comparative analysis and modify for instance the database, samples, filter settings or the comparator metric. Once complete proceed by clicking the Submit button.`}),`\n`,_jsx(Heading,{level:`2`,id:`rename-or-remove-existing-comparative-analysis`,children:`Rename or Remove existing Comparative Analysis`}),`\n`,_jsx(_components.p,{children:`Open the menu by clicking on the comparative analysis icon on the left panel. Select one or multiple comparative analysis. Next to the search field in the upper left corner of the menu, you will see a confirmation of how many Comparative Analyses you have selected, followed by a Delete icon and a Rename icon.`}),`\n`,_jsx(_components.p,{children:`Selected Comparative Analyses will be permanently deleted and cannot be restored. They can however be recreated from original sample files. You will be asked to confirm if you wish to proceed. It is possible to select and delete multiple Comparative Analyses, but renaming is only possible for one Comparative Analyses at a time. To rename a Comparative Analyses, click the Rename button, which will give you access to a text entry field you can use to change the existing name. Text entry is limited to latin letters, numbers, ’, \u0026, (, ), [, ], +, !, ., - and _ symbols.`}),`\n`,_jsx(Heading,{level:`2`,id:`create-comparative-analysis-video`,children:`Create Comparative Analysis Video`}),`\n`,_jsx(Frame,{children:_jsx(OptimizedFrame,{src:`https://d3omwy4q2qio9v.cloudfront.net/items/3x1l2P2n243J0b1o0K1W/CA.mp4`,title:`YouTube video player`,frameborder:`0`,allow:`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share`,referrerpolicy:`strict-origin-when-cross-origin`,allowfullscreen:true,width:`100%`,height:`420px`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Overview","description":"How to create a new comparative analysis","href":"/v1.0/docs/new-comparative-analysis"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Introduction","slug":"introduction","depth":2,"children":[]},{"title":"Create a New Comparative Analysis","slug":"create-a-new-comparative-analysis","depth":2,"children":[]},{"title":"Select Samples","slug":"select-samples","depth":2,"children":[]},{"title":"You must select at least 2 datasets to perform comparative analysis.","slug":"you-must-select-at-least-2-datasets-to-perform-comparative-analysis","depth":2,"children":[]},{"title":"Comparative Analysis Setup using the TSV Template","slug":"comparative-analysis-setup-using-the-tsv-template","depth":2,"children":[]},{"title":"Duplicating an existing Comparative Analysis","slug":"duplicating-an-existing-comparative-analysis","depth":2,"children":[]},{"title":"Rename or Remove existing Comparative Analysis","slug":"rename-or-remove-existing-comparative-analysis","depth":2,"children":[]},{"title":"Create Comparative Analysis Video","slug":"create-comparative-analysis-video","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"cmbio","siteName":"Cosmos-Hub","title":"Overview - Cosmos-Hub","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{"v2.0":{"href":"/v1.0/docs/new-comparative-analysis","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-01-27T21:59:24.132Z","originalFileLocation":"v1.0/docs/new-comparative-analysis.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"How to create a new comparative analysis\">\u003cmeta data-mint-head name=\"application-name\" content=\"Cosmos-Hub\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cmbio/b_gH1KzGy5ESf5ks/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/cmbio/b_gH1KzGy5ESf5ks/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cmbio/b_gH1KzGy5ESf5ks/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cmbio/b_gH1KzGy5ESf5ks/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cmbio/b_gH1KzGy5ESf5ks/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cmbio/b_gH1KzGy5ESf5ks/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cmbio/b_gH1KzGy5ESf5ks/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cmbio/b_gH1KzGy5ESf5ks/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cmbio/b_gH1KzGy5ESf5ks/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Overview - Cosmos-Hub\">\u003cmeta data-mint-head property=\"og:description\" content=\"How to create a new comparative analysis\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cosmos-Hub\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.cosmosid.com/v1.0/docs/new-comparative-analysis\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cmbio.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Overview\u0026amp;description=How+to+create+a+new+comparative+analysis\u0026amp;theme=f4a5949a02dbdb463b33e1c4\u0026amp;signature=32954e6df037703907b8c155e3071da80c1ecd5deb4d356e8396bf879072f546\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Overview - Cosmos-Hub\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"How to create a new comparative analysis\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cmbio.mintlify.site/_mintlify/api/og/v2?division=Documentation\u0026amp;title=Overview\u0026amp;description=How+to+create+a+new+comparative+analysis\u0026amp;theme=f4a5949a02dbdb463b33e1c4\u0026amp;signature=32954e6df037703907b8c155e3071da80c1ecd5deb4d356e8396bf879072f546\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/cmbio/b_gH1KzGy5ESf5ks/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cosmos-Hub\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#002d70\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.cosmosid.com/v1.0/docs/new-comparative-analysis\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/v1.0/docs/new-comparative-analysis.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Cosmos-Hub\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Cosmos-Hub\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/v1.0/docs/new-comparative-analysis.md","siteName":"Cosmos-Hub","nav":{"global":null,"versions":[{"version":"v2.0","anchors":[{"anchor":"Documentation","icon":"book-open","tabs":[{"tab":"Guides","groups":[{"group":"Using the Hub","pages":[{"mode":"wide","title":"about","href":"/docs/about"},{"title":"Quickstart","href":"/docs/quick-start"},{"title":"Setting up your account","sidebarTitle":"Setting up your account","href":"/docs/setting-up-your-account"},{"title":"Uploading Sequencing Data","sidebarTitle":"Uploading Sequencing Data","href":"/docs/sample-upload"},{"title":"Uploading Metadata","href":"/docs/metadata-and-cohorts"},{"title":"Running Data Workflows","href":"/docs/workflows"},{"title":"Compare Samples (Comparative Analysis)","href":"/docs/new-comparative-analysis"},{"title":"RITA Microbiome Assistant","mode":"wide","href":"/docs/rita"},{"title":"Cosmos-Hub Video Tutorials","href":"/docs/video-library"}]},{"group":"Navigating the Sample Dashboard","pages":[{"title":"Organize Your Data","href":"/docs/create-folders-and-organize-files"},{"title":"Filtering Samples by Metadata","href":"/v2-0/documentation/guides/navigating-the-sample-dashboard/filtering-samples-by-metadata"},{"title":"Raw Data Download","href":"/docs/download-your-raw-fastqs"},{"title":"Exporting Your Profiling Results","href":"/docs/download-your-results"},{"title":"Sharing Data","href":"/docs/data-sharing"},{"title":"Sample Tags","href":"/docs/tags"}]},{"group":"Interpreting Profiling Results","pages":[{"group":"Individual Sample Profiling Results","pages":[{"title":"Viewing Single Sample Profiling Data","href":"/docs/view-sample-results"},{"title":"Sample Abundance Table","href":"/docs/sample-dashboard-table"},{"title":"Sunburst","href":"/docs/sunburst"},{"title":"Bubble Graph","href":"/docs/bubble-graph"},{"title":"Collapsible Tree","href":"/docs/collapsible-tree"},{"title":"Radial Tree","href":"/docs/radial-tree"},{"title":"Donut Graph","href":"/docs/donut-graph"},{"title":"Stacked Bar Graph","href":"/docs/stacked-bar-graph"}]},{"title":"FASTQC","href":"/docs/fastqc"},{"title":"Taxonomic Filtering","href":"/docs/filtering"},{"title":"(Meta)Transcriptomic Analysis in the HUB","href":"/docs/metatranscriptomic-analysis-in-the-hub"}]},{"group":"Comparative Analysis and Statistics","pages":[{"title":"Compare Samples (Comparative Analysis)","href":"/docs/new-comparative-analysis"},{"title":"Changing Order and Color of Cohorts in CA Visualizations","href":"/docs/rearranging-cohorts"},{"title":"Matrix Table","href":"/docs/matrix-table"},{"title":"Heatmap","href":"/docs/heat-map"},{"title":"Stacked Bar Graph","href":"/docs/stacked-bar"},{"title":"Abundance Distribution","href":"/docs/abundance-distribution"},{"title":"PCA","href":"/docs/3d-pca"},{"title":"Alpha-diversity","href":"/docs/alpha-diversity"},{"title":"Beta Diversity","href":"/docs/beta-diversity"},{"title":"Read Statistics","href":"/docs/read-statistics"},{"title":"LEfSe Biomarker Discovery Analysis","href":"/docs/lefse-biomarker-discovery-analysis"},{"group":"MaAsLin2 for Differential Abundance","pages":[{"title":"MaAsLin2 for Differential Abundance","sidebarTitle":"Overview","href":"/docs/maaslin2"},{"title":"Running MaAsLin 2 Workflow","href":"/docs/maaslin2-running-workflow"},{"title":"Viewing the MaAsLin2 Results","href":"/docs/maaslin2-view-results"}]},{"group":"MaAsLin3 for Differential Abundance","pages":[{"title":"MaAsLin3 for Differential Abundance","sidebarTitle":"Overview","href":"/docs/maaslin3"},{"title":"Running MaAsLin3 Workflow","href":"/docs/maaslin3-running-workflow"},{"title":"Longitudinal and Complex Association Testing with MaAsLin3","href":"/docs/maaslin3-longitudinal"},{"title":"Viewing the MaAsLin3 Results","href":"/docs/maaslin3-view-results"},{"title":"Extending MaAsLin3: Exporting Input Data and Building Prevalence Models","sidebarTitle":"MaAsLin3 Prevalence Modeling","href":"/docs/blog/extending-ma-as-lin3-how-to-export-input-data-and-build-prevalence-presence-absence-models-in-cosmos-hub"}]}]},{"group":"Microbiome Profiling","pages":[{"title":"CHAMP Human Microbiome and Functional Profiling","href":"/docs/champ2"},{"title":"Kepler Host-Agnostic Taxonomic Profiling","href":"/docs/kepler-microbiome-profiler"},{"title":"Functional Host-Agnostic Profiling","href":"/docs/functional-analysis"},{"title":"AMR/VF Profiling","href":"/docs/amr-vf-pipeline"},{"title":"Long-Read Amplicon Profiling","href":"/docs/emu"},{"title":"16S Amplicon Classification","href":"/docs/16s-metagenomics-taxonomy"},{"title":"ITS Amplicon Classification","href":"/docs/its-amplicon"},{"title":"Host Read Removal Workflow","mode":"wide","href":"/docs/host-read-removal-workflow"},{"title":"Database Species Lists","href":"/docs/database-information"}]},{"group":"Technical Appendix","pages":[{"title":"Methods for Manuscripts","href":"/docs/technical-appendix/methods"},{"title":"Update Log","href":"/docs/updates"},{"title":"Troubleshooting Common Metadata Upload Errors","href":"/v2-0/documentation/technical-appendix/technical-appendix/metadata-errors"},{"title":"Bacteria And Fungi Database Updates","mode":"wide","href":"/docs/technical-appendix/bacteria-and-fungi-database-updates"},{"title":"Security and IT Documentation","href":"/docs/technical-appendix/security-it"},{"title":"EU GDPR Clause ","href":"/docs/technical-appendix/eu-gdpr"},{"title":"Available Example Datasets","href":"/docs/technical-appendix/available-example-datasets"},{"title":"GTDB vs. NCBI Taxonomic Nomenclature","mode":"wide","href":"/docs/technical-appendix/gtdb-and-ncbi-taxonomy-comparison"},{"title":"FAQ","href":"/docs/technical-appendix/faq"}]}]},{"tab":"API","groups":[{"group":"API","pages":[{"group":"CLI Documentation","pages":[{"title":"API Documentation","sidebarTitle":"Overview","mode":"wide","href":"/docs/api-reference/api-documentation"},{"title":"Install and Setup","href":"/docs/api-reference/install-and-setup"},{"title":"Running the CLI","mode":"wide","href":"/docs/api-reference/running-the-cli"},{"title":"Example: Running CHAMP","mode":"wide","href":"/docs/api-reference/example-running-champ"},{"title":"Example: Running 16S Short-Read","mode":"wide","href":"/docs/api-reference/upload_16s"}]}]}]},{"tab":"Blog","groups":[{"group":"Blog","pages":[{"title":"Alpha Diversity Metrics: How to Choose the Right One","href":"/docs/blog/alpha-diversity-what"},{"title":"Beta Diversity Metrics: How to Choose the Right One","href":"/docs/blog/beta-diversity-what"}]}]},{"tab":"Cosmos-Hub 2.0","pages":[{"group":"Getting Started","icon":"star","pages":[{"title":"What is Cosmos-Hub 2.0","mode":"wide","href":"/DAP_docs/About"},{"title":"Quickstart","icon":"forward","href":"/DAP_docs/quickstart"}]},{"group":"Workspace and Studies","icon":"chart-tree-map","pages":[{"title":"Workspaces","icon":"pencil-square","href":"/DAP_docs/workspaces"},{"title":"Studies","icon":"bacterium","href":"/DAP_docs/studies"},{"title":"The Study Dashboard","icon":{"name":"table-layout","style":"regular","library":"fontawesome"},"href":"/DAP_docs/study-dashboard"}]},{"group":"Import Data on Cosmos-Hub 2.0","icon":"database","pages":[{"title":"Importing data into a study","icon":"upload","href":"/DAP_docs/importing-data-in-studies"},{"title":"Exporting Data from Cosmos-Hub Pipelines","icon":"file-export","href":"/DAP_docs/export-from-cosmos-hub-pipelines"},{"title":"Import custom data","icon":"file-arrow-up","href":"/importing-custom-data"}]},{"group":"Building Cohorts","icon":"people-group","pages":[{"title":"Create a cohort with Query Builder","icon":"microchip-ai","href":"/DAP_docs/query-builder"}]},{"group":"Analysis Projects","icon":"microscope","pages":[{"title":"Analysis Projects (AP)","icon":"pencil-line","href":"/DAP_docs/analysis-project-AP"},{"title":"The Analysis Studio","icon":"pencil-square","href":"/DAP_docs/analysis-studio"},{"title":"Analysis Snapshots","icon":"camera","href":"/DAP_docs/analysis-snapshots"},{"group":"Pre-processing","icon":"filters","pages":[{"title":"Overview","href":"/DAP_docs/preprocessing-overview"},{"title":"Pre-processing Parameters","href":"/DAP_docs/pre-processing-parameters"},{"title":"Impact of Pre-Processing on Analyses ","href":"/DAP_docs/impact-of-pre-processing"}]},{"group":"Analysis Modules","icon":"signal-bars","pages":[{"group":"Rarefaction","pages":[{"title":"Rarefaction Overview","href":"/DAP_docs/rarefaction-analysis-overview"},{"title":"Rarefaction on Cosmos-Hub 2.0","href":"/DAP_docs/rarefaction"}]},{"group":"Alpha-diversity","pages":[{"title":"Alpha diversity Overview","href":"/DAP_docs/alpha-diversity-overview"},{"title":"Alpha diversity on Cosmos-Hub 2.0","href":"/DAP_docs/alpha-diversity"}]},{"group":"Beta-diversity","pages":[{"title":"Beta diversity Overview","href":"/DAP_docs/beta-diversity-overview"},{"title":"Beta diversity on Cosmos-Hub 2.0","href":"/DAP_docs/beta-diversity-on-the-dap"}]},{"group":"PCA Explorer","pages":[{"title":"Overview","href":"/DAP_docs/pcaexplorer-overview"},{"title":"PCA explorer on Cosmos-Hub 2.0","href":"/DAP_docs/pca-explorer"}]},{"group":"Heatmap","pages":[{"title":"Overview","href":"/DAP_docs/heatmap-overview"},{"title":"Heatmap on Cosmos-Hub 2.0","href":"/DAP_docs/heatmaps"}]},{"group":"Univariate Comparison","pages":[{"title":"Overview","href":"/DAP_docs/univariatecomparison-overview"},{"title":"Univariate comparison on Cosmos-Hub 2.0","href":"/DAP_docs/univariate-comparison"}]},{"group":"Stacked Bar Charts","pages":[{"title":"Overview","href":"/DAP_docs/stackedbarchart-overview"},{"title":"Stacked bar charts on Cosmos-Hub 2.0","href":"/DAP_docs/stacked-bar-charts"}]},{"group":"Machine Learning","pages":[{"title":"Overview","href":"/DAP_docs/machinelearning-overview"},{"title":"Build ML Classification and Regression models on Cosmos-Hub 2.0","href":"/DAP_docs/configuring-a-ml-analysis"},{"title":"ML Classification on Cosmos-Hub 2.0","href":"/DAP_docs/ml-classification"},{"title":"ML Regression on Cosmos-Hub 2.0","mode":"wide","href":"/DAP_docs/ml-regression"}]},{"group":"PLS-DA","pages":[{"title":"Overview","mode":"wide","href":"/overview"}]}]}]},{"group":"Organisation Management","pages":[{"title":"Manage access to your organisation","sidebarTitle":"Users, groups and permissions","icon":{"name":"shield","style":"regular","library":"fontawesome"},"href":"/DAP_docs/manage-access"}]}]}]},{"anchor":"Multi-Omics with Cmbio","icon":"newspaper","href":"https://cmbio.io/"},{"anchor":"Contact Support","icon":"headset","href":"mailto:help@cosmos-hub.com"},{"anchor":"Contact Sales","icon":"dna","href":"mailto:info@cosmos-hub.com"}]}]},"basePath":"","title":"Overview - Cosmos-Hub","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":["07c022d89b"],"chunks":["Frame-CUYDhsh7.js","DynamicMarkdown-D8KwOkxZ.js"]}