Last data update: 2014.03.03

R: Test the parameter TestSNPNameFile
TestSNPNameFileR Documentation

Test the parameter TestSNPNameFile

Description

This function check the parameter TestSNPNameFile. If there are real SNP names which will be used for constructing graphs and further analysis, the name of file that saves real SNP names should be provided.

Usage

TestSNPNameFile(RowNum, SNPNameFileName = NA)

Arguments

RowNum

numeric. It is the number of considered SNPs.

SNPNameFileName

character or logical (NA). The file name with its format (.mat) that saves the names of SNPs. The file has only one variable, i.e., Name. In Name, Row -> 1, Column -> SNP Name, and the length is equal to RowNum. If not exist such file (default), SNPNameFileName <- NA.

Value

SNPNames: character or logical (NA). Names of SNPs.

Author(s)

Junliang Shang shangjunliang110@163.com

References

None

Examples

RowNum <- 10
SNPNameFileName <- NA
SNPNames <- TestSNPNameFile(RowNum, SNPNameFileName)
SNPNames <- SNPNames$SNPNames

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(CINOEDV)
Loading required package: R.matlab
R.matlab v3.5.1 (2016-03-27) successfully loaded. See ?R.matlab for help.

Attaching package: 'R.matlab'

The following objects are masked from 'package:base':

    getOption, isOpen

Loading required package: igraph

Attaching package: 'igraph'

The following objects are masked from 'package:stats':

    decompose, spectrum

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

    union

Loading required package: ggplot2
Loading required package: reshape2
> png(filename="/home/ddbj/snapshot/RGM3/R_CC/result/CINOEDV/TestSNPNameFile.Rd_%03d_medium.png", width=480, height=480)
> ### Name: TestSNPNameFile
> ### Title: Test the parameter TestSNPNameFile
> ### Aliases: TestSNPNameFile
> 
> ### ** Examples
> 
> RowNum <- 10
> SNPNameFileName <- NA
> SNPNames <- TestSNPNameFile(RowNum, SNPNameFileName)
    The SNP Name File : NA 

> SNPNames <- SNPNames$SNPNames
> 
> 
> 
> 
> 
> dev.off()
null device 
          1 
>