Loading...
Searching...
No Matches
fastaoutputstream.cpp
Go to the documentation of this file.
/*******************************************************************************
* Copyright (c) 2015 Olivier Langella <Olivier.Langella@moulon.inra.fr>.
*
* This file is part of the PAPPSOms++ library.
*
* PAPPSOms++ is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* PAPPSOms++ is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PAPPSOms++. If not, see <http://www.gnu.org/licenses/>.
*
* Contributors:
* Olivier Langella <Olivier.Langella@moulon.inra.fr> - initial API and
*implementation
******************************************************************************/
#include "fastaoutputstream.h"
namespace pappso
{
FastaOutputStream::FastaOutputStream(QTextStream &otxtstream) : m_ofastastream(otxtstream)
{
}
FastaOutputStream::~FastaOutputStream()
{
}
void
FastaOutputStream::writeProtein(const Protein &protein)
{
m_ofastastream << ">" << protein.getAccession() << " " << protein.getDescription() << Qt::endl;
m_ofastastream << protein.getSequence() << Qt::endl;
}
} // namespace pappso
pappso::FastaOutputStream::FastaOutputStream
FastaOutputStream(QTextStream &otxtstream)
Definition fastaoutputstream.cpp:28
pappso::FastaOutputStream::~FastaOutputStream
~FastaOutputStream()
Definition fastaoutputstream.cpp:32
pappso::FastaOutputStream::writeProtein
void writeProtein(const Protein &protein) override
Definition fastaoutputstream.cpp:37
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