Skip to content

Commit

Permalink
show version; fix DB TE get name;
Browse files Browse the repository at this point in the history
  • Loading branch information
M-D75 committed Mar 18, 2024
1 parent 0afae31 commit 8e920e7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion run.snk
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import json
import yaml
import os
import sys
import re

#Class Color
class bcolors:
Expand Down Expand Up @@ -91,7 +92,7 @@ if creat_pseudo_db :
list_header_TE.write("original\tpseudo")
for index, line in enumerate(lines) :
if line[0] == ">" :
list_header_TE.write("\noriginal=" + line.strip() + "\tpseudo=>TrEMOLOTE" + str(index))
list_header_TE.write("\noriginal=" + re.split("\s", line.strip())[0] + "\tpseudo=>TrEMOLOTE" + str(index))
pseudo_DB.write(">TrEMOLOTE" + str(index) + "\n")
else :
pseudo_DB.write(line)
Expand Down Expand Up @@ -219,6 +220,14 @@ rule TrEMOLO_BUILD :
mkdir -p {params.work_directory}/rep_tmp_snk/

rm -f ${{path_to_pipline}}/Snakefile*

pwd=`pwd`;
cd "${{path_to_pipline}}";
echo " ******************************"
echo " version-app-tag : $(git describe --tags `git rev-list --tags --max-count=1`)"
echo " ******************************"
echo
cd "$pwd";

printf "%s\\n" "{params.cmess} [SNK] CREATION SNAKEFILE {params.cend}"

Expand Down

0 comments on commit 8e920e7

Please sign in to comment.