Skip to content

Commit e4bf354

Browse files
committed
update readme with preprint doi
1 parent 7ebc6b2 commit e4bf354

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

R/eigen_analyse_vectors.R

+6-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@
77
#' @return A list object with three elements detailing the results: "eigenvals" contains the eigenvalue distribution, "eigenvecs" contains the eigenvectors, "A_matrix" contains the projected SNP scores for each eigenvector
88
#' @export
99
eigen_analyse_vectors <- function(vector_input){
10-
C <- vector_input%*%t(vector_input) ### Calculate matrix C ####
11-
eig <- eigen(C) ### eigen decomposition of C ###
12-
vecs <- eig$vectors ### eigenvectors (Q) of C ###
10+
# Calculate matrix C
11+
C <- vector_input%*%t(vector_input)
12+
# eigen decomposition of C
13+
eig <- eigen(C)
14+
# eigenvectors (Q) of C
15+
vecs <- eig$vectors
1316
vals <- eig$values
1417
a1 <- t(vecs)
1518
A <- t(vector_input) %*% solve(a1)

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Allele Frequency Vector Analysis of Parallel Evolutionary Responses
1+
# Allele Frequency Vector Analysis of Parallel Evolutionary Responses
22

33
The aim of this software is to quantify and compare parallel genotype
44
change based on allele frequency changes between population pairs. The
@@ -14,7 +14,7 @@ eigenvalues is indicative of multiple parallel/antiparallel axes within
1414
a genomic region, highlighting nonparallelism.
1515

1616
For more information on the software, please see the accompanying
17-
preprint: XXX
17+
preprint: https://www.biorxiv.org/content/10.1101/2021.09.17.460770v1
1818

1919
<!-- ### Load from development dir -->
2020
<!-- ```{r} -->

0 commit comments

Comments
 (0)