# Extract rDNA reads from sequencing reads

**URL:** <https://help.galaxyproject.org/t/extract-rdna-reads-from-sequencing-reads/12052>\
**Category:** usegalaxy.org support\
**Tags:** fasta-manipulation, troubleshooting, bwa\_mem2\
**Created:** [March 29, 2024, 2:21pm UTC](https://help.galaxyproject.org/t/extract-rdna-reads-from-sequencing-reads/12052 "2024-03-29T14:21:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Isa](https://avatars.discourse-cdn.com/v4/letter/i/c68b51/32.png) [@Isa](https://help.galaxyproject.org/u/Isa)\
**Post date:** [March 29, 2024, 2:21pm UTC](https://help.galaxyproject.org/t/extract-rdna-reads-from-sequencing-reads/12052/1 "2024-03-29T14:21:05Z")

</div>

Hello,

I’m working on an internship project involving galaxy, where I need to focus on a specific chromosome sequence. The data I have consists of whole genome NGS reads. Initially, I attempted to map these reads against the reference genome, but converting this file into a FASTA format results in a file larger than 200GB, which is unmanageable. Is there a method to extract this particular region, specifically the rDNA, from the whole genome dataset without encountering this issue?  
Or is there another way to extract the rDNA from the sequencing reads?  
Thanks in advance!

---

<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:** [March 29, 2024, 9:57pm UTC](https://help.galaxyproject.org/t/extract-rdna-reads-from-sequencing-reads/12052/2 "2024-03-29T21:57:40Z")

</div>

Hi @Isa

What reference genome is the chromosome from? Please share the link to the source you plan on using. This will add context so we can help more.

Some suggestions:

1. You could consider mapping against the full genome, then filtering the result for the chromosome of interest.

2. You could also create a custom genome from a single chromosome. Is this what you are having trouble with right now? Do you want to share the history that contains that reference genome and your attempts so far?

Let’s start there, thanks! 🙂

---

<div class="post-metadata">

**Author:** ![Isa](https://avatars.discourse-cdn.com/v4/letter/i/c68b51/32.png) [@Isa](https://help.galaxyproject.org/u/Isa)\
**Post date:** [April 2, 2024, 12:12pm UTC](https://help.galaxyproject.org/t/extract-rdna-reads-from-sequencing-reads/12052/3 "2024-04-02T12:12:02Z")

</div>

Hi,

Again, thanks for your quick response!  
The RefSeq I’m planning on using is chrXII from S. Cerevisiae, because that is where the rDNA is located in S. cerevisiae: [Saccharomyces cerevisiae S288C - NCBI - NLM (nih.gov)](https://www.ncbi.nlm.nih.gov/datasets/taxonomy/559292/)

1. This I already tried, i have mapped it against the full genome, but I don’t understand how i can then filter the results for a specific genome. In this i also doubt whether I used the correct tool, right now I used the BWA-MEM2, but is there maybe another tool moor suitable if i want to extract the chromosome of interest?

2. I think I have this, from the literature I have a RefSeq of chromosome XII from S. cerevisiae, but I don’t really know what I could do with this. Below I shared the history with the reference genome, however due to confidentially I cannot share the previous attempts because this is data is confidential. I hope you can also help me with the data i provided.  
[Galaxy](https://usegalaxy.org/u/isavaro/h/mapping-data-against-reference)

If you have any more questions or need more information so that you can give better advice, let me know! Thanks in advance

---

<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 9, 2024, 7:28pm UTC](https://help.galaxyproject.org/t/extract-rdna-reads-from-sequencing-reads/12052/4 "2024-04-09T19:28:00Z")

</div>

Hi @Isa

**To filter a BAM after mapping** , type this into the tool panel to find choices: **filter bam**. Which mapping tool you use will not matter, as long as the output is a BAM file. You will be filtering on the name of the reference sequence the reads map to, so be sure to use the _exact name_ of that target chromosome (find how that was formatted in the BAM header).

**To create a custom reference genome** , upload a fasta file of the entire genome, or just the chromosome of interest, into a history, and use it as the target with a mapping tool. [Galaxy FAQs](https://training.galaxyproject.org/training-material/faqs/galaxy/#reference%20genomes) for Custom Reference Genome

You can get individual chromosome fasta files for Yeast from UCSC here → [UCSC Genome Browser Downloads](https://hgdownload.soe.ucsc.edu/downloads.html#yeast)

Or, you can filter the fasta you have now with a tool like **Filter FASTA**.

Hope this helps. Everything you are doing is pretty standard, so there are a few ways to do it with different tools and methods, but it is definitely possible and the result will be about the same no matter which you choose.
