Package: Mega2R 1.1.0

Mega2R: Accessing and Processing a 'Mega2' Genetic Database

Uses as input genetic data that have been reformatted and stored in a 'SQLite' database; this database is initially created by the standalone 'mega2' C++ program (available freely from <https://watson.hgen.pitt.edu/register/>). Loads and manipulates data frames containing genotype, phenotype, and family information from the input 'SQLite' database, and decompresses needed subsets of the genotype data, on the fly, in a memory efficient manner. We have also created several more functions that illustrate how to use the data frames as well as perform useful tasks: these permit one to run the 'pedgene' package to carry out gene-based association tests on family data using selected marker subsets, to run the 'SKAT' package to carry out gene-based association tests using selected marker subsets, to run the 'famSKATRC' package to carry out gene-based association tests on families (optionally) and with rare or common variants using selected marker subsets, to output the 'Mega2R' data as a VCF file and related files (for phenotype and family data), and to convert the data frames into CoreArray Genomic Data Structure (GDS) format.

Authors:Robert V. Baron [aut], Daniel E. Weeks [aut, cre], University of Pittsburgh [cph]

Mega2R_1.1.0.tar.gz
Mega2R_1.1.0.zip(r-4.5)Mega2R_1.1.0.zip(r-4.4)Mega2R_1.1.0.zip(r-4.3)
Mega2R_1.1.0.tgz(r-4.4-x86_64)Mega2R_1.1.0.tgz(r-4.4-arm64)Mega2R_1.1.0.tgz(r-4.3-x86_64)Mega2R_1.1.0.tgz(r-4.3-arm64)
Mega2R_1.1.0.tar.gz(r-4.5-noble)Mega2R_1.1.0.tar.gz(r-4.4-noble)
Mega2R.pdf |Mega2R.html
Mega2R/json (API)
NEWS

# Install 'Mega2R' in R:
install.packages('Mega2R', repos = c('https://danieleweeks.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

genetics

2.00 score 8 scripts 267 downloads 1 mentions 38 exports 66 dependencies

Last updated 11 months agofrom:8446b75127. Checks:OK: 6 WARNING: 1 NOTE: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 02 2024
R-4.5-win-x86_64NOTENov 02 2024
R-4.5-linux-x86_64WARNINGNov 02 2024
R-4.4-win-x86_64OKNov 02 2024
R-4.4-mac-x86_64OKNov 02 2024
R-4.4-mac-aarch64OKNov 02 2024
R-4.3-win-x86_64OKNov 02 2024
R-4.3-mac-x86_64OKNov 02 2024
R-4.3-mac-aarch64NOTENov 02 2024

Exports:applyFnToGenesapplyFnToMarkersapplyFnToRangesclean_mega2rtutorial_datacomputeDosagedbmega2_importDOfamSKATRCDOpedgeneDOSKATdump_mega2rtutorial_datagetgenotype_persongetgenotypesgetgenotypesdosgetgenotypesgenabelgetgenotypesrawinit_famSKATRCinit_pedgeneinit_SKATMega2ENVGenABELMega2famSKATRCMega2gdsfmtMega2GenABELMega2GenABELtstMega2pedgeneMega2SKATMega2VCFmkfammkMarkersmkphenotyperead.Mega2DBsetAnnotationssetfamsetRangesshowMapNamesshowMega2ENVshowPhenoNamesuniqueFamMemberwhere_mega2rtutorial_data

Dependencies:AnnotationDbiaskpassbdsmatrixBiobaseBiocGenericsBiostringsbitbit64blobcachemcliCompQuadFormcoxmecpp11crayoncurlDBIevaluatefamSKATRCfastmapgdsfmtgenericsGenomeInfoDbGenomeInfoDbDatagluehighrhttrIRangesjsonliteKEGGRESTkinship2knitrlatticelifecycleMatrixmemoisemimeminqamitoolsnlmenumDerivopensslpedgenepkgconfigplogrpngquadprogR6RcppRcppArmadilloRcppEigenrlangRSpectraRSQLiteS4VectorsSKATSPAtestsurveysurvivalsysUCSC.utilsvctrsxfunXVectoryamlzlibbioc

Mega2R Tutorial

Rendered frommega2rtutorial.Rmdusingknitr::rmarkdownon Nov 02 2024.

Last update: 2023-12-22
Started: 2017-11-02

Readme and manuals

Help Manual

Help pageTopics
apply a function to the genotypes (markers) in each gene transcript and/or base pair rangeapplyFnToGenes
apply a function to the genotypes from a set of markersapplyFnToMarkers
apply a function to all the genotypes for markers found in several specified rangesapplyFnToRanges
remove tutorial dataclean_mega2rtutorial_data
computeDosage functioncomputeDosage
read Mega2 SQLite database into Rdbmega2_import
DofamSKATRC call back functionDOfamSKATRC
pedgene call back functionDOpedgene
SKAT call back functionDOSKAT
dump tutorial datadump_mega2rtutorial_data
fetch genotype character matrix for specified markersgetgenotypes
fetch dosage integer matrix for specified markersgetgenotypesdos
process the genotype matrix for specified markers and return the corresponding GenABEL genotype matrixgetgenotypesgenabel
fetch genotype integer matrix for specified markersgetgenotypesraw
load Mega2 SQLite database and perform initialization for famSKATRC usageinit_famSKATRC
load Mega2 SQLite database and perform initialization for pedgene usageinit_pedgene
load Mega2 SQLite database and perform initialization for SKAT usageinit_SKAT
generate gwaa.data-class objectMega2ENVGenABEL
execute the CRAN famSKAT_RC function on a subset of the gene transcriptsMega2famSKATRC
transcode mega2 to gdsfmt/SNP_ARRAYMega2gdsfmt
generate gwaa.data-class object from a *Mega2R* databaseMega2GenABEL
compare two gwaa.data-class objectsMega2GenABELtst
Execute the pedgene function on a transcript rangesMega2pedgene
Mega2R SQLite3 tablesMega2R-TBLS TBLS
Mega2R SQLite3 table filterMega2R-TBLSFilter TBLSFilter
Mega2R versionMega2RVersion
execute the CRAN SKAT function on a subset of the gene transcriptsMega2SKAT
generate a VCF file set for a collection of markersMega2VCF
assemble pedigree information into a data framemkfam
create "markers" data framemkMarkers
generate a phenotype data framemkphenotype
load Mega2 database and initialize family data frame and markers data frameread.Mega2DB
set default name of transcription database and name of database mapping gene name to entrez gene idsetAnnotations
replace the pedigree data framesetfam
set default range data: chromosome and start/end base pairsetRanges
show the association between mapno and mapnameshowMapNames
show Mega2R environment, viz. data frames and related info.showMega2ENV
show the association between index no and phenotypeshowPhenoNames
regenerate fam data frame with unique values in member columnuniqueFamMember
show directory of tutorial datawhere_mega2rtutorial_data