libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
fastaoutputstream.cpp
Go to the documentation of this file.
1
2
/*******************************************************************************
3
* Copyright (c) 2015 Olivier Langella <Olivier.Langella@moulon.inra.fr>.
4
*
5
* This file is part of the PAPPSOms++ library.
6
*
7
* PAPPSOms++ is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU General Public License as published by
9
* the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* PAPPSOms++ is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU General Public License
18
* along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
19
*
20
* Contributors:
21
* Olivier Langella <Olivier.Langella@moulon.inra.fr> - initial API and
22
*implementation
23
******************************************************************************/
24
#include "
fastaoutputstream.h
"
25
26
namespace
pappso
27
{
28
FastaOutputStream::FastaOutputStream
(QTextStream &otxtstream)
29
: m_ofastastream(otxtstream)
30
{
31
}
32
33
FastaOutputStream::~FastaOutputStream
()
34
{
35
}
36
37
void
38
FastaOutputStream::writeProtein
(
const
Protein
&protein)
39
{
40
41
m_ofastastream
<<
">"
<< protein.
getAccession
() <<
" "
42
<< protein.
getDescription
() << Qt::endl;
43
m_ofastastream
<< protein.
getSequence
() << Qt::endl;
44
}
45
46
}
// namespace pappso
pappso::FastaOutputStream::FastaOutputStream
FastaOutputStream(QTextStream &otxtstream)
Definition
fastaoutputstream.cpp:28
pappso::FastaOutputStream::~FastaOutputStream
~FastaOutputStream()
Definition
fastaoutputstream.cpp:33
pappso::FastaOutputStream::writeProtein
void writeProtein(const Protein &protein) override
Definition
fastaoutputstream.cpp:38
pappso::FastaOutputStream::m_ofastastream
QTextStream & m_ofastastream
Definition
fastaoutputstream.h:37
pappso::Protein
Definition
protein.h:50
pappso::Protein::getAccession
const QString & getAccession() const
Definition
protein.cpp:127
pappso::Protein::getDescription
const QString & getDescription() const
Definition
protein.cpp:137
pappso::Protein::getSequence
const QString & getSequence() const
Definition
protein.cpp:122
fastaoutputstream.h
pappso
tries to keep as much as possible monoisotopes, removing any possible C13 peaks and changes multichar...
Definition
aa.cpp:39
pappsomspp
fasta
fastaoutputstream.cpp
Generated on Fri Jul 19 2024 14:40:15 for libpappsomspp by
1.12.0