str: Predicting short tandem repeats

Description Usage Arguments Details Value Author(s) References Examples

View source: R/str.R

Description

This function predicts short tandem repeats in 'x' in nucleotides. Nucleotide sequence can be provided in raw or fasta format or as GenBank accession number(s). Internet is needed to connect to GenBank database, if accession number(s) is given as argument.

Usage

1
str(x, xformat = "default")

Arguments

x

Nucleotide sequence(s) in raw format or a fasta file or a GenBank accession number(s); from which short tandem repeats will be predicted. If the fasta file name does not contain an absolute path, the file name is relative to the current working directory.

xformat

a character string specifying the format of x : default (raw), fasta, GenBank (GenBank accession number(s)).

Details

This function predicts short tandem repeats in nucleotide sequences and provide the position, sequence and length of the predicted repeats, if any.

Value

A dataframe of short tandem repeats' position, sequence and length. If more than one DNA sequence is provided as argument, an input ID is returned for repeats predicted from each input sequence.

Author(s)

Hannah O. Ajoge

References

paper under review

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 ## Predicting short tandem repeats from raw nucleotide sequences
E1 <- c("TCTACACACACACACACACACGAAT", "tagggugugugugugugugugugutcct")
str(E1)

## Predicting short tandem repeats from nucleotide sequences in fasta file
## Not run: str(x="Example.fasta", xformat = "fasta")

## Predicting short tandem repeats from nucleotide sequences,
## using GenBank accession numbers.
## Internet connectivity is needed for this to work.
## Not run: str(c("BH114913", "AY611035"), xformat = "GenBank")

Example output

Attaching package:gquadThe following object is masked frompackage:utils:

    str

  input_ID sequence_position             sequence sequence_length
1        1                 4   ACACACACACACACACAC              18
2        2                 5 gugugugugugugugugugu              20

gquad documentation built on May 2, 2019, 12:19 p.m.

Related to str in gquad...