Skip to content

Commit 8d10e34

Browse files
committed
Added documentation
1 parent bb318c9 commit 8d10e34

File tree

10 files changed

+160
-22
lines changed

10 files changed

+160
-22
lines changed

R/Rchimerism.R

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11

22

33
#' Rchimerism
4+
#'
5+
#' Use Rchimerism through the shiny interface
6+
#'
7+
#' This function allows the user to input data files
8+
#' and view the chimerism percentages along with the input data matrices
9+
#' through the browser interface, with the options to download the results
10+
#'
411
#' @name Rchimerism
512
#' @importFrom shiny fluidPage
613
#' @importFrom shiny titlePanel
@@ -27,6 +34,8 @@
2734
#' @importFrom shiny stopApp
2835
#' @importFrom shiny shinyApp
2936
#' @importFrom shiny shinyUI
37+
#'
38+
#' @return Returns nothing
3039

3140
#' @export
3241

R/chiDD.R

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1-
##############################################################
2-
# Double Donor
3-
# Based on the informative alleles, calculate donor proportion
4-
# Input: rcode.profile; rcode.markers; sdata.txt
5-
# Output: results.xls
6-
##############################################################
1+
2+
#' Rchimerism chiDD
3+
#'
4+
#' An internal function to determine donor percentages for a single donor
5+
#'
6+
#'
7+
#' @param sdata Sample data input text file
8+
#' @param markers List of locus markers
9+
#' @param profile,ru,rt,rnn,d1nn,d2nn,d1u,d2u,d1t,d2t,r Internal variables for matrix operations
10+
#'
11+
#' @return A data frame with donor percentage results, and sample allele matrix
12+
#'
13+
#'
714

815

916
#load('locusDD.RData'); #load the previous workplace (r, d, markers, profile)

R/chiSD.R

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
1-
##############################################################
2-
# Single Donor
3-
# Based on the informative alleles, calculate donor proportion
4-
# Input: rcode.profile; rcode.markers; sdata.txt
5-
# Output: results.xls
6-
##############################################################
1+
2+
#' Rchimerism chiSD
3+
#'
4+
#' An internal function to determine donor percentages for a single donor
5+
#'
6+
#'
7+
#' @param sdata Sample data input text file
8+
#' @param markers List of locus markers
9+
#' @param profile,rt,dt,d,r Internal variables for matrix operations
10+
#'
11+
#' @return A data frame with donor percentage results, and sample allele matrix
12+
#'
13+
#'
14+
715

816

917
#sdata,markers,rt,dm,rm

R/locDD.R

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
1+
2+
3+
#' Rchimerism locDD
4+
#'
5+
#' An internal function to determine informative loci for double donor cases
6+
#'
7+
#'
8+
#' @param donor1_data Donor 1 data input text file
9+
#' @param donor2_data Donor 2 data input text file
10+
#' @param recipient_data Recipient data input text file
11+
#' @param markers List of locus markers
12+
#'
13+
#'
14+
#' @return Internal variables used by chiDD.R
15+
16+
# Output: profile,ru,rt,rnn,d1nn,d2nn,d1u,d2u,d1t,d2t,r,d1m,d2m,rm
117
#############################################
2-
# Decide informative loci for double donor
3-
# Input: ddata.txt; rdata.txt
4-
# Output: rcode.profile; rcode.markers; rcode.donor; rcode.recipient;
5-
#############################################
18+
19+
620

721
#markers = c('D3S1358','TH01','D21S11','D18S51','Penta E','D5S818','D13S317','D7S820','D16S539','CSF1PO','Penta D','vWA','D8S1179','TPOX','FGA');
822
locDD <- function(donor1_data, donor2_data,recipient_data,markers) {

R/locSD.R

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
#############################################
2-
# Decide informative loci for single donor
3-
# Input: ddata.txt; rdata.txt
4-
# Output: rcode.profile; rcode.markers; rcode.donor; rcode.recipient;
5-
#############################################
61

72

3+
#' Rchimerism locSD
4+
#'
5+
#' An internal function to determine informative loci for a single donor
6+
#'
7+
#'
8+
#' @param ddata Donor data input text file
9+
#' @param rdata Recipient data input text file
10+
#' @param markers List of locus markers
11+
#'
12+
#' @return Internal variables used by chiSD.R
813

914
locSD <- function(ddata,rdata,markers) {
1015
#markers = c('D3S1358','TH01','D21S11','D18S51','Penta E','D5S818','D13S317','D7S820','D16S539','CSF1PO','Penta D','vWA','D8S1179','TPOX','FGA');

man/Rchimerism.Rd

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/chiDD.Rd

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/chiSD.Rd

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/locDD.Rd

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/locSD.Rd

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)