View source: R/extractGenome.r
extractGenome | R Documentation |
Extracting genome fragment from candidates based the results of genome optimization and then assembling all fragments so that produce optimized genome(virtual genome).
extractGenome(hmp,binsInfo,ID = NULL,designInfo,output = NULL, bins,extractContent ="Genotype")
hmp |
The genetic data in hapmap format. |
binsInfo |
Data frame, including bins index, start, end, length of bins locus. |
ID |
A character array regarding sample IDs for 'hmp', if NULL, the 'hmp' data must involve header. |
designInfo |
Outputs of |
output |
The prefix of output files regarding the assembled genome. |
bins |
Results of IBD analysis (bins matrix), each row represents a bin fragment as well as each column represents each sample. |
extractContent |
Character, the content of virtual genome, "Bin" for bin source well "Genotype" for genetic data, default "Genotype". |
A matrix involves of three optimal genomes (optimal: max, moderate: med and poor: min) If output is defined, the assembled genome will be written to files with suffix ".G" or ".bin".
Qian Cheng, Shuqin Jiang, Xiangfeng Wang
GOVS
## Not run ! ## load test data # Phenotypic data: data(phe) # bins data: data(bins) # genomic data: data(MZ) # bins info data(binsInfo) # 1.run example for EW trait (write result files to local) genomeOptimization(pheno = phe,trait = "EW",bins = bins,output = "MZ_test_1404") # 2.run example for EW trait (get the results of genomeOptimization in R) GO_Res <- genomeOptimization(pheno = phe,trait = "EW",bins = bins,output = NULL) # 3.extract and assemble virtual genome (genomic genome) Vgenome <- extractGenome(hmp = MZ,binsInfo = binsInfo,designInfo = GO_Res$overall) # 4.extract and assemble virtual genome (bin source genome) Vbin <- extractGenome(hmp = MZ,binsInfo = binsInfo,designInfo = GO_Res$overall, bins = bins,extractContent = "BINsource")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.