# Choosing datafiles for DESeq2

**URL:** https://help.galaxyproject.org/t/choosing-datafiles-for-deseq2/16553
**Category:** usegalaxy.eu support
**Tags:** select, collections, resources, tool-help, deseq2, tags
**Created:** [December 8, 2025, 4:57pm UTC](https://help.galaxyproject.org/t/choosing-datafiles-for-deseq2/16553 "2025-12-08T16:57:30Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![kate2](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@kate2](https://help.galaxyproject.org/u/kate2)
#### Post date: [December 8, 2025, 4:57pm UTC](https://help.galaxyproject.org/t/choosing-datafiles-for-deseq2/16553/1 "2025-12-08T16:57:30Z")

</div>

Hopefully a simple question. I have been extracting the individual gene count files from a collection containing 3 replicates in order to choose them individually in the factor levels (I’ve been following the the Reference-based RNA-seq analysis tutorial which has them as separate files). However, I noticed that I can instead choose the dataset itself (which contains the individual gene count files from the 3 replicates), will DEseq2 run in the same way?

---

<div class="post-metadata">

### Author: ![jennaj](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/jennaj/32/27_2.png) [@jennaj](https://help.galaxyproject.org/u/jennaj)
#### Post date: [December 8, 2025, 7:36pm UTC](https://help.galaxyproject.org/t/choosing-datafiles-for-deseq2/16553/2 "2025-12-08T19:36:39Z")

</div>

Hi @kate2

DESeq2 expects each sample to have a count file (instead of a [count matrix like Limma accepts](https://galaxyproject.github.io/training-material/topics/transcriptomics/tutorials/rna-seq-reads-to-counts/tutorial.html#create-count-matrix)). You can input those each one-by-one or group your data in a collection with group tags or split into multiple collections.

Collections are very powerful! This means you choose any of these ways to input the data and have the same result

- **multiple-file select** → individual datasets listed in the history. One dataset per sample.

 ![select-1-multiple](https://us1.discourse-cdn.com/flex020/uploads/galaxy/original/2X/0/02f2226212fea53fe4395c92a1456ed8ceec4f50.png)

- **collection select** → those same datasets grouped into a Flat List dataset collection folder. Still one dataset per sample. The collections should be organized in way that the datasets can be split out into each _Factor level_.

 ![select-2-collection](https://us1.discourse-cdn.com/flex020/uploads/galaxy/original/2X/f/fff99b2114c17b0aeebb473ba88ee5d2e2a8bf5a.png)

If you processed all the samples together through the upstream steps in a collection (avoids a lot of clicking!), then you can either split out the count files into multiple collections (per factor level) or **even better, apply some group tags** and use those on the form instead.

This is our exact example here for DESe2. → [Hands-on: Group tags for complex experimental designs / Group tags for complex experimental designs / Using Galaxy and Managing your Data](https://training.galaxyproject.org/training-material/topics/galaxy-interface/tutorials/group-tags/tutorial.html#using-group-tags-in-tool-eg-deseq2)

For completeness, you can also use a _count matrix_ with some tools, like Limma, and provide a Factor file to split out conditions/factors. DEseq2 won’t accept a matrix .. but knowing that those same original counts can be used _with both tools_ and are easy to transform seems worth mentioning. → [Hands-on: 2: RNA-seq counts to genes / 2: RNA-seq counts to genes / Transcriptomics](https://galaxyproject.github.io/training-material/topics/transcriptomics/tutorials/rna-seq-counts-to-genes/tutorial.html)

In short, once you have your counts all together in a collection, there is a lot you can do going forward to split the data out for the DE! The tutorial you are following is showing the simplest way to process the data, but it is great that you are exploring the others since that is how you’ll probably be using the tools later on with larger batches of work.

How to confirm?

Review the job **Details** view ([using the i-icon](https://galaxyproject.github.io/training-material/faqs/galaxy/datasets_icons.html)) for the different jobs. The top summary table of inputs will list out what was originally selected and used, and the job **stdout** log will include the data matrix constructed from those inputs (the R data structure). We had a discussion about this last week with some screenshots showing exactly what/where to review. → [Clarification on DESeq2 Factor Level Direction in Galaxy - #2 by jennaj](https://help.galaxyproject.org/t/clarification-on-deseq2-factor-level-direction-in-galaxy/16535/2)

Hopefully this helps, but let us know if it actually does! If I misunderstood, would you please you explain a bit more? Maybe with screenshots? Thanks! 🙂

---

<div class="post-metadata">

### Author: ![kate2](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@kate2](https://help.galaxyproject.org/u/kate2)
#### Post date: [December 9, 2025, 10:10am UTC](https://help.galaxyproject.org/t/choosing-datafiles-for-deseq2/16553/3 "2025-12-09T10:10:13Z")

</div>

Hi @jennaj. Thank you for your comprehensive response which is really helpful - good to know I don’t need to be extracting the individual datasets from the collections! I can see using tags will be really useful.  
Just one further question, if I was using tags, can I specify more than one collection from which they can be chosen? I think probably yes from the use of optional plural on the field note: _“Count file(s) collection”._

---

<div class="post-metadata">

### Author: ![jennaj](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/jennaj/32/27_2.png) [@jennaj](https://help.galaxyproject.org/u/jennaj)
#### Post date: [December 9, 2025, 6:27pm UTC](https://help.galaxyproject.org/t/choosing-datafiles-for-deseq2/16553/4 "2025-12-09T18:27:12Z")

</div>

> [@kate2](#):
>
> Just one further question, if I was using tags, can I specify more than one collection from which they can be chosen?

The tool is expecting all of the files to be inside the same single collection.

But, if you currently have two or more collection, it is easy to rearrange the data, and exact copies are just clones (do not consume any extra quota space). See the **Collection Operations** tools. You would likely be using **Merge Collections** and what each does is down on the tool form in the Help, and we have an overview with some ideas about how to use these manipulations together here. → [Hands-on: Using dataset collections / Using dataset collections / Using Galaxy and Managing your Data](https://galaxyproject.github.io/training-material/topics/galaxy-interface/tutorials/collections/tutorial.html)

In short, your data files each exist on the file system, and a “collection” is a group of _references_ to those files. You are organize these references to optimize how data streams through tools (example: discard failures in large batches and keep going) or is organized for different parameters (example: only the factor groups you care about).

Glad all this is helping and hope this bit does too! 🙂

---

<div class="post-metadata">

### Author: ![jennaj](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/jennaj/32/27_2.png) [@jennaj](https://help.galaxyproject.org/u/jennaj)
#### Post date: [April 30, 2026, 10:27pm UTC](https://help.galaxyproject.org/t/choosing-datafiles-for-deseq2/16553/5 "2026-04-30T22:27:02Z")

</div>


