inst/unitTests/test_get_clusters.R

test_get_enrichment <- function(){

  string_db <- STRINGdb$new( version="11", species=511145, score_threshold=800 ) 

  proteins <- string_db$get_proteins()
  hits <- proteins$protein_external_id[1:50]
  clusters <- string_db$get_clusters(hits)
  checkTrue(length(clusters) > 1)

}

Try the STRINGdb package in your browser

Any scripts or data that you put into this service are public.

STRINGdb documentation built on March 10, 2021, 2 a.m.