A Python library to find the position on the human Y chromosome tree given a set of single nucleotide polymorphisms (SNPs).
pip install yclade
import yclade
snp_string = "M215+, BY61636-, FTF15749-, TY15744-"
yclade.find_clade(snp_string)
python -m yclade "M215+, BY61636-, FTF15749-, TY15744-"
You can also use a file with the SNPs:
python -m yclade -f snps.txt
The Y tree data is from YFull and is shared under the Creative Commons Attribution 4.0 International Public License.
The code has been tested on SNP data obtained from YSEQ test results.
Inspiration has also been drawn from clade-finder.