split_XStringSet: split XStringSet objects

Description Usage Arguments Value Examples

View source: R/signalp_parallel.R

Description

This function splits large XStringSet objects into chunks of given size and returns a list of AAStringSet objects.

Usage

1
split_XStringSet(string_set, chunk_size)

Arguments

string_set

input AAStringSet object;

chunk_size

the number of sequenses in a single chunk;

Value

list of AAStringSet chunks.

Examples

1
2
3
4
5
6
# Read fasta file:
aa <- readAAStringSet(system.file("extdata", "sample_prot_100.fasta",
package = "SecretSanta"))
# Split it into chunks
# with 10 sequences each:
split_XStringSet(aa,10)

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