Esempio n. 1
0
QByteArray DeBruijnNode::getFasta() const
{
    QByteArray fasta = ">";
    fasta += getNodeNameForFasta();
    fasta += "\n";
    fasta += AssemblyGraph::addNewlinesToSequence(m_sequence);
    return fasta;
}
Esempio n. 2
0
QByteArray DeBruijnNode::getFastaNoNewLinesInSequence() const
{
    QByteArray fasta = ">";

    fasta += getNodeNameForFasta();
    fasta += "\n";
    fasta += getSequence();
    fasta += "\n";

    return fasta;
}
Esempio n. 3
0
QByteArray DeBruijnNode::getFasta() const
{
    QByteArray fasta = ">";

    fasta += getNodeNameForFasta();
    fasta += "\n";

    int charactersRemaining = m_sequence.length();
    int currentIndex = 0;
    while (charactersRemaining > 70)
    {
        fasta += m_sequence.mid(currentIndex, 70);
        fasta += "\n";
        charactersRemaining -= 70;
        currentIndex += 70;
    }
    fasta += m_sequence.mid(currentIndex);
    fasta += "\n";

    return fasta;
}