This function allows to visualize selected properties of input genomes such as:
gene length distribution: stats_type
= "length_distr"
visGenome(data, seq_type, stats_type = "length_distr", ...)
data | a file path to a |
---|---|
seq_type | sequence type stored in the
|
stats_type | a character string specifying the genome feature that shall be visualized: "length_distr", ... . |
... | additional parameters that shall be passed to the corresponding plot function. |
a plot object.
if (FALSE) { # download the proteome of Arabidopsis thaliana from refseq # and store the corresponding proteome file in '_ncbi_downloads/proteomes' # install.packages("biomartr") Ath_proteome <- biomartr::getProteome( db = "refseq", organism = "Arabidopsis thaliana" ) # visualize the length distribution of the proteome of A. thaliana visGenome(data = Ath_proteome, seq_type = "protein", stats_type = "length_distr", main = "Histogram of A. thaliana protein sequence lengths", xlab = "Sequence Length", breaks = 100) }