Skip to content

Commit aa3e4f0

Browse files
committed
update readme
1 parent 4de1238 commit aa3e4f0

File tree

3 files changed

+16
-18
lines changed

3 files changed

+16
-18
lines changed

PCAone.pdf

247 Bytes
Binary file not shown.

README.org

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#+subtitle: Version 0.5.0
33
#+author: Zilong Li
44
5-
#+options: toc:2 num:nil email:t -:nil ^:nil
5+
#+options: toc:2 num:t email:t -:nil ^:nil
66
#+latex_compiler: xelatex
77
#+latex_class: article
88
#+latex_class_options: [a4paper, 11pt]
@@ -13,11 +13,11 @@
1313
#+latex_header: \hypersetup{colorlinks=true, linkcolor=blue}
1414
#+latex: \clearpage
1515

16-
[[https://github.com/Zilong-Li/PCAone/actions/workflows/linux.yml/badge.svg]]
17-
[[https://github.com/Zilong-Li/PCAone/actions/workflows/mac.yml/badge.svg]]
18-
[[https://bioconda.github.io/recipes/pcaone/README.html][https://img.shields.io/badge/install%20with-bioconda-brightgreen.svg?style=flat]]
19-
[[https://github.com/Zilong-Li/PCAone/releases/latest][https://img.shields.io/github/v/release/Zilong-Li/PCAone.svg]]
20-
[[https://anaconda.org/bioconda/pcaone/badges/downloads.svg]]
16+
# [[https://github.com/Zilong-Li/PCAone/actions/workflows/linux.yml/badge.svg]]
17+
# [[https://github.com/Zilong-Li/PCAone/actions/workflows/mac.yml/badge.svg]]
18+
# [[https://bioconda.github.io/recipes/pcaone/README.html][https://img.shields.io/badge/install%20with-bioconda-brightgreen.svg?style=flat]]
19+
# [[https://github.com/Zilong-Li/PCAone/releases/latest][https://img.shields.io/github/v/release/Zilong-Li/PCAone.svg]]
20+
# [[https://anaconda.org/bioconda/pcaone/badges/downloads.svg]]
2121

2222
* Introduction
2323

@@ -90,7 +90,7 @@ See [[file:CHANGELOG.org][change log]] here.
9090

9191
- If using the PCAngsd algorithm, please also cite [[https://www.genetics.org/content/210/2/719][Inferring Population Structure and Admixture Proportions in Low-Depth NGS Data]].
9292

93-
- If using the ancestry ajusted LD statistics for pruning and clumping, please also cite [[https://doi.org/10.1101/2024.05.02.592187][Measuring linkage disequilibrium and improvement of pruning and clumping in structured populations]].
93+
- If using the ancestry ajusted LD statistics for pruning and clumping, please also cite [[doi:10.1093/genetics/iyaf009][Measuring linkage disequilibrium and improvement of pruning and clumping in structured populations]].
9494

9595
* Quick start
9696

@@ -278,14 +278,14 @@ This depends on your datasets, particularlly the relationship between number
278278
of samples (=N=) and the number of variants / features (=M=) and the top PCs
279279
(=k=). Here is an overview and the recommendation.
280280

281-
|--------------------------+-----------+--------------------------------------|
282-
| Method | Accuracy | Scenario |
283-
|--------------------------+-----------+--------------------------------------|
284-
| Full SVD (-d 3) | Exact | full variance explained |
285-
| Window-based RSVD (-d 2) | Very high | large scale data with =M > 1,000,000= |
286-
| IRAM (-d 0) | Very high | large scale data with =N < 5000= |
287-
| RSVD (-d 1) | High | accuracy insensitive, any scale data |
288-
|--------------------------+-----------+--------------------------------------|
281+
|-----------------+-------------------------+-----------+--------------------------------|
282+
| Method | Scenario | Accuracy | Speed |
283+
|-----------------+-------------------------+-----------+--------------------------------|
284+
| Full SVD (-d 3) | full variance explained | Exact | slow for big =N= and =M= |
285+
| winSVD (-d 2) | data with =M >> N= | Very high | fast (only 7 iterations used) |
286+
| IRAM (-d 0) | data with =N < 5000= | Very high | denpends on =N= and # iterations |
287+
| sSVD (-d 1) | accuracy insensitive | High | depends on # iterations |
288+
|-----------------+-------------------------+-----------+--------------------------------|
289289

290290
** Input formats
291291

src/Data.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,7 @@ void Data::write_eigs_files(const Mat1D &S, const Mat2D &U, const Mat2D &V) {
171171
std::ofstream outs(params.fileout + ".eigvals");
172172
std::ofstream outu(params.fileout + ".eigvecs");
173173
Eigen::IOFormat fmt(6, Eigen::DontAlignCols, "\t", "\n");
174-
if (outs.is_open()) {
175-
outs << (S * params.ploidy).format(fmt) << '\n';
176-
}
174+
if (outs.is_open()) outs << (S * params.ploidy).format(fmt) << '\n';
177175
if (outu.is_open()) outu << U.format(fmt) << '\n';
178176
if (params.project == 0 && params.printv) {
179177
save_snps_in_bim();

0 commit comments

Comments
 (0)