[Bioc-sig-seq] .gff from AlignedRead
Martin Morgan
mtmorgan at fhcrc.org
Sat Mar 20 00:51:12 CET 2010
On 03/19/2010 03:46 PM, joseph wrote:
> Hi
> is there a way to export a gff file from an AlignedRead object as it is done from coverage?
rtracklayer::export takes a RangedData object. You can create a
RangedData object from an AlignedRead object is a line or so of code,
along the lines of
library(ShortRead)
example(readAligned)
rd = RangedData(IRanges(position(aln3), width=width(aln3)),
space=chromosome(aln3))
(and maybe other columns) and then
library(rtracklayer)
export(rd, "my.gff3")
Martin
> Thanks
> Joseph
>
>
>
>
> [[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
--
Martin Morgan
Computational Biology / Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N.
PO Box 19024 Seattle, WA 98109
Location: Arnold Building M1 B861
Phone: (206) 667-2793
More information about the Bioc-sig-sequencing
mailing list