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

Method setId

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

Sets the variant ID @param id id (or ids) to set @return this, for call chaining

(String... id)

Source from the content-addressed store, hash-verified

183 * @return this, for call chaining
184 */
185 public VcfRecord setId(String... id) {
186 if (id.length == 0) {
187 mId = null;
188 } else if (id.length == 1) {
189 mId = id[0];
190 } else {
191 final StringBuilder ids = new StringBuilder(id[0]);
192 for (int i = 1; i < id.length; ++i) {
193 ids.append(ID_FILTER_AND_INFO_SEPARATOR).append(id[i]);
194 }
195 mId = ids.toString();
196 }
197 return this;
198 }
199
200 /**
201 * @return reference call

Callers 15

testQualCleanerMethod · 0.95
createRecordMethod · 0.95
testNoRedundantAltMethod · 0.95
testOneRedundantAltMethod · 0.95
testPhasingAndPloidyMethod · 0.95
testBrokenPipeMethod · 0.95
testMethod · 0.95
createTestRecordMethod · 0.95
testIdCleanerMethod · 0.95
createTestRecordMethod · 0.95
testIdMethod · 0.95
testMethod · 0.95

Calls 2

appendMethod · 0.65
toStringMethod · 0.65

Tested by 15

testQualCleanerMethod · 0.76
createRecordMethod · 0.76
testNoRedundantAltMethod · 0.76
testOneRedundantAltMethod · 0.76
testPhasingAndPloidyMethod · 0.76
testBrokenPipeMethod · 0.76
testMethod · 0.76
createTestRecordMethod · 0.76
testIdCleanerMethod · 0.76
createTestRecordMethod · 0.76
testIdMethod · 0.76
testMethod · 0.76