[BioC] R: how to use writeFASTA in modality "append"

Steve Lianoglou mailinglist.honeypot at gmail.com
Thu Jul 16 17:43:55 CEST 2009


Hi,

> I have the 3UTR sequence and the description in separated variables.
> How can I generate  a list with the two elements $seq and $desc as  
> expected by writeFASTA ?

Let's say your var names that hold the data are: seqs and descs:

fasta.list <- lapply(seq(seqs), function (i) list(seq=seqs[[i]],  
desc=descs[[i]]))

I think that should work, no?

-steve

--
Steve Lianoglou
Graduate Student: Physiology, Biophysics and Systems Biology
Weill Medical College of Cornell University

Contact Info: http://cbio.mskcc.org/~lianos/contact



More information about the Bioconductor mailing list