NEFFy
NEFF Calculator and MSA File Converter
Loading...
Searching...
No Matches
MSAWriter Class Referenceabstract

#include <msaWriter.h>

Inheritance diagram for MSAWriter:
MSAWriter_a2m MSAWriter_a3m MSAWriter_aln MSAWriter_clustal MSAWriter_fasta MSAWriter_pfam MSAWriter_sto

Public Member Functions

 MSAWriter (std::vector< Sequence > sequences, std::string file)
 Constructor.
 
void write ()
 Write sequences in the MSA file, based on the format of the output file.
 

Protected Member Functions

virtual void writeFile (std::ofstream &file)=0
 
void generateIdForSequences ()
 Generate IDs for sequences that do not have any ID.
 

Protected Attributes

std::string file
 
std::string fileName
 
std::string format
 
std::vector< SequenceSequences
 
int IDspace
 

Constructor & Destructor Documentation

◆ MSAWriter()

MSAWriter::MSAWriter ( std::vector< Sequence > sequences,
std::string file )

Constructor.

Parameters
sequences
file

Member Function Documentation

◆ generateIdForSequences()

void MSAWriter::generateIdForSequences ( )
protected

Generate IDs for sequences that do not have any ID.

◆ write()

void MSAWriter::write ( )

Write sequences in the MSA file, based on the format of the output file.

Parameters
fileThe output file path to write to.

◆ writeFile()

virtual void MSAWriter::writeFile ( std::ofstream & file)
protectedpure virtual

Member Data Documentation

◆ file

std::string MSAWriter::file
protected

◆ fileName

std::string MSAWriter::fileName
protected

◆ format

std::string MSAWriter::format
protected

◆ IDspace

int MSAWriter::IDspace
protected

◆ Sequences

std::vector<Sequence> MSAWriter::Sequences
protected

The documentation for this class was generated from the following files:
Footer