Skip to content
Snippets Groups Projects
Commit ca03279f authored by Glenn Proctor's avatar Glenn Proctor
Browse files

Added stats for total gene names as well.

parent f0e73686
No related branches found
No related tags found
No related merge requests found
......@@ -236,6 +236,9 @@ sub get_stats {
$count = count_rows($to_ga, "SELECT COUNT(*) FROM gene g, xref x WHERE g.display_xref_id=x.xref_id AND x.display_label LIKE '%[from%'");
$str .= sprintf(" projected %d (%3.1f\%)" , $count, (100 * $count / $total_genes));
$count = count_rows($to_ga, "SELECT COUNT(*) FROM gene g WHERE display_xref_id IS NOT NULL");
$str .= sprintf(" total genes with names %d (%3.1f\%)" , $count, (100 * $count / $total_genes));
$str .= "\nGO xrefs: total ";
$str .= &count_rows($to_ga, "SELECT COUNT(*) FROM xref x, external_db e WHERE e.external_db_id=x.external_db_id AND e.db_name='GO'");
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment