combine_TpResult: combine multiple objects of TargetpResult class

Description Usage Arguments Value Examples

View source: R/targetp_parallel.R

Description

This function combines multiple instances of TargetpResult class, typically generated with parLapply when running targetp in parallel mode.

Usage

1
combine_TpResult(arguments)

Arguments

arguments

a list of TargetpResult objects to be combined.

Value

TargetpResult object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
aa <- readAAStringSet(system.file("extdata", "sample_prot_100.fasta",
package = "SecretSanta"))
inp2 <- CBSResult(in_fasta = aa[1:10])
inp3 <- CBSResult(in_fasta = aa[20:30])
inp4 <- CBSResult(in_fasta = aa[40:50])     
tp1 <- targetp(input_obj = inp2, network = 'N', run_mode = 'starter')
tp2 <- targetp(input_obj = inp3, network = 'N', run_mode = 'starter')
tp3 <- targetp(input_obj = inp4, network = 'N', run_mode = 'starter')
obj <- list(tp1, tp2, tp3)
combined_tp <- combine_TpResult(obj)

gogleva/SecretSanta documentation built on May 30, 2019, 8:02 a.m.