forked from ISUgenomics/common_analyses
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunRepeatModeler.sh
More file actions
executable file
·28 lines (23 loc) · 965 Bytes
/
runRepeatModeler.sh
File metadata and controls
executable file
·28 lines (23 loc) · 965 Bytes
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
#!/bin/bash
# runs repeat masking for the genome after constructing custom repeat library
# uses repeat modeler for building custom db and RepeatMasking for masking
# run it as:
# runRepeatModeler.sh Genome.fasta
# based on Rick's guide https://intranet.gif.biotech.iastate.edu/doku.php/people:remkv6:genome738polished_repeatmodeler_--de_novo_repeat_identification
if [ $# -lt 1 ] ; then
echo "usage: runRepeatModeler <genome.fasta>"
echo ""
echo "To build custom repeat library and mask the repeats of the genome"
echo ""
exit 0
fi
GENOME="$1"
module use /shared/software/GIF/modules/
module load parallel
module load repeatmasker/4.0.6
module load repeatmodeler/1.0.8
DATABASE="$(basename ${GENOME%.*}).DB"
BuildDatabase -name ${DATABASE} -engine ncbi ${GENOME}
RepeatModeler -database ${DATABASE} -engine ncbi -pa 16
ln -s $(find $(pwd) -name "consensi.fa.masked")
RepeatMasker -pa 16 -gff -lib consensi.fa.masked ${GENOME}