reportSingle: Create the report of the completeness of a genome based on...

Description Usage Arguments Value Examples

View source: R/getResult.R

Description

Create the report of the completeness of a genome based on its phylogenetic profile to the interested core set

Usage

1
reportSingle(pp, root, coreSet, scoreMode, priorityList)

Arguments

pp

the phylogenetic profile of the genome in data.frame

root

The path to the core directory, where the core set is stored within weight_dir, blast_dir, etc.

coreSet

The name of the interested core set. The core directory can contains more than one core set and the user must specify the interested core set. The core set will be stored in the folder core_orthologs in subfolder, specify them by the name of the subfolder

scoreMode

the mode determines the method to scoring the founded ortholog and how to classify them. Choices: 1, 2, 3, "busco"

priorityList

A list contains one or many genome ID of the genomes, which were used to build the core set. The genome ID of this list will be stored with an priority order, the tool look at into the fasta file of each core group and determine with the priority order to determine the references species for each core group.

Value

the report in data frame

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Create a pseudo phylogenetic profile table
geneID <- c("530670", "530730")
ncbiID <- c("ncbi9606", "ncbi9606")
orthoID <- c("530670|HUMAN@9606@3|Q16526|1", "530730|HUMAN@9606@3|P05091|1")
FAS_F <- c(1, 1)
FAS_B <- c(1, 1)
pp <- data.frame(geneID, ncbiID, orthoID, FAS_F, FAS_B)
coreFolder <- system.file("extdata", "sample", package = "fCAT")
## Translate phylogenetic profile to a detailed report
report <- reportSingle(pp, coreFolder, "test", 2, c("HUMAN@9606@1"))
print.data.frame(report)

giangnguyen0709/fCAT documentation built on Feb. 10, 2021, 4:31 a.m.