[Bioc-sig-seq] how to write a fasta file
Martin Morgan
mtmorgan at fhcrc.org
Mon Sep 26 03:17:03 CEST 2011
On 09/25/2011 04:25 PM, wang peter wrote:
> 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"
Hi,
> library(ShortRead)
> showMethods(writeFasta)
Function: writeFasta (package ShortRead)
object="ShortRead"
so
writeFasta(reads, file="unmapped.fa")
or from ?writeFASTA's section See also:
write.XStringSet(seqs, file="unmapped.fa")
>
> 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]]
>
> _______________________________________________
> Bioc-sig-sequencing mailing list
> Bioc-sig-sequencing at r-project.org
> https://stat.ethz.ch/mailman/listinfo/bioc-sig-sequencing
--
Computational Biology
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N. PO Box 19024 Seattle, WA 98109
Location: M1-B861
Telephone: 206 667-2793
More information about the Bioc-sig-sequencing
mailing list