DReichLab / AdmixTools

Tools test whether admixture occurred and more
178 stars 63 forks source link

how to convert `v54.1.p1_1240K_public.snp` to aligned fasta format data? #104

Open liamxg opened 2 months ago

liamxg commented 2 months ago

Dear @MatthewMah,

Could I know how to convert v54.1.p1_1240K_public.snp to aligned fasta format data? Thanks.

MatthewMah commented 1 month ago

I don't understand what you want to do. This is a list of single nucleotide polymorphisms, positions with reference and alternate allele possibilities. A fasta is a sequence, not aligned.

liamxg commented 1 month ago

Dear @MatthewMah,

I am sorry for the confusion.

can you transfer the snp file to the sequence file, and aligned based on the position?

MatthewMah commented 1 month ago

A SNP file is a series of positions. You take sequencing data and examine it at those positions. There is no sequencing data inherent in the SNP file.

If you want aligned sequencing data, that sounds like you want Sequence Alignment/Map (SAM/BAM/CRAM).

liamxg commented 1 month ago

Dear @MatthewMah,

I want a fasta format file like below:

>sample1
AAA---CCTT
>sample2
---CCTCCTT
>sample3
AAACTCCTT
MatthewMah commented 1 month ago

Then you need to start with sequencing data, not a SNP file.

liamxg commented 1 month ago

could snp transfer to fasta format data?