random_dna_seq: Shuffle a sequence with a kept kmer distribution

Description Usage Arguments Details Value Author(s)

Description

The function shuffles a given sequence and keeps a given k distribution

Usage

1
2
random_dna_seq(inFile, outFile, k, n = 1, clean = TRUE, tmpDir,
  fasta_formatter = NULL, fasta_uShuffle = NULL)

Arguments

inFile

File path to the fasta file to be shuffled

outFile

File path to the out dir

k

Kept k for the shuffling (k < 25)

n

Number of produced shuffle sequences per sequence [default = 1]

clean

Should everthing removed [default = TRUE]

tmpDir

Where to save temp files

fasta_formatter

File path to the fasta formatter executables

fasta_uShuffle

File path to the fasta uShuffle executables

Details

The function calls uShuffle, which can only handle fasta files without a linebreak. Therefore, the program formatter removes all linebreaks from the fasta file beforehand. Than uShuffle shuffles the sequence by keeping a distrubtion of kmer's given k.

Value

Null

Author(s)

Jochen Kruppa


jkruppa/viralDetectTools documentation built on May 30, 2019, 3:41 p.m.