public final class FastqBuilder extends Object
Modifier and Type | Field and Description |
---|---|
static FastqVariant |
DEFAULT_VARIANT
Default FASTQ sequence format variant,
FastqVariant.FASTQ_SANGER . |
Constructor and Description |
---|
FastqBuilder()
Create a new FASTQ formatted sequence builder.
|
Modifier and Type | Method and Description |
---|---|
FastqBuilder |
appendQuality(String quality)
Return this FASTQ formatted sequence builder configured with the specified quality scores
appended to its current quality scores.
|
FastqBuilder |
appendSequence(String sequence)
Return this FASTQ formatted sequence builder configured with the specified sequence
appended to its current sequence.
|
Fastq |
build()
Build and return a new FASTQ formatted sequence configured from the properties of this builder.
|
String |
getDescription()
Return the description for this FASTQ formatted sequence builder.
|
boolean |
sequenceAndQualityLengthsMatch()
Return true if the sequence and quality scores for this FASTQ formatted sequence builder are equal in length.
|
FastqBuilder |
withDescription(String description)
Return this FASTQ formatted sequence builder configured with the specified description.
|
FastqBuilder |
withQuality(String quality)
Return this FASTQ formatted sequence builder configured with the specified quality scores.
|
FastqBuilder |
withSequence(String sequence)
Return this FASTQ formatted sequence builder configured with the specified sequence.
|
FastqBuilder |
withVariant(FastqVariant variant)
Return this FASTQ formatted sequence builder configured with the specified FASTQ sequence format variant.
|
public static final FastqVariant DEFAULT_VARIANT
FastqVariant.FASTQ_SANGER
.public FastqBuilder()
public String getDescription()
public FastqBuilder withDescription(String description)
description
- description for this FASTQ formatted sequence builder, must not be nullpublic FastqBuilder withSequence(String sequence)
sequence
- sequence for this FASTQ formatted sequence builder, must not be nullpublic FastqBuilder appendSequence(String sequence)
sequence
- sequence to append to the sequence for this FASTQ formatted sequence builder, must not be nullpublic FastqBuilder withQuality(String quality)
quality
- quality scores for this FASTQ formatted sequence builder, must not be nullpublic FastqBuilder appendQuality(String quality)
quality
- quality scores to append to the quality scores for this FASTQ formatted sequence
builder, must not be nullpublic boolean sequenceAndQualityLengthsMatch()
public FastqBuilder withVariant(FastqVariant variant)
variant
- FASTQ sequence format variant for this FASTQ formatted sequence builder, must not be nullpublic Fastq build()
IllegalStateException
- if the configuration of this builder results in an illegal stateCopyright © 2000–2016 BioJava. All rights reserved.