Last data update: 2014.03.03

R: Loading cluster information
load_clustersR Documentation

Loading cluster information

Description

This function loads clusters from a plain text file and stores them in a matrix. The trajectories can be named by the user.

Usage

load_clusters( path,
               names = NA,
               mdEngine = "GROMOS" )

Arguments

path

Specifies the path of the text input file.

names

Optional vector of trajectory names. Needs to be of the same length as the number of clusters to be plotted.

mdEngine

Argument introduced for distinction between input formats based on the used molecular dynamics engine (to be implemented).

Author(s)

Christian Margreitter

Examples

# see "extdata/clusters_example.txt.gz" for format information
load_clusters( system.file( "extdata/clusters_example.txt.gz", package = "MDplot" ) )

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(MDplot)
Loading required package: MASS
Loading required package: RColorBrewer
Loading required package: gplots

Attaching package: 'gplots'

The following object is masked from 'package:stats':

    lowess

Loading required package: gtools
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/MDplot/load_clusters.Rd_%03d_medium.png", width=480, height=480)
> ### Name: load_clusters
> ### Title: Loading cluster information
> ### Aliases: load_clusters
> ### Keywords: Clusters
> 
> ### ** Examples
> 
> # see "extdata/clusters_example.txt.gz" for format information
> load_clusters( system.file( "extdata/clusters_example.txt.gz", package = "MDplot" ) )
  [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [,13] [,14]
1 8539    0  175    0    0  284    0    0    0     0     0     0     0     0
2 3027 5224    0  178   62    3  370    1   65     3    10    23    10    12
3 8926    0    0    0    0   71    0    0    0     0     2     0     0     0
4 7999    0  928    0    0   37    0    0    0    35     0     0     0     0
5 2993 5064   12  390  368    7    0  106    9     0    19     0    11     3
6 8837    0  122    0    0   26    0    0    0     8     6     0     0     0
  [,15] [,16] [,17] [,18] [,19] [,20] [,21] [,22] [,23] [,24] [,25]
1     0     0     0     0     2     0     0     0     0     0     0
2     0     4     4     0     0     3     0     1     0     0     0
3     0     0     0     0     1     0     0     0     0     0     0
4     0     0     0     0     0     0     0     0     1     0     0
5    11     0     0     4     0     0     2     0     0     1     0
6     0     0     0     0     0     0     0     0     0     0     1
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>