<commit_before><commit_msg>Variant position map and reduce view<commit_after>// default samples
// /_design/default/_view/var_pos

function(doc) {
  for (pos_i in doc.BODY){
    pos = doc.BODY[pos_i];
    for (pos_sample_i in pos.samples) {
      pos_sample = pos.samples[pos_sample_i]
      emit([pos.chr,pos.pos,pos.alt],1);
    }
  }
}

// Reduce
function (key, values) {
    return sum(values);
}
{'fraction_non_alphanumeric': 0.145, 'fraction_numerical': 0.0025, 'mean_word_length': 3.4065934065934065, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '464227', 'n_tokens_mistral': 151, 'n_tokens_neox': 148, 'n_words': 29}