You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These pertain to the data science/statistics user story "Curation Coverage"
function for reporting a summary of the data annotated in the KB for a taxon or list of taxa. In addition to taxon name and number of phenotypes, also include the family and order of each taxon.
function for reporting the entities annotated for a taxon or list of taxa. Include entity name and number of phenotypes.This is similar to the “print_coverage” function in paramo (copied below), although that function extracts information from a matrix including inferred data.
#' Function to display the number of matching species and average value across them from an Ontotrace matrix#' @exportprint_coverage<-function(x){
coverage<- apply(x, 2, function(x) sum(!is.na(x)))
average<- sapply(x, function(x) mean(as.numeric(na.omit(x[x%in% c("0", "1")])), na.rm=TRUE))
cover<- cbind(coverage, average)
tmp<- filter(data.frame(traits=rownames(cover), cover), coverage>0, average<1, average>0) %>% arrange(., desc(coverage))
print(tmp)
}
#The table that prints out shows the number of taxa for which there is data in the KB ( coverage ) and the proportion of taxa ( average ) that have this trait (all of these are binary, presence/absence characters).
The text was updated successfully, but these errors were encountered:
These pertain to the data science/statistics user story "Curation Coverage"
function for reporting a summary of the data annotated in the KB for a taxon or list of taxa. In addition to taxon name and number of phenotypes, also include the family and order of each taxon.
function for reporting the entities annotated for a taxon or list of taxa. Include entity name and number of phenotypes.This is similar to the “print_coverage” function in paramo (copied below), although that function extracts information from a matrix including inferred data.
The text was updated successfully, but these errors were encountered: