-
Notifications
You must be signed in to change notification settings - Fork 0
/
Reconciliation.sh
71 lines (55 loc) · 1.86 KB
/
Reconciliation.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
# Recon Alemania
# Edgar Chávez Aparicio
# Alitzel López Sánchez
# Maribel Hernández Rosalez
#
# IN:
# GraphPO
# primates_species_tree.nwk
# $name.nwk
# Gene_tree_list_full.txt
# OUT:
# $name_recon.nwk
# $name_report.txt
# Recon_spec_tree.nwk
# verbose.txt
# resumen.txt
# report_conjunto.txt
# Obtener columnas de genes y especies
cut -f1 GraphPO > temp_list.txt
cut -f2 GraphPO >> temp_list.txt
# parceo de lista en bruto temp_list.txt > Gene-Spec.txt
perl -w .Gene_list_pars.pl --in temp_list.txt --out Gene-Spec.txt
rm temp_list.txt
# Cambiar el arbol de genes a minpusculas $Especies > Spec-Tree.nwk
cat species.nwk | tr '[:upper:]' '[:lower:]' > Spec-Tree.nwk
# reconcliacion
# Input:
# $name.nwk
# Gene-Spec.txt
# Gene_tree_list_full.txt
# Spec-Tree.nwk
# Output:
# $name_recon.nwk
# $name_report.txt
# Recon_spec_tree.nwk
# verbose.txt
# Gene_tree_list_full.txt > Gene_tree_list.txt , Output, verbose
echo Recon
./.a.out > verbose.txt
# ------------------ Reporte final -----------------
# Reporte *report.txt > NoCong.txt , report_conjunto.txt , resumen.txt
echo Resumen
# $name_report.txt > NoCong.txt
grep "No " *_report.txt > NoCong.txt
echo No Congruentes $(wc -l NoCong.txt)
rm Gene-Spec.txt
rm Spec-Tree.nwk
# Reprte general $name_report.txt > report_conjunto.txt
# Resumen > resumen.txt
# listado de reportes > report_list.txt
ls -1 | grep report > report_list.txt
sed -i '$ d' report_list.txt
python3 .Rep_final.py
rm report_list.txt