# Assigning Clades from SNPs

**URL:** <https://nextstrain.discourse.group/t/assigning-clades-from-snps/1366>\
**Category:** General\
**Created:** [April 17, 2023, 7:44am UTC](https://nextstrain.discourse.group/t/assigning-clades-from-snps/1366 "2023-04-17T07:44:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NyxMoiren](https://avatars.discourse-cdn.com/v4/letter/n/da6949/32.png) [@NyxMoiren](https://nextstrain.discourse.group/u/NyxMoiren)\
**Post date:** [April 17, 2023, 7:44am UTC](https://nextstrain.discourse.group/t/assigning-clades-from-snps/1366/1 "2023-04-17T07:44:42Z")

</div>

I want to assign clades (and subclades) to my bacterial sequence data. All of these motifs are SNP on the chromosome. In the documentation, specification on clades is done with AA-changes - is this also possible with nucleotides?  
My clades are pretty static (since it is a monophyletic organism B. anthracis).

Can I define clades by SNP status when I give these SNPs ? (like in the CanSNPer algorithm)

Input files would look like this:

```auto
#SNP	Organism	Reference	Strain	Position	Derived_base	Ancestral_base
A.Br.001	Bacillus_anthracis	VanErt2007	Ames	182106	C	T
A.Br.002	Bacillus_anthracis	VanErt2007	Ames	947759	T	G
A.Br.003	Bacillus_anthracis	VanErt2007	Ames	1493157	C	T
A.Br.004	Bacillus_anthracis	VanErt2007	Ames	3600659	C	T
A.Br.006	Bacillus_anthracis	VanErt2007	Ames	162509	A	C
A.Br.007	Bacillus_anthracis	VanErt2007	Ames	266439	G	A
A.Br.008	Bacillus_anthracis	VanErt2007	Ames	3947248	C	A
A.Br.009	Bacillus_anthracis	VanErt2007	Ames	2589823	G	A
B.Br.001	Bacillus_anthracis	VanErt2007	Ames	1455279	G	A
B.Br.002	Bacillus_anthracis	VanErt2007	Ames	1056740	A	C
B.Br.003	Bacillus_anthracis	VanErt2007	Ames	1494269	A	G
B.Br.004	Bacillus_anthracis	VanErt2007	Ames	69952	C	T
A/B.Br.001	Bacillus_anthracis	VanErt2007	Ames	3697886	A	G

```

There are also SNP typing PCRs for these SNPs - is it possible to automatically link this PCR-primers?

So e.q.: Found an isolate in Bavaria, Germany, other isolates in Bavaria are B.Br.003 so that it automatically recommends these SNP-PCRs (before sequencing) as what I filtered?

Best regards

---

<div class="post-metadata">

**Author:** ![james](https://yyz1.discourse-cdn.com/flex031/user_avatar/nextstrain.discourse.group/james/32/11_2.png) [@james](https://nextstrain.discourse.group/u/james)\
**Post date:** [April 17, 2023, 7:51am UTC](https://nextstrain.discourse.group/t/assigning-clades-from-snps/1366/2 "2023-04-17T07:51:55Z")

</div>

> In the documentation, specification on clades is done with AA-changes - is this also possible with nucleotides?

Yes this can be done in `augur clades` - there’s some [docs here](https://docs.nextstrain.org/projects/augur/en/stable/faq/clades.html) and we use [nuc mutations](https://github.com/nextstrain/ncov/blob/master/defaults/clades.tsv) to define our SARS-CoV-2 clades.

> There are also SNP typing PCRs for these SNPs - is it possible to automatically link this PCR-primers?

Augur doesn’t consider these, but Nextclade has the ability to identifying mutations in (specified) primer sites. There may be better tools to answer your exact question however.

Best,  
james
