Description Usage Arguments Value Examples
View source: R/targetp_parallel.R
This function calls local targetp to predict subcellular localisation of
a protein.
For large inputs (>1000 sequences) will automatically run
as a massive paralle job.
1 2 |
input_obj |
an instance of CBSResult class containing protein sequences in one of the slots |
network |
P - for plants; |
run_mode |
starter - if it is the first step in pipeline; |
paths |
if targetp is not acessible globally, a file conatining a full path to it's executable should be provided; for details please check SecretSanta vignette. |
cores |
optional arguments, number of cores to run the parallel process on. If not set default will be 1. |
an object of TargetpResult class
1 2 3 4 5 6 7 8 | # read fasta file in AAStringSet object
aa <- readAAStringSet(system.file("extdata", "sample_prot_100.fasta",
package = "SecretSanta"))
# assign this object to the input_fasta
# slot of CBSResult object
inp <- CBSResult(in_fasta = aa[1:10])
# run target prediction
tp_result <- targetp(input_obj = inp, network = 'N', run_mode = 'starter')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.