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

Minor feature request #174

Open
jbh-cas opened this issue Jan 10, 2025 · 0 comments
Open

Minor feature request #174

jbh-cas opened this issue Jan 10, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@jbh-cas
Copy link

jbh-cas commented Jan 10, 2025

It would be nice to see the percentages for each category on the pie chart. There's nothing quite similar to the .tbl file that RepeatMasker produces, and adding the percentages on the chart would be like the top level of .tbl but with this nice graphical spin.

And a line somewhere on the image for the total repeat percentage (i.e., 100 minus Non-Repeat pct) would be nice to have. I'm not sure where the intended place to find that number is without a little arithmetic.

Here's how it would look before the description.

 4.48% DNA
15.02% LINE
 5.46% LTR
 3.52% Other (Simple Repeat, Microsatellite, RNA)
 0.67% Penelope
 0.01% Rolling Circle
 1.57% SINE
28.65% Unclassified
40.62% Non-Repeat

I think the R script that makes the chart also makes the highLevelCount.txt file, so it should have the percentages.
Here's what gets the above with an external script:

awk -v FS="\t" '
   NR > 1 { p = 100 * $4; tot += p;  printf("%5.2f%% %s\n", p, $1) }
   END { printf("%5.2f%% Non-Repeat\n", 100-tot) }
' *.highLevelCount.txt
@TobyBaril TobyBaril added the enhancement New feature or request label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants