LTRfind: a pipeline for get LTR and LAI ( base on LTR_retriever)
- LTR_FINDER_parallel
- gt
- seqkit
- LTR_retriever
- R ggplot2 packages (for visualization only)
conda create -n LTR_retriever
conda activate LTR_retriever
conda install -y -c conda-forge perl perl-text-soundex
conda install -y -c bioconda cd-hit repeatmasker
git clone https://github.com/oushujun/LTR_retriever.git
./LTR_retriever/LTR_retriever -h
chmod 757 gt-1.6.2/bin/gt
chmod 757 seqkit
chmod 757 LTRfind
chmod 757 LTR_FINDER_parallel-1.1/bin/LTR_FINDER.x86_64-1.0.7/ltr_finder
./LTRfind -h
you also can add the path of LTRfind
to the ~/.bashrc
.
It is mainly used for the identification of diploid and polyploid LTR and the calculation of LAI value.
Get the LTR_RTs in the genome and calculate the LAI value of the genome at the same time.
for Diploid use (-D|Diploid
)
for Polyploid (up to octoploid) use (-P|Polyploid
)
-h|--help
-D|Diploid Species genome.fa
-D|Diploid Species genome.fa ChrString
-P|Polyploid -abbr Species -g genome.fa -chr ChrString -p1 Ghir_A -p2 Ghir_D
-P|Polyploid -abbr Species -g genome.fa -p1 Ghir_A -p2 Ghir_D
-V | --version
LTRfind -D A.thaliana /path/A.thaliana.fa
LTRfind Diploid A.thaliana /path/A.thaliana.fa chr
LTRfind -P -abbr Species -g genome.fa -chr ChrString -p1 Ghir_A -p2 Ghir_D
LTRfind -P -abbr Species -g genome.fa -chr ChrString -p1 Ghir_A -p2 Ghir_D -p3 Ghir_C
LTRfind -P -abbr Species -g genome.fa -chr ChrString -p1 Ghir_A -p2 Ghir_D -p3 Ghir_C -p4 Ghir_B
LTRfind Polyploid -abbr Species -g genome.fa -p1 Ghir_A -p2 Ghir_D
LTRfind -D A.thaliana ${PWD}/example/LTRfind/Ath.Chr4_5.fa chr
In run -D|Diploid
,if you input the ChrString , will extract the Chromosome sequence for LTR and LAI (not analysis the scaffold sequence).
Input genome file must be .fa
,not support .fa.gz
.
the genome.fa sequence ID should be less then 15 character. if your file is report over 15 character, can use seqkit seq -i genome.fa >new.genome.fa
to extract the ID and delete the info after the ID
if your input genome.fa
ChrID
may be like >1
,in this case, you cannot use the ChrStr
field to extract chromosome data and filter scaffold.
It is recommended to use LTRfind
after filtering by yourself. The ID length of genome.fa cannot exceed 15 characters.
if you jsut want use the visualization module visual_LAI
and visual_LTR
.
visual_LAI.R used only for chomosome, so if please delete the rows which is contain contigs and scaffolds in *.out.LAI
Rscript visual_LAI.R genome.out.LAI speciesname
Rscript visual_LAI.R genome.pass.list speciesname
- speciesname
- genome.fa
- ChrStr (can be omitted)
- speciesname
- genome.fa
- ChrStr (If you do not provide this parameter, it is assumed that the genome file you provide only contains the sequence of the chromosome.)
- p1
- p2
- p3
- p4
for Ghirsutum.fasta
head Ghirsutum.fasta
>Ghir_A01
TAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAA
ACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACC
CTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTA
AACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAAC
CCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAAACCCTAAACCCTAAACCC
TAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAA
ACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACC
CTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTA
AACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAAC
...
>Ghir_D01
AAACCCTAAACCCTAAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAAACCCTAAACCCTAAACCCTAAACCCTA
AACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAAC
CCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCT
AAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAA
CCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCCTAAACCC
should be run like this:
LTRfind -P -abbr G.hirsutum -g Ghirsutum.fasta -chr Ghir_ -p1 Ghir_A -p2 Ghir_D
head Arabidopsis_thaliana.fa
>chr01 dna:chromosome chromosome:TAIR10:1:1:30427671:1 REF
CCCTAAACCCTAAACCCTAAACCCTAAACCTCTGAATCCTTAATCCCTAAATCCCTAAAT
CTTTAAATCCTACATCCATGAATCCCTAAATACCTAATTCCCTAAACCCGAAACCGGTTT
CTCTGGTTGAAAATCATTGTGTATATAATGATAATTTTATCGTTTTTATGTAATTGCTTA
TTGTTGTGTGTAGATTTTTTAAAAATATCATTTGAGGTCAATACAAATCCTATTTCTTGT
GGTTTTCTTTCCTTCACTTAGCTATGGATGGTTTATCTTCATTTGTTATATTGGATACAA
bash LTRfind -D A.thaliana Arabidopsis_thaliana.fa
or bash LTRfind -D A.thaliana Arabidopsis_thaliana.fa chr
All the output is the same with LTR_retriever. For Chinese, there are detail info links in Chinese.
- Build date:2021.06.17
- Last update: 2022.03.04
- Version: 0.3.1
- Author: Mol Chai
- Email: [email protected]
- Add visual module
getLTRpeak.R
. - Add example for test.
- The test passed the module for diploid! Fixed some bugs!
- Add
config.ini
file for user control the input software path . - Add the parameter
threads
to specify the number of cpus and the parametermiu
to specify the differentiation speed. - Add visual module
visul_LTR.R
andvisual_LAI.R
Modify the value of ltrharvest -similar 90
to ltrharvest -similar 85
. In order to ensure that LTR_harvest and LTR_FINDER_parallel use the same similarity value (0.85).
Using LTR_FINDER_parallel instead of LTR_FINDER, the running speed will be greatly improved.