STR_analysis: Analysis of short tandem repeats (STRs) in a given region of...

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/STR_analysis.R

Description

This function separates detected short tandem repeats (STRs) into different zones. These zones are either the hotspot zone defined by the double strand break maps of Pratto et al. (2014) or adjacent flanking zones (greyzones) left and right of the hotspots of user specified lengths. The parameters of the regions under study can be directly given in the function arguments or read in via either a BED-file or a position matrix.

Usage

1
2
3
4
5
STR_analysis(seqName, nr.STRs = 10, nr.mismatch = 0, chrs, STR = "A",
  lens.grey = 0:5 * 1000, addToHs = 0, start.position = NA,
  end.position = NA, reverse.comp = FALSE, bed_file, pos_matrix,
  output_file, species = BSgenome.Hsapiens.UCSC.hg19::Hsapiens,
  dsb_map = STRAH::dsb_map)

Arguments

seqName

A character string which is the name of the given sequence file under study. Can also be set to "" in order to analyze a defined sequence from any reference genome such as the package BSgenome.Hsapiens.UCSC.hg19 for humans.

nr.STRs

An integer value reflecting the minimum length of STRs to be searched for.

nr.mismatch

An integer value reflecting the allowed number of mismatches of the short tandem repeats. By default it set to 0.

chrs

A string reflecting the chromosome under study (starting with "chr" and adding either the integers from 1-22 or "X" respectively "Y" for the human genome). This argument can also be a vector of strings to study several chromosomes.

STR

A character string for the nucleotide to be searched for. By default one searches for poly-As, hence set to "A".

lens.grey

An integer value which is by default a vector of 6 integer values. These values represent the greyzones to be studied left and right from the hotspot regions.

addToHs

An integer value which is by default 0. If set to a positive value the left and right border or the hotspot zones are shifted by this value (enlarged hotspot zone).

start.position

An integer value reflecting the start position of the region to be analyzed. If set to NA the analysis starts from the beginning of the chromosome.

end.position

An integer value reflecting the end position of the region to be analyzed. If set to NA the analysis is performed until the end of the chromosome.

reverse.comp

A logical value by default FALSE. If set to TRUE then the reverse complement of the sequence is analyzed.

bed_file

A bed file containing the chromosomes, start, and end positions of the region(s) that should be analyzed.

pos_matrix

A matrix or dataframe containing the chromosomes, start, and end positions of the region(s) that should be analyzed.

output_file

The default is an empty string and does not save an output-file. The output will be saved if the parameter is changed to a user defined string excluding the extension (by default .bed).

species

The human genome (version 19) is default but an alternative genome can be provided. For chimpanzees the parameter has to be BSgenome.Ptroglodytes.UCSC.panTro5 (given that the data is installed).

dsb_map

The DSB map of the human genome (version 19) is default but an alternative DSB map from a different genome can be provided. This parameter needs to be a data frame with at least 3 columns that contains the chromosome, start, and end position of the DSB. The DSB map for chimpanzees is included in the package.

Value

The output of the function is a list with the following content:

Sequence Name

The chromosome with the starting and end position of the region under study is provided.

Reverse Complement

An indicator whether the reverse complement was considered

Number of allowed Mismatches

The number of allowed mismatches is provided.

Minimum Length

The minimum length of the STR to be extracted is provided.

Number of Matches

The total number of STR matches of the region is provided.

Length of STR stretch in bp

A vector containing the length of STRs per match is provided.

Start positions

The starting positions of the STRs are provided.

Zone

The zones where the STR is found are provided. 1 reflects within a hotspot, the last integer reflects that it is outside, and the integers between these two reflect the given flanking regions starting with 2 as the next closest region to the hotspot.

A BED file with the chromosomes, start, and end position of the STRs, length of the STR stretch, the zone where the STR was found, and the specified region that was analyzed are given as columns.

Author(s)

Philipp Hermann, philipp.hermann@jku.at, Monika Heinzl, monika.heinzl@edumail.at Angelika Heissl, Irene Tiemann-Boege, Andreas Futschik

References

Heissl, A., et al. (2019) The impact of poly-A microsatellite heterologies in meiotic recombination. Life Science Alliance, 2(2) e20190036, doi: https://doi.org/10.26508/lsa.201900364

Pratto, F., et al. (2014). Recombination initiation maps of individual human genomes. Science, 346(6211).

Kuhn RM, et al. (2013) The UCSC genome browser and associated tools, Brief. Bioinform., 14, 144-161.

See Also

getflank2, STR_detection

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
data(chr6_1580213_1582559)
STR_analysis(seqName = chr6_1580213_1582559, nr.STRs = 10, nr.mismatch = 0, chrs = "chr6",
STR = "A", lens.grey = 0:1*100, start.position = 1580213, end.position = 1582559,
reverse.comp = FALSE,
species = BSgenome.Hsapiens.UCSC.hg19::Hsapiens, dsb_map = STRAH::dsb_map)

STR_analysis(nr.STRs = 10, nr.mismatch = 0, chrs = "chr22", STR = "A", lens.grey = 0:1*100,
start.position = 30000000, end.position = 31000000, reverse.comp = FALSE,
species = BSgenome.Hsapiens.UCSC.hg19::Hsapiens, dsb_map = STRAH::dsb_map)
# If you want to use the function with a different reference genome
# make your choice and install it before:
if(requireNamespace("BSgenome.Ptroglodytes.UCSC.panTro5")) {
STR_analysis(nr.STRs = 10, nr.mismatch = 0, chrs = "chr22", STR = "A", lens.grey = 0:5*1000,
start.position = 30000000, end.position = 31000000, reverse.comp = FALSE,
species = BSgenome.Ptroglodytes.UCSC.panTro5::BSgenome.Ptroglodytes.UCSC.panTro5,
dsb_map = STRAH::dsb_map_chimp_full)
}

PhHermann/STRAH documentation built on June 7, 2020, 6:15 p.m.