public void extractSamplesTo(Collection<String> samples,DataTable target){
  Set<String> toDelete=new HashSet<>();
  toDelete.addAll(sampleNames);
  toDelete.removeAll(samples);
  target.copy(this);
  target.removeSamples(toDelete);
}

public void extractSamplesTo ( Collection < String > samples , DataTable target ) { Set < String > toDelete = new HashSet < > ( ) ; toDelete . addAll ( sampleNames ) ; toDelete . removeAll ( samples ) ; target . copy ( this ) ; target . removeSamples ( toDelete ) ; }
extract a set of samples to the given target
