You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Essentially, when the data going into write.dna is of the DNAbin class, the output dnabin.fasta file is nicely formatted.
Reproducible example:
# This produces a fasta file with nicely formatted sequences
dnabin_sequences <- ape::read.GenBank(c("JF806202", "HM161150", "FJ356743"))
ape::write.dna(dnabin_sequences,
file ="dnabin.fasta",
format = "fasta")
When the data going into write.dna is a list of sequences, the file test_fasta contains sequences that are not broken apart with spaces, and they cut off after 10 bases. I played around with the arguments, and the closest I got was setting the colw argument to some absurdly large value so that the entire sequences were included.
# This produces a fasta file without separation, and it cuts off the sequences
list_sequences <- list("ggaggccatagagcagatgctgaggtgatagatggaacatga",
"ggaggccatagagcagatgctgaggtgatagatggaacatga",
"ggaggccatagagcagatgctgaggtgatagatggaacatga")
ape::write.dna(list_sequences,
file ="test.fasta",
format = "fasta")
The text was updated successfully, but these errors were encountered:
Essentially, when the data going into write.dna is of the DNAbin class, the output dnabin.fasta file is nicely formatted.
Reproducible example:
When the data going into write.dna is a list of sequences, the file test_fasta contains sequences that are not broken apart with spaces, and they cut off after 10 bases. I played around with the arguments, and the closest I got was setting the colw argument to some absurdly large value so that the entire sequences were included.
The text was updated successfully, but these errors were encountered: