<commit_before>#!/bin/bash
if [ $# != 2  ]; then
    echo -e "Need 2 arguments:\n (1) an interaction file\n (2) output dir"
    exit 1
fi
name=`basename $1`;
echo "$2/give_x_$name.bed"
cat $1 |
awk 'BEGIN{FS="\t";OFS="\t"}
    NR>1{
        print 2*(NR-2)+1,$1,$2,$3,NR-1,$NF,0;
        print 2*(NR-2)+2,$7,$8,$9,NR-1,$NF,0;
        }' >"$2/give_x_$name.bed"
<commit_msg>Update chic2give.sh<commit_after>#!/bin/bash
if [ $# != 2  ]; then
    echo -e "Need 2 arguments:\n (1) an interaction file\n (2) output dir"
    exit 1
fi
name=`basename $1`;
echo "$2/give_x_$name.bed"
cat $1 |
awk 'BEGIN{FS="\t";OFS="\t"}
    NR>1{
        print 2*(NR-2)+1,$1,$2,$3,NR-1,$NF,-1;
        print 2*(NR-2)+2,$7,$8,$9,NR-1,$NF,-1;
        }' >"$2/give_x_$name.bed"

{'fraction_non_alphanumeric': 0.25466666666666665, 'fraction_numerical': 0.07066666666666667, 'mean_word_length': 3.016042780748663, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4039923', 'n_tokens_mistral': 378, 'n_tokens_neox': 346, 'n_words': 67}