Search in sources :

Example 1 with ClonalSequence

use of com.milaboratory.mixcr.basictypes.ClonalSequence in project mixcr by milaboratory.

the class CloneAccumulator method rebuildClonalSequence.

public void rebuildClonalSequence() {
    SequenceQuality newQuality = aggregator.getQuality();
    final NSequenceWithQuality[] updated = new NSequenceWithQuality[sequence.size()];
    int pointer = 0;
    for (int i = 0; i < updated.length; i++) {
        final NucleotideSequence s = this.sequence.get(i).getSequence();
        updated[i] = new NSequenceWithQuality(s, newQuality.getRange(pointer, pointer + s.size()));
        pointer += s.size();
    }
    sequence = new ClonalSequence(updated);
    return;
}
Also used : SequenceQuality(com.milaboratory.core.sequence.SequenceQuality) NSequenceWithQuality(com.milaboratory.core.sequence.NSequenceWithQuality) NucleotideSequence(com.milaboratory.core.sequence.NucleotideSequence) ClonalSequence(com.milaboratory.mixcr.basictypes.ClonalSequence)

Aggregations

NSequenceWithQuality (com.milaboratory.core.sequence.NSequenceWithQuality)1 NucleotideSequence (com.milaboratory.core.sequence.NucleotideSequence)1 SequenceQuality (com.milaboratory.core.sequence.SequenceQuality)1 ClonalSequence (com.milaboratory.mixcr.basictypes.ClonalSequence)1