Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TEanno.sum generation #169

Closed
wyim-pgl opened this issue Mar 4, 2021 · 1 comment
Closed

TEanno.sum generation #169

wyim-pgl opened this issue Mar 4, 2021 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@wyim-pgl
Copy link

wyim-pgl commented Mar 4, 2021

Hi Shujun,
Is there any way to get TEanno.sum from TEanno.gff3
Thanks

@oushujun
Copy link
Owner

oushujun commented Mar 5, 2021

Yes, you can. The easiest is to rerun EDTA with --anno 1 --step anno.

If you want to challenge yourself by making a sum file from a random gff3 file, this is a good start:

Convert gff3 to bed

perl ../util/gff2bed.pl $genome.EDTA.TEanno.gff3 > $genome.EDTA.TEanno.bed;

Convert bed to RepeatMasker .out

perl -nle 'my ($chr, $s, $e, $anno, $dir, $supfam)=(split)[0,1,2,3,8,12]; print "10000 0.001 0.001 0.001 $chr $s $e NA $dir $anno $supfam"' $genome.EDTA.TEanno.bed > $genome.EDTA.TEanno.out;

Obtain genome size and seq count

perl .../EDTA/util/count_base.pl $genome > $genome.stats

Regenerate .sum

perl ../util/buildSummary.pl -maxDiv 40 -stats $genome.stats $genome.EDTA.TEanno.out > $genome.EDTA.TEanno.sum 2>/dev/null;

Basically, you need to make an enriched bed file from the gff3 file, then convert the bed file to a fake RepeatMasker .out file, then use the summary script modified from RepeatMasker to produce the .sum file.

Best,
Shujun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants