Learn R Programming

snplinkage (version 1.2.0)

Single Nucleotide Polymorphisms Linkage Disequilibrium Visualizations

Description

Linkage disequilibrium visualizations of up to several hundreds of single nucleotide polymorphisms (SNPs), annotated with chromosomic positions and gene names. Two types of plots are available for small numbers of SNPs (<40) and for large numbers (tested up to 500). Both can be extended by combining other ggplots, e.g. association studies results, and functions enable to directly visualize the effect of SNP selection methods, as minor allele frequency filtering and TagSNP selection, with a second correlation heatmap. The SNPs correlations are computed on Genotype Data objects from the 'GWASTools' package using the 'SNPRelate' package, and the plots are customizable 'ggplot2' and 'gtable' objects and are annotated using the 'biomaRt' package. Usage is detailed in the vignette with example data and results from up to 500 SNPs of 1,200 scans are in Charlon T. (2019) .

Copy Link

Version

Install

install.packages('snplinkage')

Monthly Downloads

223

Version

1.2.0

License

GPL-3

Maintainer

Thomas Charlon

Last Published

September 9th, 2024

Functions in snplinkage (1.2.0)

fetch_gds.GenotypeDataSubset

Fetch GDS (GenotypeDataSubset)
ggplot_snp_pos

Ggplot SNPs position
fetch_allele2.GenotypeDataSubset

Fetch allele 1 (GenotypeDataSubset object)
fetch_allele2.GdsGenotypeReader

Fetch allele 2 (GdsGenotypeReader object)
fetch_allele2.default

Fetch allele 2 (default object)
gtable_ld

Gtable of linkage disequilibrium and chromosomic positions
snplinkage-package

snplinkage: Single Nucleotide Polymorphisms Linkage Disequilibrium Visualizations
select_region_idxs

select_region_idxs
fetch_gds.default

Fetch GDS (default)
print_qc_as_tex_table

print_qc_as_tex_table
gdata_snps_annots

gdata_snp_annots
gdata_add_gene_annots

gdata_add_gene_annots
gdata_add_gene_annots_hladr_example

gdata_add_gene_annots_hladr_example
get_biomart_metadb

get_biomart_metadb
fetch_allele2.GenotypeData

Fetch allele 2 (GenotypeData object)
gdata_scans_annots

gdata_scan_annots
save_hgdp_as_gds

save_hgdp_as_gds
gtable_ld_gdata

Gtable of linkage disequilibrium and positions using a GenotypeData object
gtable_ld_associations_gdata

Gtable of linkage disequilibrium and associations using a GenotypeData object
snprelate_ld_select

Wrapper for snpgdsLDpruning to select Tag SNPs
parallel_apply

Separate a matrix in a list of matrices of length the number of cores and apply a function on the columns in parallel
%>%

Pipe
gdata_add_gene_annots_aim_example

gdata_add_gene_annots_aim_example
ggplot_associations

Ggplot associations
ggplot_ld

Ggplot linkage disequilibrium
gtable_ld_grobs

Build gtable by combining ggplots
snprelate_qc

snprelate_qc
get_snp_annot.GenotypeData

Get SNPs annotations (GenotypeData object)
is_snp_first_dim.default

Is SNP first dimension (default)
is_snp_first_dim.GdsGenotypeReader

Is SNP first dimension (GdsGenotypeReader object)
is_snp_first_dim.NcdfGenotypeReader

Is SNP first dimension (NcdfGenotypeReader object)
gtable_ld_associations

Gtable of linkage disequilibrium and associations
gtable_ld_associations_combine

Build gtable by combining ggplots
is_snp_first_dim.GenotypeData

Is SNP first dimension (GenotypeData object)
snprelate_ld

Wrapper for snpgdsLDMat to compute r2
snprelate_allele_frequencies

Compute allele frequencie and snp missing rate
load_gds_as_genotype_data

Load GDS as Genotype Data
is_snp_first_dim.gds.class

Is SNP first dimension (GDS object)
get_snp_annot.GenotypeDataSubset

Get SNPs annotations (GenotypeDataSubset object)
is_snp_first_dim.MatrixGenotypeReader

Is SNP first dimension (MatrixGenotypeReader object)
diamond_annots

Get diamond ggplot layer.
chisq_pvalues

Compute Chi-squared p-values
%$%

Exposition pipe
chisq_pvalues_gdata

Compute Chi-squared p-values on a Genotype data object
fetch_allele1.GdsGenotypeReader

Fetch allele 1 (GdsGenotypeReader object)
%<>%

Assignment pipe
crohn

Crohn's disease data
fetch_allele1.GenotypeData

Fetch allele 1 (GenotypeData object)
fetch_gds.GdsGenotypeReader

Fetch GDS (GdsGenotypeReader)
fetch_allele1.GenotypeDataSubset

Fetch allele 1 (GenotypeDataSubset object)
fetch_allele1.default

Fetch allele 1 (default object)
fetch_gds.GenotypeData

Fetch GDS (GenotypeData)
get_scan_annot.GenotypeData

Get scans annotations (GenotypeData object)
get_scan_annot.GenotypeDataSubset

Get scans annotations (GenotypeDataSubset object)