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

Method toString

src/main/java/com/rtg/vcf/VcfRecord.java:585–613  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

583 }
584
585 @Override
586 public String toString() {
587 final StringBuilder sb = new StringBuilder();
588 sb.append(getSequenceName());
589 sb.append(TAB);
590 sb.append(getOneBasedStart());
591 sb.append(TAB);
592 sb.append(getId());
593 sb.append(TAB);
594 sb.append(getRefCall());
595 sb.append(TAB);
596 sb.append(formatAltField(mAltCalls));
597 sb.append(TAB);
598 sb.append(getQuality());
599 sb.append(TAB);
600 sb.append(formatFilterField(mFilters));
601 sb.append(TAB);
602 sb.append(formatInfoField());
603 validateNumberOfSamples();
604 if (mNumSamples > 0) {
605 sb.append(TAB);
606 sb.append(formatFormatField(getFormatAndSample()));
607 for (int i = 0; i < mNumSamples; ++i) {
608 sb.append(TAB);
609 sb.append(formatSampleField(i, getFormatAndSample()));
610 }
611 }
612 return sb.toString();
613 }
614
615 private static String formatAltField(List<String> altCalls) {
616 if (altCalls.isEmpty()) {

Callers 15

testQualCleanerMethod · 0.95
testNoRedundantAltMethod · 0.95
testOneRedundantAltMethod · 0.95
testPhasingAndPloidyMethod · 0.95
testMethod · 0.95
testMethod · 0.95
testIdCleanerMethod · 0.95
testRegionsMethod · 0.95
testSomaticCaseMethod · 0.95
createInputMethod · 0.95
testDelSvMethod · 0.95
testInvSvMethod · 0.95

Calls 14

getSequenceNameMethod · 0.95
getOneBasedStartMethod · 0.95
getIdMethod · 0.95
getRefCallMethod · 0.95
formatAltFieldMethod · 0.95
getQualityMethod · 0.95
formatFilterFieldMethod · 0.95
formatInfoFieldMethod · 0.95
formatFormatFieldMethod · 0.95
getFormatAndSampleMethod · 0.95
formatSampleFieldMethod · 0.95

Tested by 15

testQualCleanerMethod · 0.76
testNoRedundantAltMethod · 0.76
testOneRedundantAltMethod · 0.76
testPhasingAndPloidyMethod · 0.76
testMethod · 0.76
testMethod · 0.76
testIdCleanerMethod · 0.76
testRegionsMethod · 0.76
testSomaticCaseMethod · 0.76
createInputMethod · 0.76
testDelSvMethod · 0.76
testInvSvMethod · 0.76