import_pheno: imports phenos from file

View source: R/import.R

import_phenoR Documentation

imports phenos from file

Description

first col should be Accessions phenos should loacted begin second col, phenoName should at the first row, If "." located in pheno name, the former part of phenoName will be set as y axis name and the latter part will be set as foot of the fig.

Usage

import_pheno(phenoFile, comment.char = "#", ...)

Arguments

phenoFile

pheno file path, should be a table separated by tab

comment.char

comment.char, start with comment.char will be ignored

...

parameters will pass to read.delim

Value

data.frame, Accession names were set as rownames and cols were named by pheno names

Examples

## Not run: 
data("quickHap_test")
write.table(pheno, file = "test.pheno.txt", quote = FALSE, sep = "\t")
pheno <- import_pheno("test.pheno.txt")
unlink("test.pheno.txt")

## End(Not run)

ZhangRenL/quickHapR documentation built on June 17, 2022, 12:04 a.m.