<commit_before>#!/bin/bash

##############################################################################
# Step 0:
# Merges per-category predicted rates into single chromosome file, sorted by
# position
##############################################################################

# chr=$1
categ=$1

for i in {1..22}
do
  grep -Fwf  <(grep "\s$i\s" /net/bipolar/jedidiah/mutation/reference_data/DNMs/GoNL_${categ}.txt | cut -f 3)  /net/bipolar/jedidiah/mutation/output/predicted/chr$i.${categ}.txt | awk -v categ="$categ" '{print $0"\t"1"\tcateg"}' >> /net/bipolar/jedidiah/mutation/reference_data/DNMs/GoNL_${categ}.anno.txt
done<commit_msg>Wed Jul 20 13:24:22 2016: annotate dnms<commit_after>#!/bin/bash

##############################################################################
# Step 0:
# Merges per-category predicted rates into single chromosome file, sorted by
# position
##############################################################################

# chr=$1
categ=$1

for i in {1..22}
do
  grep -Fwf  <(grep "\s$i\s" /net/bipolar/jedidiah/mutation/reference_data/DNMs/GoNL_${categ}.txt | cut -f 3)  /net/bipolar/jedidiah/mutation/output/predicted/chr$i.${categ}.txt | awk -v categ="$categ" '{print $0"\t"1"\t"categ}' >> /net/bipolar/jedidiah/mutation/reference_data/DNMs/GoNL_${categ}.anno.txt
done
{'fraction_non_alphanumeric': 0.37253414264036416, 'fraction_numerical': 0.02276176024279211, 'mean_word_length': 6.053475935828877, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2478721', 'n_tokens_mistral': 476, 'n_tokens_neox': 437, 'n_words': 79}