exporting AAstringset as fasta file
1
0
Entering edit mode
20 months ago
Avner • 0

Hi

I have AAstringset which I like to save as multiple alignment FASTA. my goal is to present the amino acid alignment in a clear way.

I tried:

aminoset <- AlignTranslation(DNA_seq_set, type="AAStringSet") #this works great 
writeXStringSet(aminoset ,file="protein Alignment.fa") # this end up in an empty file

Any suggestions?

bioconductor DECIPHER • 663 views
ADD COMMENT
0
Entering edit mode
20 months ago
pgp.martin ▴ 30

For me this works:

library(DECIPHER)
fas <- system.file("extdata", "50S_ribosomal_protein_L2.fas", package="DECIPHER")
dna <- readDNAStringSet(fas)
aminoset <- AlignTranslation(dna, type="AAStringSet")
writeXStringSet(aminoset ,file="proteinAlignment.fa")

The fasta file is not empty

ADD COMMENT

Login before adding your answer.

Traffic: 1821 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