knitr::opts_chunk$set(echo = FALSE)

DOQTL2 packages

The following packages were split off from Yandell's R/doqtl2 package and are now repositories at http://github.com/byandell:

Multiple Trait Strategy

Here is a strategy to look at multiple traits in a small interval:

Some challenges

How to incorporate this into shiny tool?

Imports

All packages are now set up to formally import functions or data from other packages. Thus, no packages are actually loaded, which should speed up processes. All packages import from some http://tidyverse.org package.

CCSanger imports

DOread imports

qtl2pattern imports

qtl2ggplot imports

qtl2shiny imports

CausalMST imports

Package functions and data

DOread functions

These routines assume data are in RDS files in folder datapath. The read data routines use analyses_tbl created for data entry workflow. Typically one would first do steps indicated in system.file(file.path("doqtl2", "setup.R"), package='qtl2shiny'). These include

covar <- readRDS(file.path(datapath, "covar.rds"))
analyses_tbl <- readRDS(file.path(datapath, "analyses.rds")

The read genotype probability routines assume qtl2geno::calc_genoprob has been run. For quicker access, the chromosomes are stored in separate RDS file.

CCSanger functions and data

Here are the main components, including CC colors and access to SQL databases with gene, SNP and SVS features.

The following pull features. Some have subset, summary or plot methods.

The rest are mostly utilities used in various places.

qtl2pattern functions

This routine will be folded into plot_snpasso use, but has a few aspects not yet captured.

Following are utility routines

qtl2ggplot functions

Plot methods for scan1, scan1coef, genes and listof_scan1coef objects.

The following are utility routines:

qtl2shiny functions

Function migration

The following tables show functions from R/doqtl2 used by shiny app. Some of them will stay, but some of them will be simplified, for instance to fit with R/qtl2ggplot, etc.

file | function ----------------- | -------- shinyGeneExon.R | plot_gene_exon shinyGeneRegion.R | get_mgi_features shinyPattern.R | scan_pattern shinyProbs.R | get_snpprobs read_probs read_probs36 shinySNPAllele.R | get_gene_exon_snp get_top_snps_tbl snpprob_collapse shinyScan1Plot.R | listof_scan1coefCC shinySetup.R | get_pheno shinyTopFeature.R | merge_feature

function | file | use ----------------- | -------- | -------- get_gene_exon_snp | gene_exon.R | call get_mgi_features get_mgi_features | get_mgi_features.R | extract from SQLite get_pheno | get_traits.R | get selected phenotypes get_snpprobs | snpinfo.R | snpprobs for SNPs, InDels, SVs get_top_snps_tbl | top_snps_tbl.R | get top SNP info based on LMMs listof_scan1coefCC | listof_scan1coefCC.R | create list of scan1coefCC objects merge_feature | merge_feature.R | merge SNP LOD and other information plot_gene_exon | gene_exon.R | plot genes and exons read_probs | read_probs.R | read genoprob object for RDS read_probs36 | read_probs.R | read genoprob object for RDS scan_pattern | scan_pattern.R | genome scan by pattern set snpprob_collapse | genoprob_to_patternprob.R | collapse from alleles to SNPs

Want scan_pattern to look like plot_snpasso with pattern="all".

Need to work on geno and exon stuff to meld with plot_genes.



byandell/qtl2pattern documentation built on Nov. 9, 2023, 7:57 p.m.