read.bed()/write.bed() cite the PLINK paper by DOI instead of a PLINK web page that timed out (ISSUE-011).cal.pc.projection() now centres and scales the cases with the mean and spread of the control group, so the cases are projected onto the control PCs. Before, the cases were centred on their own mean, which removed any shift between cases and controls. Control PCs are unchanged (ISSUE-009).cal.pc.projection() now uses data.type; before, it always scaled the data as SNPs. The default is now "snp", which matches what the function did before, so existing calls without data.type keep the same scaling (ISSUE-009).cal.pc.projection() works with a single case (ISSUE-009).read.bed() no longer returns wrong genotypes when the size of the BED file does not split evenly into its internal chunks (for example 10 individuals and 6 SNPs). It now also reads individual-major BED files and stops with a message if the BED file is too short (ISSUE-008).cal.pc.linear(XXT = FALSE) now returns the same eigenvalues and PCs as XXT = TRUE; before, it returned singular values instead of eigenvalues (ISSUE-008).cal.pc.linear() and cal.pc.projection() work with no.pc = 1 (ISSUE-008).xxt() works on a matrix with one row (ISSUE-008).simsnp and sample_labels help pages now give the real size of the data (103 individuals, 2,000 SNPs), read.bed() names the FAM file correctly, cal.pc.projection() documents $id, and the plot3views() examples use as many colors as there are labels (ISSUE-007).xxt() and write.bed() (ISSUE-007).bibentry() and c() instead of the old-style citEntry() and personList() (ISSUE-001)..Rbuildignore so repository-only files are left out of the package (ISSUE-002).xxt() no longer fails when window.size equals the number of columns (ISSUE-005).plot3views() restores graphical parameters and accepts matrix input for labels (ISSUE-006).pkgdown::build_site().use_gitlab_ci().plot3views is called and fixed bugs in it.plot3views.read.bed.plot3views.cal.pc.projectionreplace.missing from principal.component.R to for_parallel.Rread.bed, write.bed, fst.each.snp.hudson and fst.hudson.cal.pc.linear and rubikclust.cal.pc.linear A function for linear principal component analysis (PCA)fst.each.snp.hudson A function for fixation index (Fst) calculation for
all SNPs between two groups.fst.hudson A function for average fixation index (Fst) calculation
between two groups.plot3views A function to create scatter plots in three views.read.bed Read the binary PLINK format (BED, BIM, and FAM)rubikclust A function for unsupervised clustering to detect rough
structures and outliers.write.bed Write a list of SNP objects to the binary PLINK format (BED,
BIM, and FAM)xxt A function for calculating matrix multiplication between a matrix and
its transpose for large data.simsnp Synthetic dataset containing single nucleotide polymorphisms
(SNP)sample_labels Synthetic dataset containing population labels for the
dataset simsnp.example_SNP.bed Synthetic dataset containing single nucleotide polymorphisms
(SNP) in binary formatexample_SNP.bim Simulated SNP informationexample_SNP.fam Simulated sample informationSome functions were renamed from the initial version:
cal.PC.linear was changed to cal.pc.linear.plot.3views was changed to plot3views.rubikClust was changed to rubikclust.XXt was changed to xxt.