Class
GffStream
High-level GFF/GTF I/O class.
The GffStream class allows to read and write GTF and GFF files.
Include Headers
seqan/gff_io.h
Remarks
Note that the class GffStream allows to read both GFF 2, 3, and GTF.
For writing, only GFF 3 and GTF are supported.
Data Members
File format to use for writing. | |
The names of the sequences (StringSet of CharString), updated when new sequences are seen in GFF file. |
Member Functions
Constructor. |
Functions
Add the name of a sequence to a GffStream. | |
Query a GffStream for being at the end of the file. | |
Closes a GffStream | |
Flush to a GffStream | |
Query a GffStream for errors. | |
Open a GffStream. | |
Read a record from a GffStream | |
Write a record to a GffStream |
Examples
The following example demonstrates reading a GFF file and printing the annotation locations.
File "gff_stream_read.cpp"
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
11 | |
12 | |
13 | |
14 | |
15 | |
16 | |
17 | |
18 | |
19 | |
20 | |
21 | |
22 | |
23 | |
24 | |
25 | |
26 | |
27 | |
28 | |
29 | |
30 | |
31 | |
32 | |
33 | |
34 | |
35 | |
36 | |
37 | |
38 | |
39 | |
40 | |
41 |
See Also
SeqAn - Sequence Analysis Library - www.seqan.de