oushujun / LTR_retriever

LTR_retriever is a highly accurate and sensitive program for identification of LTR retrotransposons; The LTR Assembly Index (LAI) is also included in this package.
https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5813529/
GNU General Public License v3.0
186 stars 40 forks source link

add $genome permission check #124

Closed with9 closed 2 years ago

with9 commented 2 years ago

Thank you for your work. LAI did not run correctly.While running I get the following error $genome.tbl: No such file or directory After checking I found out that it is due to the permissions of the $genome file.After runing RepeatMasker -e ncbi -pa $threads -q -no_is -norna -nolow -div 40 -lib $genome.LTRlib.fa -cutoff 225 $genome i got this error.

analyzing file $genome
FastaDB::_cleanIndexAndCompact() - Error could not open file ../LTR/RM_166328.TueMay32136282022/$genome: Permission denied
 at /miniconda3/envs/lai/bin/RepeatMasker line 739.

and after chmod +w $genome , everything runs correctly

I add two line to check if $genome is writable.