R/Manuka11.R

Defines functions Manuka11

Documented in Manuka11

##########################################################################
# Genotyping Uncertainty with Sequencing data and linkage MAPping (GUSMap)
# Copyright 2017-2020 Timothy P. Bilton
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#########################################################################
#' Manuka chromosome 11 SNPs and pedigree file
#' 
#' Function for extracting the path to the Variant Call Format (VCF) file of the Manuka data used in the publication by \insertCite{bilton2018genetics1;textual}{GUSMap}
#' and a associated pedigree file.
#' 
#' The data consists of a full-sib family with 177 progeny and 680 SNPs, genotyped using the genotyping-by-sequencing
#' method. The data is in VCF format (see this \href{https://samtools.github.io/hts-specs/VCFv4.2.pdf}{page} 
#' for specification of VCF format). The pedigree file contains five columns, namely
#' \itemize{
#' \item SampleID: A unique character string of the sample ID. These correspond to those found in the VCF file
#' \item IndividualID: A character giving the ID number of the individual for which the sample corresponds to.
#' Note that some samples can be from the same individual. 
#' \item Mother: The ID of the mother as given in the IndividualID. Note, if the mother is unknown then this should be left blank.
#' \item Father: The ID of the father as given in the IndividualID. Note, if the father is unknown then this should be left blank.
#' \item Family: The name of the Family for a group of progeny with the same parents. Note that this is not necessary but if
#' given must be the same for all the progeny in the same family.
#' }
#' 
#' @return A character string of the complete path to the manuka data set contained in the package
#' and associated pedigree file.
#' @author Timothy P. Bilton
#' @references
#' \insertRef{bilton2018genetics1}{GUSMap}
#' @examples
#' ## extract the name of the vcf file and the pedigree file
#' Manuka11()
#' 
#' @export
## Wrapper function for reading in the Manuka data set for chromosome 11
Manuka11 <- function(){
  return(list(vcf=system.file("extdata", "Manuka_chr11.vcf", package="GUSMap"),
              ped=system.file("extdata", "Manuka_chr11_ped.csv", package="GUSMap")))
}
tpbilton/GUSMap documentation built on Feb. 22, 2025, 12:27 p.m.