Class
BedStream
High-level BED I/O class.
Include Headers
seqan/bed_io.h
Data Members
| The names of the sequences (StringSet of CharString), updated when new sequences are seen in BED file. |
Member Functions
| Constructor. |
Functions
| Add the name of a sequence to a BedStream. | |
| Query a BedStream for being at the end of the file. | |
| Closes a BedStream | |
| Flush to a BedStream | |
| Query a BedStream for errors. | |
| Open a BedStream. | |
| Read a record from a BedStream | |
| Write a record to a BedStream |
Examples
The following example demonstrates reading a BED file and printing the variant locations.
File "bed_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 |
See Also
SeqAn - Sequence Analysis Library - www.seqan.de