-
Notifications
You must be signed in to change notification settings - Fork 0
/
virsorter2.sh
31 lines (21 loc) · 1.45 KB
/
virsorter2.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
#!/bin/bash
echo -e "###########################################################################################"
echo -e ===== Detección de genomas virales con Virsorter2 en ensambles obtenidos con metaSPAdes =====
echo -e ===== Inicio: $(date) =====
echo -e "###########################################################################################"
conda activate virsorter_env
cd /home/secuenciacion_cenasa/Analisis_corridas/SPAdes_viral
for ensamble in *.fa; do
ID="$(basename ${ensamble} | cut -d '-' -f '1')"
virsorter run -w /home/secuenciacion_cenasa/Analisis_corridas/SPAdes_viral/Contigs_filtrados/${ID}_virsorter_out \
-d $VIRSORTER2_DB_PATH \
-i ${ensamble} \
--min-score 0.05 \
--provirus-off \
--keep-original-seq \
--include-groups RNA,NCLDV,ssDNA,lavidaviridae all
mv /home/secuenciacion_cenasa/Analisis_corridas/SPAdes_viral/Contigs_filtrados/${ID}_virsorter_out/final-viral-combined.fa /home/secuenciacion_cenasa/Analisis_corridas/SPAdes_viral/Contigs_filtrados/${ID}_virsorter_out/${ID}-metaSPAdes-viral.fa
mv /home/secuenciacion_cenasa/Analisis_corridas/SPAdes_viral/Contigs_filtrados/${ID}_virsorter_out/${ID}-metaSPAdes-viral.fa /home/secuenciacion_cenasa/Analisis_corridas/SPAdes_viral/Contigs_filtrados/.
rm -R /home/secuenciacion_cenasa/Analisis_corridas/SPAdes_viral/Contigs_filtrados/${ID}_virsorter_out
done
conda deactivate