<commit_before>#! /bin/sh
seqName=$1
nn=$2
lpart=$3
pathLDhat=$4
th=$5
cor=$6
jobId=$7
curr=$(pwd)
# sed -i "1i $nn $lpart 1" $seqName
awk -v n=1 -v s="$nn $lpart 1" 'NR == n {print s} {print}' $seqName > ${curr}/"FastaTemp_${jobId}.fa"
mv ${curr}/"FastaTemp_${jobId}.fa" $seqName

mkdir -p ${jobId} && cd ${jobId}
echo $(pwd)
$pathLDhat/convert -seq $seqName | tail -n 7 >"temp_${jobId}.txt"
cat "temp_${jobId}.txt" >>../"Sums_part_main_${jobId}.txt"<commit_msg>adapted path<commit_after>#! /bin/sh
seqName=$1
nn=$2
lpart=$3
pathLDhat=$4
th=$5
cor=$6
jobId=$7
curr=$(pwd)
# sed -i "1i $nn $lpart 1" $seqName
<<<<<<< HEAD
awk -v n=1 -v s="$nn $lpart 1" 'NR == n {print s} {print}' $seqName > ${curr}/"FastaTemp_${jobId}.fa"
mv ${curr}/"FastaTemp_${jobId}.fa" $seqName
echo $seqName
echo ${curr}/$seqName
mkdir -p ${jobId} && cd ${jobId}
echo $(pwd)
$pathLDhat/convert -seq $seqName | tail -n 7 >"temp_${jobId}.txt"
echo $seqName
awk -v n=1 -v s="$nn $lpart 1" 'NR == n {print s} {print}' $seqName > ${curr}/"FastaTemp_${jobId}.fa"
mv ${curr}/"FastaTemp_${jobId}.fa" $seqName
mkdir -p ${jobId} && cd ${jobId}
$pathLDhat/convert -seq $seqName | tail -n 7 >temp_${jobId}.txt
cat "temp_${jobId}.txt" >>../"Sums_part_main_${jobId}.txt"
{'fraction_non_alphanumeric': 0.24308943089430896, 'fraction_numerical': 0.02195121951219512, 'mean_word_length': 5.034313725490196, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 13, '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': '4975438', 'n_tokens_mistral': 564, 'n_tokens_neox': 551, 'n_words': 138}