R write alignment MSA
0
0
Entering edit mode
4.1 years ago
TEman ▴ 10

Hi all,

I read a clustal .aln file using the read.alignment function of the Seqinr package, modified the matrix, and now want to write the alignment object to a clustal .aln file format again. However, I do not find such a function.

Any suggestions?

R alignment • 3.4k views
ADD COMMENT
2
Entering edit mode

Suggestion 1 (faster): save alignment to fasta file with write.fasta() and convert fasta to clustal with, e.g., readseq or seqret.

Suggestion 2 (uncertain): I think the phangorn package can convert the seqinr object to a phyDat object, which could then be saved as a clustal alignment.

ADD REPLY

Login before adding your answer.

Traffic: 1116 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6