# FTDNA BAM to T2T pileup and haplogroup

**URL:** <https://help.galaxyproject.org/t/ftdna-bam-to-t2t-pileup-and-haplogroup/12407>\
**Category:** usegalaxy.org.au support\
**Tags:** workflow, variant-analysis\
**Created:** [May 6, 2024, 11:16am UTC](https://help.galaxyproject.org/t/ftdna-bam-to-t2t-pileup-and-haplogroup/12407 "2024-05-06T11:16:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stuart\_Nettleton](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/stuart_nettleton/32/5511_2.png) [@Stuart\_Nettleton](https://help.galaxyproject.org/u/Stuart_Nettleton)\
**Post date:** [May 6, 2024, 11:16am UTC](https://help.galaxyproject.org/t/ftdna-bam-to-t2t-pileup-and-haplogroup/12407/1 "2024-05-06T11:16:33Z")

</div>

Hi … I’m hoping for some guidance on the workflow for T2T mapping a FTDNA BigY BAM with the DF27-based CM034974.1 … and taking this through to pileup and metagenomic haplogroup … as a newbie I’ve been experimenting a lot without developing a way forward using usegalaxy, samtools (directly with the Ydna DF27-based CM034974.1) and Yleaf … in usegalaxy at the moment I have a FTDNA BAM converted to fastq and applied Bowtie2 and usegalaxy’s Chm13\_T2T\_v2.0 reference to map a new BAM and a convert this to BED… now I’m stuck trying to get a pileup because there appears to be no reference genome available (which might possibly be the Ydna J1-based CP086569.1 that goes with usegalaxy’s Chm13\_T2T\_v2.0) … ideally I’d like to combine calls against all three of CM034974.1, CP086569.1 and H38 reference genomes … so I’m hoping for some guidance on the next steps for a pileup and how to use it for haplogroup identification … 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:** [May 6, 2024, 6:32pm UTC](https://help.galaxyproject.org/t/ftdna-bam-to-t2t-pileup-and-haplogroup/12407/2 "2024-05-06T18:32:57Z")

</div>

> [@Stuart\_Nettleton](#):
>
> now I’m stuck trying to get a pileup because there appears to be no reference genome available

If you are using the tool **Samtools mpileup** , then the tool form interprets the assigned **database** of the inputs to offer up the correct built-in fasta index. You can also use a custom genome fasta from the history instead.

I’m not sure if the T2T assembly is indexed or not for this tool at the AU server but you could check by selecting a dataset that has that database assigned (or is that what you have done?).

→ If you mapped against that genome as a native index, the database key should already be assigned.  
 → If you mapped against a custom genome fasta, you would need to create the custom build, then assign it to datasets with data points associated with that assembly.  
 → Never assign a server indexed database key when using a custom genome unless you know that the two reference genomes are _exactly_ the same: bases and identifiers. But if they are exactly the same, then the question of why to use a fasta from the history at all to start with comes up…

I just wrote up some help for another question that explains a bit about how the custom genome and custom build functions work in Galaxy, so I’ll repost that here since it probably also applies to your use case:

> [@Make a suitable RefSeq for FreeBayes from self-mapped sequence.](https://help.galaxyproject.org/t/make-a-suitable-refseq-for-freebayes-from-self-mapped-sequence/12406/2):
>
> Fasta files have a specific format. This is an older FAQ but still has useful details. There are many other references for the format online too.
> 
> → [Datatypes - Galaxy Community Hub](https://galaxyproject.org/learn/datatypes/#fasta)
> 
> To use a fasta file as a reference target, you can use it directly from the history just like the other inputs. This is named a “custom genome” in Galaxy (but could also be a transcriptome or exome). If you need a **database** metadata key, you can create one for your custom genome, and that is called a “custom build”. You’ll be able to assign that to datasets, and some tools will interpret it.
> 
> → [FAQ: How to use Custom Reference Genomes?](https://training.galaxyproject.org/training-material/faqs/galaxy/reference_genomes_custom_genomes.html)

* * *

* * *

I also have another guide here that covers some of the complexities of working with human genomes from different sources. You may need it now, or maybe later as a reference.

→ [Reference genomes at public Galaxy servers: GRCh38/hg38 example](https://help.galaxyproject.org/docs?topic=11616)

* * *

For this part

> [@Stuart\_Nettleton](#):
>
> ideally I’d like to combine calls against all three of CM034974.1, CP086569.1 and H38 reference genomes

This sounds like you want a custom genome that contains all of those genomes. You’ll have some trouble with this due to sequence duplications between the difference references, the exposed telemore and repetitive regions in the T2T assemblies themselves, then the really massive size of the fasta itself (jobs against this reference are likely to hit processing limitations – possibly with the variant calling tools themselves!). Also, I’m not sure if that will give you the scientific results you are after, so I am probably misunderstanding!

Instead, you’ll probably want to call variants against each reference separately, then compare those calls across assemblies. UCSC has some reference-to-reference mapping data available: most of the annotation tracks that you see in their browser are from that “liftover” process, and the files are in the Table browser or their downloads area. Maybe review that (or ask them if you can’t find it), then learn which specific assemblies they used, then also call your reference-specific variants against those same exact assemblies to facilitate the mapping over of your results.

So … I can think of a few ways to approach this but it would be better to find a publication that has attempted this already, learn the methods, then adopt those to your own novel data as a starting place. Then tune.

We don’t have a tutorial for anything human T2T related yet (or I missed it and someone can correct me!), but you can still review the other variant calling guides to get an idea of the usual pathway for that part. And, you might want to switch up your target genomes to match what UCSC is hosting for the reference-to-reference mapping part, and use the custom genome/build functions.

If you plan on incorporating any annotation (dbSNP, gene bounds), I would suggest getting that organized at the very start too. Why? Variant calling is super sensitive to the content of a particular assemblies base positions plus how the data is pre-filtered, the read quality, potential filtering for regions of interest when mapping, and more that you probably already know! You’ll want to eliminate simple data conflicts when exploring new methods to avoid weird technical errors or “wrong” scientific results (not so easy to detect sometimes, and usually at some downstream step after a lot of investment in pre-processing, that then needs to be redone).

→ [https://training.galaxyproject.org/](https://training.galaxyproject.org/)

* * *

Overall, I think the immediate problem is some reference genome mix-up or labeling problem but if the **CHM13\_T2T\_v2.0** assembly is actually not available in the pileup tool that you are using, and you still want to use that specific assembly, let us know which exact tool and that can probably be adjusted.

We’ll need the full tool name and version is at the very top of the tool form. Then I’ll confirm and we can ask the AU admin’s here for the correction request (_if_ they think the tool can actually handle the processing!). You could also check to see if the EU server already has it already has it or not - they have the largest clusters of the three UseGalaxy servers.

Let’s start there and thanks for sharing all of your details. Very helpful! 🙂

---

<div class="post-metadata">

**Author:** ![Stuart\_Nettleton](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/stuart_nettleton/32/5511_2.png) [@Stuart\_Nettleton](https://help.galaxyproject.org/u/Stuart_Nettleton)\
**Post date:** [May 7, 2024, 12:25am UTC](https://help.galaxyproject.org/t/ftdna-bam-to-t2t-pileup-and-haplogroup/12407/3 "2024-05-07T00:25:25Z")

</div>

jennaj … thanks for a great set of things to check … I’ll get onto it asap and let you know … cheers!

---

<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:** [September 25, 2025, 8:58pm UTC](https://help.galaxyproject.org/t/ftdna-bam-to-t2t-pileup-and-haplogroup/12407/4 "2025-09-25T20:58:20Z")

</div>



---

<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:** [September 25, 2025, 9:00pm UTC](https://help.galaxyproject.org/t/ftdna-bam-to-t2t-pileup-and-haplogroup/12407/5 "2025-09-25T21:00:14Z")

</div>

Update! See our guide for more about human genomes, including advice for working with T2T assemblies.

🚀 → [Reference genomes at public Galaxy servers: GRCh38/hg38 example](https://help.galaxyproject.org/t/reference-genomes-at-public-galaxy-servers-grch38-hg38-example/11616)
