User:Timothee Flutre/Notebook/Postdoc/2011/11/08
From OpenWetWare
< User:Timothee Flutre | Notebook | Postdoc | 2011 | 11
Main project page Previous entry Next entry
| |
Fasta format in R with Bioconductor
library(Biostrings) # from Bioconductor
dset <- DNAStringSet( c("ATGACG", "TTGAC") )
names(dset) <- c("seq1", "seq2")
write.XStringSet(dset, file="myreads.fa", format="fasta", width=80)
dset[ grep("^seq13$", names(dset)) ]
toString( dset[ grep("^seq13$", names(dset)) ] )
| |



