Skip to content

Commit

Permalink
fix a bug when input cds has no TE
Browse files Browse the repository at this point in the history
  • Loading branch information
oushujun committed Oct 29, 2020
1 parent e7872e6 commit 4912db4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion util/cleanup_TE.pl
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@
# 3rd attempt, mask remaining TE seqs in cds with identified TE seqs
if (-s "$cds.TE"){
`${repeatmasker}RepeatMasker -e ncbi -pa $threads -q -no_is -norna -nolow -div 40 -lib $cds.TE -cutoff 225 $cds.rmTE2`;
`perl $cleanup -Nscreen 1 -nc 300 -nc 0.3 -minlen $minlen -maxlen 300000 -cleanN 1 -cleanT 0 -trf 0 -f $cds.rmTE2.masked > $cds.noTE`;
if (-s "$cds.rmTE2.masked"){
`perl $cleanup -Nscreen 1 -nc 300 -nc 0.3 -minlen $minlen -maxlen 300000 -cleanN 1 -cleanT 0 -trf 0 -f $cds.rmTE2.masked > $cds.noTE`;
} else {
`cp $cds.rmTE2 $cds.noTE`;
}
} else {
print STDERR "\t\t\t\tWarning: No TE-related CDS found ($cds.TE empty). Will not use the self-cleaning step.\n\n";
`cp $cds.rmTE $cds.noTE`;
Expand Down

0 comments on commit 4912db4

Please sign in to comment.