MCPcopy Create free account
hub / github.com/RealTimeGenomics/rtg-tools / addAltCall

Method addAltCall

src/main/java/com/rtg/vcf/VcfRecord.java:223–233  ·  view source on GitHub ↗

@param altCall the next alternate call @return this, for call chaining

(String altCall)

Source from the content-addressed store, hash-verified

221 * @return this, for call chaining
222 */
223 public VcfRecord addAltCall(String altCall) {
224 if (altCall.length() == 0) {
225 throw new VcfFormatException("An empty ALT allele is not permitted");
226 }
227 if (MISSING.equals(altCall)) {
228 throw new VcfFormatException("Attempt to add missing value '.' as explicit ALT allele");
229 } else {
230 mAltCalls.add(altCall);
231 }
232 return this;
233 }
234
235 /**
236 * @return alternate calls (this should be treated as read-only).

Callers 15

testMethod · 0.95
makeRecordMethod · 0.95
testMethod · 0.95
testPreambleAltsMethod · 0.95
testSampleFormatsMethod · 0.95
testMissingMethod · 0.95
testUpdateFormatMethod · 0.95
testMethod · 0.95
testSomaticCaseMethod · 0.95

Calls 3

lengthMethod · 0.65
addMethod · 0.65
equalsMethod · 0.45

Tested by 15

testMethod · 0.76
makeRecordMethod · 0.76
testMethod · 0.76
testPreambleAltsMethod · 0.76
testSampleFormatsMethod · 0.76
testMissingMethod · 0.76
testUpdateFormatMethod · 0.76
testMethod · 0.76
testSomaticCaseMethod · 0.76