public final class NSequenceWithQuality extends SequenceWithQuality<NucleotideSequence> implements NSeq<NSequenceWithQuality>, MultiNSequenceWithQuality
SequenceWithQuality,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static NSequenceWithQuality |
EMPTY |
| Constructor and Description |
|---|
NSequenceWithQuality(NucleotideSequence sequence) |
NSequenceWithQuality(NucleotideSequence sequence,
byte quality) |
NSequenceWithQuality(NucleotideSequence sequence,
SequenceQuality quality)
Creates nucleotide sequence with its quality
|
NSequenceWithQuality(String sequence) |
NSequenceWithQuality(String sequence,
String quality) |
| Modifier and Type | Method and Description |
|---|---|
NSequenceWithQuality |
concatenate(NSequenceWithQuality other)
Returns a concatenation of this and
other sequence (so this will be followed by other in the
result). |
NSequenceWithQuality |
get(int id) |
NSequenceWithQualityBuilder |
getBuilder()
Returns a builder for corresponding seq type.
|
NSequenceWithQuality |
getRange(int from,
int to)
Returns a subsequence of this starting at
from (inclusive) and ending at to (exclusive). |
NSequenceWithQuality |
getRange(Range range)
Returns a subsequence of this bounded by specified
range. |
NSequenceWithQuality |
getReverseComplement()
Returns reverse complement sequence with reversed quality.
|
int |
numberOfSequences() |
equals, getQuality, getSequence, getSubSequence, getSubSequence, hashCode, size, toPrettyString, toStringpublic static final NSequenceWithQuality EMPTY
public NSequenceWithQuality(NucleotideSequence sequence, SequenceQuality quality)
sequence - nucleotide sequencequality - qualityIllegalArgumentException - if sequence.size() != quality.size()public NSequenceWithQuality(String sequence)
public NSequenceWithQuality(NucleotideSequence sequence, byte quality)
public NSequenceWithQuality(NucleotideSequence sequence)
public NSequenceWithQuality getReverseComplement()
getReverseComplement in interface NSeq<NSequenceWithQuality>public int numberOfSequences()
numberOfSequences in interface MultiNSequenceWithQualitypublic NSequenceWithQuality get(int id)
get in interface MultiNSequenceWithQualitypublic NSequenceWithQuality getRange(int from, int to)
Seqfrom (inclusive) and ending at to (exclusive).getRange in interface Seq<NSequenceWithQuality>from - starting point of subsequence (inclusive)to - ending point of subsequence (exclusive)from (inclusive) and ending at to (exclusive)public NSequenceWithQuality getRange(Range range)
Seqrange.getRange in interface Seq<NSequenceWithQuality>range - a range that defines starting (inclusive) and ending (exclusive) points of subsequencerange.public NSequenceWithQualityBuilder getBuilder()
SeqgetBuilder in interface Seq<NSequenceWithQuality>public NSequenceWithQuality concatenate(NSequenceWithQuality other)
Seqother sequence (so this will be followed by other in the
result).concatenate in interface Seq<NSequenceWithQuality>other - other sequenceother sequencesCopyright © 2018. All rights reserved.