Description Usage Arguments Value Examples
For every with the tool checked genomes, fCAT will save the sequences of each genome into a extended fasta file in the phyloprofile folder, which by default is the output folder in core directory or can be the folder specified by the user with the argument ppDir in the function checkCompleteness. When redo is on to recheck for a genome, whose pp exists already in the original pp, the tool must remove the lines of the genome from the original extended fasta file. That is the purpose of this function
1 | correctFasta(fasta, genome)
|
fasta |
the path to the fasta file |
genome |
the name of the genome, that should be removed |
none
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | ## Create pseudo extended fasta file
fasta <- c(
">1001705at2759|HUMAN@9606@3|Q15291|1",
"MNLELLESFGQNYPEEADGTLDCISMALTCTFNRWGT",
">1489230at2759|ARATH@3702@2|3702_0:005bc2|1",
"MAGRATIPARNSALIAMIADEDTVVGFLMAGVGNVDIRRKTNYLIVDS"
)
## Write it in a file in the current working directory
wd <- getwd()
filePath <- paste(wd, "/fCAT_functiontest.fa", sep = "")
writeLines(fasta, filePath)
## Correcting
correctFasta(filePath, "HUMAN@9606@3")
## Check if the file is corrected
fasta <- readLines(filePath)
print(fasta)
## Delete the file
file.remove(filePath)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.