seqGen: Generate Sequences

Description Usage Arguments Details Value Author(s)

View source: R/seqGen.R

Description

This function is used to generate multiple sequences. Type of sequence could be DNA sequence, RNA sequence and Protein sequence.

Usage

1
seqGen(length,sampleNum,type="protein",dir="",out.file="")

Arguments

length

lenth of sequences, can be scalar or vector

sampleNum

number of sequences need to be generated

type

specify the type of sequences

dir

setting up the working directory for output

out.file

file name for output

Details

It requires package "seqinr" to write a fasta file. If user set up the working directory and name the output file, then a fasta file contains the generated sequences would be saved. If no user-determined output file name, then there will not be a fasta file saved.

Value

seqL

the generated sequences, saved as a list object

Author(s)

Yu Gu Maintainer: Yu Gu <yu_gu@urmc.rochester.edu>


ygu427/seqAlign documentation built on May 4, 2019, 2:33 p.m.