hi every one:

i read fastq file and save them as fasta
but falied

fastqfile="unmapped"
library(ShortRead)
reads <- readFastq(fastqfile)
seqs <- sread(reads)
ids <- id(reads)

writeFasta(seqs, file="unmapped.fa")
Error in function (classes, fdef, mtable)  :
  unable to find an inherited method for function "writeFasta", for
signature "DNAStringSet"

writeFASTA(seqs, file="unmapped.fa")
Error in for (rec in x) { : invalid for() loop sequence

what is the problem
thank you

shan gao

	[[alternative HTML version deleted]]

