# Alignment on Reference Database

**URL:** <https://forum.qiime2.org/t/alignment-on-reference-database/10084>\
**Category:** User Support\
**Created:** [June 4, 2019, 12:04pm UTC](https://forum.qiime2.org/t/alignment-on-reference-database/10084 "2019-06-04T12:04:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![TurboQiimer](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/46a35a/32.png) [@TurboQiimer](https://forum.qiime2.org/u/TurboQiimer)\
**Post date:** [June 4, 2019, 12:04pm UTC](https://forum.qiime2.org/t/alignment-on-reference-database/10084/1 "2019-06-04T12:04:35Z")

</div>

SINA alignment action/method does not exist in Qiime2. Could you please introduce another way to do that in Qiime2?

---

<div class="post-metadata">

**Author:** ![colinbrislawn](https://forum.qiime2.org/user_avatar/forum.qiime2.org/colinbrislawn/32/6221_2.png) [@colinbrislawn](https://forum.qiime2.org/u/colinbrislawn)\
**Post date:** [June 4, 2019, 11:12pm UTC](https://forum.qiime2.org/t/alignment-on-reference-database/10084/2 "2019-06-04T23:12:49Z")

</div>

The qiime 2 plugin `fragment-insertion` can be used to make trees:  
[https://library.qiime2.org/plugins/q2-fragment-insertion/16/](https://library.qiime2.org/plugins/q2-fragment-insertion/16/)

Is this what you wanted to do with SINA?

Colin

---

<div class="post-metadata">

**Author:** ![TurboQiimer](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/46a35a/32.png) [@TurboQiimer](https://forum.qiime2.org/u/TurboQiimer)\
**Post date:** [June 5, 2019, 10:08am UTC](https://forum.qiime2.org/t/alignment-on-reference-database/10084/3 "2019-06-05T10:08:54Z")

</div>

Let me give you an example. I was reading a paper written '_Sequences shorter than 300 nucleotides orlonger than 600 nucleotides were also discarded. The unique se-quences were then aligned in mothur by default setting with referring to the pre-aligned mcr Asequences provided by the Fun-gene Pipeline database_'.

I do not need to draw a phylogeny tree. I want only align my sequences with a reference sequences. I found this message in Qiime2 forum:

> [@Q2-alignment: reference based alignment using SINA](https://forum.qiime2.org/t/q2-alignment-reference-based-alignment-using-sina/6220):
>
> construction This is a draft Community Tutorial. construction The command qiime alignment sina may not yet be available in your installation of Qiime2 Comments and suggestions would be greatly appreciateed Aligning sequences to match a reference alignment Background Traditional, de novo methods mututally align a set of unaligned sequences to create a multiple sequence alignment (MSA) from scratch. Re-running these methods with additional sequences will create MSAs with varying numbers of…

I am looking for a plugin/action/ method or tool in Qiime2 to align my sequences (query) with reference sequences. By the way, there is an alignemt option in Qiime2, Maff, but its function is de-novo. it does not align the query on the reference sequences.

> **[mafft: De novo multiple sequence alignment with MAFFT — QIIME 2 2019.4.0...](https://docs.qiime2.org/2019.4/plugins/available/alignment/mafft/)**

Now, can you help me with this details I gave to you?

---

<div class="post-metadata">

**Author:** ![colinbrislawn](https://forum.qiime2.org/user_avatar/forum.qiime2.org/colinbrislawn/32/6221_2.png) [@colinbrislawn](https://forum.qiime2.org/u/colinbrislawn)\
**Post date:** [June 5, 2019, 5:31pm UTC](https://forum.qiime2.org/t/alignment-on-reference-database/10084/4 "2019-06-05T17:31:12Z")

</div>

Yes, thank you for providing me with those details.

The method you cited mentions mothur:

> unique se-quences were then aligned in mothur

mothur uses a reference msa when building feature, and some Qiime 2 plugins like dada2 do not need a reference at all.

If you want to use SINA, that community tutorial is a good place to start. [MAFFT now supports ref based alignments](https://mafft.cbrc.jp/alignment/software/addsequences.html), but those features are not available in the Qiime 2 plugin yet.

* * *

I have another question for you, if you are interested in answering.

> [@TurboQiimer](#):
>
> I do not need to draw a phylogeny tree.

The only time I do MSA is when want a phylogeny tree for UniFrac distances or graphs. Why do you want to do MSA?

Colin

---

<div class="post-metadata">

**Author:** ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)\
**Post date:** [July 6, 2019, 11:31pm UTC](https://forum.qiime2.org/t/alignment-on-reference-database/10084/5 "2019-07-06T23:31:15Z")

</div>

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
