-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
.TH DNA4_REVCOMP 3 2019-08-12 "LIBDNA" "LIBDNA" | ||
|
||
.SH NAME | ||
dna4_revcomp \- compute the reverse complement | ||
|
||
.SH SYNOPSIS | ||
.nf | ||
.B #include <dna.h> | ||
.PP | ||
.BI "char *dna4_revcomp(const char *" begin ", const char *" end ", const char *" dest ");" | ||
.fi | ||
|
||
.SH DESCRIPTION | ||
The \fBdna4_revcomp\fR() function efficiently computes the reverse complement. The input string is delimited by \fIbegin\fR and \fIend\fR (exclusive). The result is stored at \fIdest\fR. | ||
|
||
The result is undefined if the input string contains characters besides | ||
.IR A , | ||
.IR C , | ||
.IR G " and" | ||
.IR T . | ||
Lowercase letters are also not allowed. | ||
|
||
.SH RETURN VALUE | ||
The return value points one byte past the last character written (i.e. \fIdest + end - begin\fR). You may want to write a null byte there. | ||
|
||
.SH EXAMPLE | ||
.in +4 | ||
.EX | ||
const char str[] = "ACGTACGTACGT"; | ||
char buffer[13]; | ||
char *end = dna4_revcomp(str, str + sizeof(str) - 1, buffer); | ||
*end = '\\0'; | ||
assert(strncmp(str, buffer, 12) == 0); | ||
.SH SEE ALSO | ||
.BR dnax_revcomp (3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters