Description Usage Arguments Value Examples
View source: R/checkCompleteness.R
The function to validate the input. If a input is not validated, it will return a message to the user
1 2 3 4 5 |
genome |
The path to the genome fasta file |
fasAnno |
The path to the fas annotation file. It can equal NULL |
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 |
extend |
The output of the function is a phylogenetic profile of the interested genome. It contains 4 files, .phyloprofile, .extended.fa, _reverse.domains and _forward.domains. If extend = TRUE, the files will be appended into the old files in the folder output of the core directory or in the inputed folder by the user with the argument ppDir. If there is no old files in the folder, the output files of the function will be writen in the new files. |
scoreMode |
the mode determines the method to scoring the founded ortholog and how to classify them. Choices: 1, 2, 3, "len" |
cpu |
determines the cores that fDOG and fdogFAS will uses to be run parallel |
blastDir |
The user can replace the blast_dir folder in the core directory by specifying it in this argument |
weightDir |
The user can replace the weight_dir folder in the core directory by specifying it in this argument |
output |
The directory which contains the output directory. It it is equal to NULL output will be set to working directory |
cleanup |
The fDOG's output is a set of phylogenetic profile of each core group to the interested genome. The phylogenetic profile will be stored into a folder in the core set. The function will merge all the small phylogenetic profile, calculate the FAS score or length to have the whole phylogenetic profile of the interested genome to the core set. This fDOG's output can be reused for all score modes. When cleanup is set to TRUE, the fDOG's output will not be stored to be reused but to be removed |
redo |
when redo is set to TRUE, all old data of the interested genome include fdogOutput, phyloprofileOutput, completenessOutput and the extended phyloprofile will be removed and fCAT will recheck for this interested genome |
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. |
outDir |
The user can specify the directory to save the output report file of the completeness of the interested genome by specifying the path to the folder in this argument |
reFdog |
If it already exist a fDOG's output for a specific core group the tool will skip this core group and go to the next core group. If reFdog is set to TRUE, the tool will remove all the existed fDOG's output and rerun fDOG for all core groups of the set |
fdogDir |
Normally the fDOG's output will be stored in the folder fdogout in the core directory, but the user can specify the folder for fDOG's output by specify the path to it in this argument. Notice here, is the fDOG's output folder will contains the subfolder, equivalent to the name of the interested genome, for example, the folder can contain "HUMAN@9606@3" and "AMPQU@400682@2", for a completeness checking on an interested genome, which has a subfolder in the fDOG's output folder with the same name, the function will look into the subfolder to find the existed fDOG's output |
ppDir |
The user can replace the default folder output in the core directory, where the phylogenetic profiles are stored by his folder. The user can specify the path to his folder in this argument |
A list that contains a logical value and the message to the error
1 2 3 4 5 6 7 | coreFolder <- system.file("extdata", "sample", package = "fCAT")
genome <- system.file("extdata", "HUMAN@9606@3.fa", package = "fCAT")
fasAnno <- system.file("extdata", "HUMAN@9606@3.json", package = "fCAT")
checkArguments(
genome[1], fasAnno[1], coreFolder[1], "test",
scoreMode = 2, priorityList = c("HUMAN@9606@1")
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.