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

Method getAllele

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

Get the allele with the specified index @param allele the allele to retrieve @return the allele, or null if allele index is -1 (missing)

(int allele)

Source from the content-addressed store, hash-verified

245 * @return the allele, or null if allele index is -1 (missing)
246 */
247 public String getAllele(int allele) {
248 if (allele > mAltCalls.size()) {
249 throw new VcfFormatException("Invalid allele number " + allele);
250 }
251 return allele == -1 ? null : allele == 0 ? getRefCall() : mAltCalls.get(allele - 1);
252 }
253
254 /**
255 * @return quality

Callers 6

acceptMethod · 0.45
replayAlleleMethod · 0.45
decomposeMethod · 0.45
decomposeMethod · 0.45
decomposeMethod · 0.45
decomposeMethod · 0.45

Calls 3

getRefCallMethod · 0.95
getMethod · 0.65
sizeMethod · 0.45

Tested by

no test coverage detected