@param altCall the next alternate call @return this, for call chaining
(String altCall)
| 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). |