/** * @return The set of sample names for all genotypes in this context, in their natural ordering (A, B, C) */ public List<String> getSampleNamesOrderedByName() { ensureSampleOrdering(); return sampleNamesInOrder; }
/** * @return The set of sample names for all genotypes in this context, in their natural ordering (A, B, C) */ public List<String> getSampleNamesOrderedByName() { ensureSampleOrdering(); return sampleNamesInOrder; }
@Override protected synchronized void ensureSampleOrdering() { if ( ! loaded ) { decode(); // will load up all of the necessary data } else { super.ensureSampleOrdering(); } }
@Override protected synchronized void ensureSampleOrdering() { if ( ! loaded ) { decode(); // will load up all of the necessary data } else { super.ensureSampleOrdering(); } }
/** * @return The set of sample names for all genotypes in this context, in their natural ordering (A, B, C) */ @Ensures("result != null") public List<String> getSampleNamesOrderedByName() { ensureSampleOrdering(); return sampleNamesInOrder; }
@Override protected synchronized void ensureSampleOrdering() { if ( ! loaded ) { decode(); // will load up all of the necessary data } else { super.ensureSampleOrdering(); } }
@Override public LazyGenotypesContext.LazyData parse(final Object data) { GenotypesContext gc = GenotypesContext.copy((List<Genotype>)data); gc.ensureSampleNameMap(); gc.ensureSampleOrdering(); return new LazyGenotypesContext.LazyData(gc.notToBeDirectlyAccessedGenotypes, gc.sampleNamesInOrder, gc.sampleNameToOffset); }