... | ... |
@@ -1,3 +1,27 @@ |
1 |
+#' Sequence Map Coordinates |
|
2 |
+#' |
|
3 |
+#' This is a function used to create a coordinate grid for the |
|
4 |
+#' \code{\link{sequenceMap}} function. It is based on the length of the |
|
5 |
+#' sequence being mapped, and how many residues per line are specified. |
|
6 |
+#' The function wraps the sequence to have a number of columns that is |
|
7 |
+#' the sequence length / number of residues per row, rounded up. \cr\cr |
|
8 |
+#' This is intended for use within the sequenceMap function, however, this |
|
9 |
+#' can also be used to identify the coordinates of residues within the ggplot |
|
10 |
+#' coordinate plane for addition annotations. |
|
11 |
+#' |
|
12 |
+#' @inheritParams sequenceMap |
|
13 |
+#' @inheritParams sequenceCheck |
|
14 |
+#' |
|
15 |
+#' @return A data frame with rows containing the amino acid sequence, residue |
|
16 |
+#' position within the sequence, as well as the row and column of each |
|
17 |
+#' residue within the ggplot output of sequenceMap(). |
|
18 |
+#' |
|
19 |
+#' @seealso \code{\link{sequenceMapCoordinates}} for mapping coordinates |
|
20 |
+#' @export |
|
21 |
+ |
|
22 |
+ |
|
23 |
+ |
|
24 |
+ |
|
1 | 25 |
sequenceMapCoordinates <- |
2 | 26 |
function(sequence, |
3 | 27 |
nbResidues = 30) { |
76 | 79 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,37 @@ |
1 |
+% Generated by roxygen2: do not edit by hand |
|
2 |
+% Please edit documentation in R/sequenceMapCoordinates.R |
|
3 |
+\name{sequenceMapCoordinates} |
|
4 |
+\alias{sequenceMapCoordinates} |
|
5 |
+\title{Sequence Map Coordinates} |
|
6 |
+\usage{ |
|
7 |
+sequenceMapCoordinates(sequence, nbResidues = 30) |
|
8 |
+} |
|
9 |
+\arguments{ |
|
10 |
+\item{sequence}{amino acid sequence as a single character string |
|
11 |
+or vector of single characters. |
|
12 |
+It also supports a single character string that specifies |
|
13 |
+the locaion of a .fasta or .fa file.} |
|
14 |
+ |
|
15 |
+\item{nbResidues}{numeric value, 30 by default. |
|
16 |
+The number of residues to display on each row of the plot. |
|
17 |
+It is not reccomended to be over 50 or under 10 for standard sequences. |
|
18 |
+Optimal value may vary between sequences of extreme lengths.} |
|
19 |
+} |
|
20 |
+\value{ |
|
21 |
+A data frame with rows containing the amino acid sequence, residue |
|
22 |
+ position within the sequence, as well as the row and column of each |
|
23 |
+ residue within the ggplot output of sequenceMap(). |
|
24 |
+} |
|
25 |
+\description{ |
|
26 |
+This is a function used to create a coordinate grid for the |
|
27 |
+ \code{\link{sequenceMap}} function. It is based on the length of the |
|
28 |
+ sequence being mapped, and how many residues per line are specified. |
|
29 |
+ The function wraps the sequence to have a number of columns that is |
|
30 |
+ the sequence length / number of residues per row, rounded up. \cr\cr |
|
31 |
+ This is intended for use within the sequenceMap function, however, this |
|
32 |
+ can also be used to identify the coordinates of residues within the ggplot |
|
33 |
+ coordinate plane for addition annotations. |
|
34 |
+} |
|
35 |
+\seealso{ |
|
36 |
+\code{\link{sequenceMapCoordinates}} for mapping coordinates |
|
37 |
+} |