SHORE API
Main Page
Namespaces
Classes
Files
File List
File Members
SHORE API
Namespaces
Classes
Files
File List
shore
algo
base
container
datatype
fmtio
alignment.hpp
aln.hpp
bed.hpp
eland.hpp
fasta.hpp
fastq.hpp
flatread.hpp
gff.hpp
maplist.hpp
mummer.hpp
psl.hpp
qseq.hpp
read.hpp
refdict.hpp
sam.hpp
segment.hpp
sff.hpp
text.hpp
vcf.hpp
parallel
processing
program
statistics
stream
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
bed.hpp
Go to the documentation of this file.
1
2
/*
3
* Copyright 2008,2009,2010,2011,2012 Stephan Ossowski, Korbinian Schneeberger,
4
* Felix Ott, Joerg Hagmann, Alf Scotland, Sebastian Bender
5
*
6
* This file is part of SHORE.
7
*
8
* SHORE is free software: you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation, either version 3 of the License, or
11
* (at your option) any later version.
12
*
13
* SHORE is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public License
19
* along with SHORE. If not, see <http://www.gnu.org/licenses/>.
20
*/
21
25
26
#ifndef SHORE_IO_BED_HPP__
27
#define SHORE_IO_BED_HPP__
28
29
#include <string>
30
31
#include "
shore/processing/pipeline.hpp
"
32
#include "
shore/datatype/alignment_string_ops.hpp
"
33
#include "
shore/datatype/datatypes.hpp
"
34
#include "
shore/stream/streams.hpp
"
35
36
namespace
shore {
37
39
class
bed_writer
40
{
41
private
:
42
43
shore::ostreams
m_os;
44
shore::alignment_helper
m_ah;
45
46
public
:
47
48
typedef
shore::alignment
append_type
;
49
50
bed_writer
(
const
std::string &fn);
51
52
void
append(
const
shore::alignment
&f);
53
54
void
flush();
55
};
56
58
typedef
shore::sink<bed_writer>
bed_sink
;
59
61
class
bedgraph_writer
62
{
63
private
:
64
65
shore::ostreams
m_os;
66
bool
m_negate_reversescores;
67
68
public
:
69
70
typedef
shore::coverage
append_type
;
71
72
bedgraph_writer
(std::ostream *
const
os,
const
bool
negate_rev=
false
);
73
bedgraph_writer
(
const
std::string &fn,
const
bool
negate_rev=
false
);
74
75
void
append(
const
shore::coverage
&f);
76
void
append(
const
shore::annotation_entry
&f);
77
78
void
flush();
79
};
80
82
typedef
shore::sink<bedgraph_writer>
bedgraph_sink
;
83
84
}
// namespace
85
86
#endif // SHORE_IO_BED_HPP__
87
shore
fmtio
bed.hpp
Generated on Thu Jun 20 2013 15:49:38 for SHORE API by
1.8.4