# Generating tx2gene map and filtering for rnaSPAdes (de novo)

**URL:** <https://help.galaxyproject.org/t/generating-tx2gene-map-and-filtering-for-rnaspades-de-novo/17380>\
**Category:** Uncategorized\
**Tags:** transcriptomics\
**Created:** [January 28, 2026, 6:42pm UTC](https://help.galaxyproject.org/t/generating-tx2gene-map-and-filtering-for-rnaspades-de-novo/17380 "2026-01-28T18:42:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chamara\_Lakshitha](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@Chamara\_Lakshitha](https://help.galaxyproject.org/u/Chamara_Lakshitha)\
**Post date:** [January 28, 2026, 6:42pm UTC](https://help.galaxyproject.org/t/generating-tx2gene-map-and-filtering-for-rnaspades-de-novo/17380/1 "2026-01-28T18:42:19Z")

</div>

I am performing _de novo_ transcriptome analysis on a halophyte plant (no reference genome/GTF) using **rnaSPAdes** and **Salmon**.

I need help with two specific steps in Galaxy:

1. **Gene-to-Transcript Map:** How do I generate a `tx2gene` file from rnaSPAdes headers for use in **tximport/DESeq2**?

2. **Filtering:** What tool can filter low-expression transcripts (TPM/FPKM) for rnaSPAdes assemblies, since Trinity-specific scripts are incompatible with the header format?

If anyone has a workflow or a specific tool suggestion for non-Trinity _de novo_ data, I’d appreciate the help!

Thanks!

---

<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:** [January 28, 2026, 10:09pm UTC](https://help.galaxyproject.org/t/generating-tx2gene-map-and-filtering-for-rnaspades-de-novo/17380/2 "2026-01-28T22:09:47Z")

</div>

Welcome @Chamara_Lakshitha

For this question:

> [@Chamara\_Lakshitha](#):
>
> **Gene-to-Transcript Map:** How do I generate a `tx2gene` file from rnaSPAdes headers for use in **tximport/DESeq2**?

In the absence of a reference genome or any other annotation, I can think of two choices.

### Transcript-level differential expression analysis

**rnaSPAdes** doesn’t perform a gene clustering step, so you can get around that by using the transcript again as the “gene”.

The idea is to put the assembly’s transcript identifiers into a two column file where both columns are the transcript identifier, one per line.

Steps

- **Convert FASTA → tabular** (extracts identifiers and sequence)
- Isolate the transcript identifier (first column) with a tool like **Cut**
- Make a copy of that single column dataset with **Copy Datasets** (gear icon in history panel)
- Use **Join two files**
- The result is a tabular two column file with transcript identifiers that match the identifiers in your assembly → this is your `tx2gene`

### Infer transcript groupings for “pseudo-genes” differential expression analysis

We don’t have a Galaxy-specific protocol for this tool, but any applied outside of Galaxy could be performed in Galaxy.

Steps

- **cd-hit** then **Format cd-hit outputs**
- Convert the clustering output to the simple two column format in a similar way as for the first example above
- Use this for the `tx2gene` input

Then for this question

> [@Chamara\_Lakshitha](#):
>
> **Filtering:** What tool can filter low-expression transcripts (TPM/FPKM) for rnaSPAdes assemblies, since Trinity-specific scripts are incompatible with the header format?

Do mean how to parse the raw Salmon result?

If yes, you can use one of the text manipulation **filter** tools to refine which transcripts to retain for the clustering or other downstream steps. There are too many to list here, but try a search with that keyword and you’ll see the “filter a tabular dataset” choices – simple or with regular expressions.

[More about Text Manipulation tools](https://training.galaxyproject.org/training-material/search2?query=olympics).

We hope this helps but please let us know if it actually does. Follow up questions are welcome! 🙂

---

<div class="post-metadata">

**Author:** ![Chamara\_Lakshitha](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@Chamara\_Lakshitha](https://help.galaxyproject.org/u/Chamara_Lakshitha)\
**Post date:** [January 30, 2026, 7:39am UTC](https://help.galaxyproject.org/t/generating-tx2gene-map-and-filtering-for-rnaspades-de-novo/17380/3 "2026-01-30T07:39:05Z")

</div>

Dear @jennaj  
Thank you very much for your invaluable guidance and for taking the time to explain the available options so clearly. It was very helpful.

Following your suggestion, I first ran DESeq2 using a transcript-to-gene map where both columns contained the same transcript IDs generated by Salmon (i.e., treating each transcript as an independent unit). This analysis was completed successfully, and the resulting volcano plot showed a regular and expected shape.

However, I wanted to further refine the analysis and reduce redundancy. Therefore, I clustered isoforms using CD-HIT and generated a new transcript-to-gene map, where the cluster IDs were used as the gene IDs and the corresponding transcript IDs were mapped to each cluster. Using this cluster-based tx2gene file, I re-ran DESeq2. While the workflow ran without errors, the resulting volcano plot did not show the expected pattern.

At this stage, I am exploring ways to further reduce redundancy and noise in order to improve the biological interpretability of the results from my de novo RNA-seq analysis. If you have any additional guidance or best practices on refining this approach (e.g., clustering strategies, filtering thresholds, or alternative summarization methods), I would be very grateful for your advice.

Thank you again for your support.

 ![Plot with same IDs in both columns](https://us1.discourse-cdn.com/flex020/uploads/galaxy/original/2X/3/3b57c864dd9b5c02b0dfd0e2c098f604ab4926a9.png)

 ![Plot with cd-hit generated cluster IDs to transcript ID map](https://us1.discourse-cdn.com/flex020/uploads/galaxy/original/2X/e/e4d43fbe42ebe7519b54ad7d1e45ac1b097bf174.png)

---

<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:** [January 31, 2026, 12:32am UTC](https://help.galaxyproject.org/t/generating-tx2gene-map-and-filtering-for-rnaspades-de-novo/17380/4 "2026-01-31T00:32:26Z")

</div>

Hi @Chamara_Lakshitha

I’ll try to help a tiny bit more with the big disclaimer that we cannot help with data interpretation at this forum. To get feedback from more scientists, you should review the discussions at forums such as [Biostars.org](http://Biostars.org). Many have tried to replace Trinity’s functionality! Then, once you know what you want to do and are unclear about how to perform the step in Galaxy, we can jump in to help you again.

With that context:

The data in your second graphic appears to be over clustered from the high view but in the details it may even be under clustered at the same time! We can’t tell from the graphic alone.

For this one, I may spot a protocol issue

> [@Chamara\_Lakshitha](#):
>
> Using this cluster-based tx2gene file, I re-ran DESeq2.

Did you use your new transcript-gene file with Salmon, too? To recalculate the expression values in the presence of the clustering? If not, I would try that next, mostly to see what happens, but not as a final result.

Big picture considering both

I think you’ll need to also review the clustering parameters closer. If someone else has clustered your species or a similar species before (publication, topic at a forum somewhere) that can help to guide you, and would be important to review. Clustering will likely take several runs until you think the results are meaningful!

Developing a few “truth sets” of transcripts that you know should be all merged into the same genes (not under clustered), and not merged (not over clustered), is probably one of your first goals. Cross-species genome mappings and other types of annotation can be useful additions to layer in. Since your genome is a plant, polyploidy duplications seem important to know about.

So, there isn’t an easy answer! What I can state is that if the transcript clustering changes, you’ll probably want to recalculate the expression values using the updated clustering.

I hope this helps! 🙂

* * *

💡 Bonus: You could put the core tools into a workflow, so you can cluster your data interactively, then push the results into a simple workflow to process the rest without too much clicking. This doesn’t mean starting completely over, instead, you can extract what you already did into a workflow (once you have the tools used in the order that you want to use them for future rounds).

**Workflows** - Extract, then edit, then run the reusable pipeline

- [Hands-on: Galaxy Basics for genomics / Galaxy Basics for genomics / Introduction to Galaxy Analyses](https://training.galaxyproject.org/training-material/topics/introduction/tutorials/galaxy-intro-101/tutorial.html#convert-your-analysis-history-into-a-workflow) (step = convert-your-analysis-history-into-a-workflow)
- [Hands-on: Extracting Workflows from Histories / Extracting Workflows from Histories / Using Galaxy and Managing your Data](https://training.galaxyproject.org/training-material/topics/galaxy-interface/tutorials/history-to-workflow/tutorial.html)
- [Hands-on: Creating, Editing and Importing Galaxy Workflows / Creating, Editing and Importing Galaxy Workflows / Using Galaxy and Managing your Data](https://training.galaxyproject.org/training-material/topics/galaxy-interface/tutorials/workflow-editor/tutorial.html)
