LOCKED | Combining single cell datasets after pre-processing

single-cell-scrna-case_alevin-combine-datasets/combining-single-cell-datasets-after-pre-processing

Author(s)
Wendi Bacon
version Version
1
last_modification Last updated
Apr 22, 2025
license License
MIT
galaxy-tags Tags
name:training
name:single-cell

Features
Tutorial
hands_on Combining single cell datasets after pre-processing
workflow Other workflows associated with this material
Workflow Testing
Tests: ❌
Results: Not yet automated
FAIRness purl PURL
https://gxy.io/GTN:W00330
RO-Crate logo with flask Download Workflow RO-Crate Workflowhub cloud with gears logo View on WorkflowHub
Launch in Tutorial Mode question
galaxy-download Download
flowchart TD
  0["ℹ️ Input Dataset\nSample 1"];
  style 0 stroke:#2c3143,stroke-width:4px;
  1["ℹ️ Input Dataset\nSample 2"];
  style 1 stroke:#2c3143,stroke-width:4px;
  2["ℹ️ Input Dataset\nSample 3"];
  style 2 stroke:#2c3143,stroke-width:4px;
  3["ℹ️ Input Dataset\nSample 4"];
  style 3 stroke:#2c3143,stroke-width:4px;
  4["ℹ️ Input Dataset\nSample 5"];
  style 4 stroke:#2c3143,stroke-width:4px;
  5["ℹ️ Input Dataset\nSample 6"];
  style 5 stroke:#2c3143,stroke-width:4px;
  6["ℹ️ Input Dataset\nSample 7"];
  style 6 stroke:#2c3143,stroke-width:4px;
  7["Combined_Object"];
  0 -->|output| 7;
  1 -->|output| 7;
  2 -->|output| 7;
  3 -->|output| 7;
  4 -->|output| 7;
  5 -->|output| 7;
  6 -->|output| 7;
  85f64e2d-e520-41d6-939d-bb5409e096cc["Output\nCombined_Object"];
  7 --> 85f64e2d-e520-41d6-939d-bb5409e096cc;
  style 85f64e2d-e520-41d6-939d-bb5409e096cc stroke:#2c3143,stroke-width:4px;
  8["Inspect AnnData"];
  7 -->|anndata| 8;
  165749ab-bbbd-4780-8655-9083bb6fe693["Output\nvar"];
  8 --> 165749ab-bbbd-4780-8655-9083bb6fe693;
  style 165749ab-bbbd-4780-8655-9083bb6fe693 stroke:#2c3143,stroke-width:4px;
  9["Inspect AnnData"];
  7 -->|anndata| 9;
  b5fed97e-1211-4fec-bde4-ae383c2fbb90["Output\ngeneral"];
  9 --> b5fed97e-1211-4fec-bde4-ae383c2fbb90;
  style b5fed97e-1211-4fec-bde4-ae383c2fbb90 stroke:#2c3143,stroke-width:4px;
  10["Inspect AnnData"];
  7 -->|anndata| 10;
  6011a026-8122-42d2-a7a7-da13ebb068c8["Output\nobs"];
  10 --> 6011a026-8122-42d2-a7a7-da13ebb068c8;
  style 6011a026-8122-42d2-a7a7-da13ebb068c8 stroke:#2c3143,stroke-width:4px;
  11["Generating sex metadata"];
  10 -->|obs| 11;
  71a93385-61e6-4cb5-a991-5f0adbb94c14["Output\noutfile"];
  11 --> 71a93385-61e6-4cb5-a991-5f0adbb94c14;
  style 71a93385-61e6-4cb5-a991-5f0adbb94c14 stroke:#2c3143,stroke-width:4px;
  12["Generating genotype metadata"];
  10 -->|obs| 12;
  9bf48ec0-faa1-4c89-a961-7900133ea063["Output\noutfile-genotype"];
  12 --> 9bf48ec0-faa1-4c89-a961-7900133ea063;
  style 9bf48ec0-faa1-4c89-a961-7900133ea063 stroke:#2c3143,stroke-width:4px;
  13["Sex_Metadata"];
  11 -->|outfile| 13;
  efe2a20d-550b-492d-8319-226863f44eae["Output\nSex_Metadata"];
  13 --> efe2a20d-550b-492d-8319-226863f44eae;
  style efe2a20d-550b-492d-8319-226863f44eae stroke:#2c3143,stroke-width:4px;
  14["Genotype_metadata"];
  12 -->|outfile| 14;
  4ed21358-26a5-47b5-b381-8bbb6864ad37["Output\nGenotype_metadata"];
  14 --> 4ed21358-26a5-47b5-b381-8bbb6864ad37;
  style 4ed21358-26a5-47b5-b381-8bbb6864ad37 stroke:#2c3143,stroke-width:4px;
  15["Cell_Metadata"];
  13 -->|out_file1| 15;
  14 -->|out_file1| 15;
  0a01a175-e059-493b-b55c-42ffe2500d27["Output\nCell_Metadata"];
  15 --> 0a01a175-e059-493b-b55c-42ffe2500d27;
  style 0a01a175-e059-493b-b55c-42ffe2500d27 stroke:#2c3143,stroke-width:4px;
  16["Manipulate AnnData"];
  7 -->|anndata| 16;
  15 -->|out_file1| 16;
  074a18d5-f112-4105-9b00-bb35dca04df7["Output\nanndata"];
  16 --> 074a18d5-f112-4105-9b00-bb35dca04df7;
  style 074a18d5-f112-4105-9b00-bb35dca04df7 stroke:#2c3143,stroke-width:4px;
  17["Batched_Object"];
  16 -->|anndata| 17;
  9b3a5fd2-0bb8-441f-8c1f-f7a2164ffe0a["Output\nBatched_Object"];
  17 --> 9b3a5fd2-0bb8-441f-8c1f-f7a2164ffe0a;
  style 9b3a5fd2-0bb8-441f-8c1f-f7a2164ffe0a stroke:#2c3143,stroke-width:4px;
  18["Inspect AnnData"];
  17 -->|anndata| 18;
  70b56d09-986f-4fa7-837a-54ebabc48117["Output\nobs-final"];
  18 --> 70b56d09-986f-4fa7-837a-54ebabc48117;
  style 70b56d09-986f-4fa7-837a-54ebabc48117 stroke:#2c3143,stroke-width:4px;

Inputs

Input Label
Input dataset Sample 1
Input dataset Sample 2
Input dataset Sample 3
Input dataset Sample 4
Input dataset Sample 5
Input dataset Sample 6
Input dataset Sample 7

Outputs

From Output Label
toolshed.g2.bx.psu.edu/repos/iuc/anndata_manipulate/anndata_manipulate/0.10.9+galaxy1 Manipulate AnnData Combined_Object
toolshed.g2.bx.psu.edu/repos/iuc/anndata_inspect/anndata_inspect/0.10.9+galaxy1 Inspect AnnData
toolshed.g2.bx.psu.edu/repos/iuc/anndata_inspect/anndata_inspect/0.10.9+galaxy1 Inspect AnnData
toolshed.g2.bx.psu.edu/repos/iuc/anndata_inspect/anndata_inspect/0.10.9+galaxy1 Inspect AnnData
toolshed.g2.bx.psu.edu/repos/bgruening/text_processing/tp_replace_in_column/9.5+galaxy0 Replace Text Generating sex metadata
toolshed.g2.bx.psu.edu/repos/bgruening/text_processing/tp_replace_in_column/9.5+galaxy0 Replace Text Generating genotype metadata
Cut1 Cut Sex_Metadata
Cut1 Cut Genotype_metadata
Paste1 Paste Cell_Metadata
toolshed.g2.bx.psu.edu/repos/iuc/anndata_manipulate/anndata_manipulate/0.10.9+galaxy1 Manipulate AnnData
toolshed.g2.bx.psu.edu/repos/iuc/anndata_manipulate/anndata_manipulate/0.10.9+galaxy1 Manipulate AnnData Batched_Object
toolshed.g2.bx.psu.edu/repos/iuc/anndata_inspect/anndata_inspect/0.10.9+galaxy1 Inspect AnnData

Tools

Tool Links
Cut1
Paste1
toolshed.g2.bx.psu.edu/repos/bgruening/text_processing/tp_replace_in_column/9.5+galaxy0 View in ToolShed
toolshed.g2.bx.psu.edu/repos/iuc/anndata_inspect/anndata_inspect/0.10.9+galaxy1 View in ToolShed
toolshed.g2.bx.psu.edu/repos/iuc/anndata_manipulate/anndata_manipulate/0.10.9+galaxy1 View in ToolShed

To use these workflows in Galaxy you can either click the links to download the workflows, or you can right-click and copy the link to the workflow which can be used in the Galaxy form to import workflows.

Importing into Galaxy

Below are the instructions for importing these workflows directly into your Galaxy server of choice to start using them!
Hands On: Importing a workflow
  1. Click on galaxy-workflows-activity Workflows in the Galaxy activity bar (on the left side of the screen, or in the top menu bar of older Galaxy instances). You will see a list of all your workflows
  2. Click on galaxy-upload Import at the top-right of the screen
  3. Provide your workflow
    • Option 1: Paste the URL of the workflow into the box labelled “Archived Workflow URL”
    • Option 2: Upload the workflow file in the box labelled “Archived Workflow File”
  4. Click the Import workflow button

Below is a short video demonstrating how to import a workflow from GitHub using this procedure:

Video: Importing a workflow from URL

Version History

Version Commit Time Comments
2 4df043553 2025-03-26 16:18:20 update histories and workflow and make links sustainable
1 128b60c98 2025-03-20 10:51:24 add name info

For Admins

Installing the workflow tools

wget https://training.galaxyproject.org/training-material/topics/single-cell/tutorials/scrna-case_alevin-combine-datasets/workflows/Combining_single_cell_datasets_after_pre-processing.ga -O workflow.ga
workflow-to-tools -w workflow.ga -o tools.yaml
shed-tools install -g GALAXY -a API_KEY -t tools.yaml
workflow-install -g GALAXY -a API_KEY -w workflow.ga --publish-workflows