-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'issue-24' into develop
* issue-24: Updated docs Temp-wrapping disfunctional code Aligned processing of Genepop with MATLAB code Dropped support for GenePop on `importFile()` Added `process_GenePop_data()` Fixed `addAlleles()` handleData defaults to BAPS format Added unit tests for `greedyMix()` on GenePop (#24) Added GenePop data, txt and gen (#24)
- Loading branch information
Showing
10 changed files
with
69 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
process_GenePop_data <- function(filename) { | ||
# Pre-processing GenePop data | ||
kunnossa <- testaaGenePopData(filename) | ||
data_popnames <- lueGenePopData(filename) | ||
data <- data_popnames$data | ||
popnames <- data_popnames$popnames | ||
|
||
# Processing GenePop data | ||
c <- handleData(data, "genepop") | ||
Z_dist <- newGetDistances(c$newData, c$rowsFromInd) | ||
|
||
# Forming and returning pre-processed data | ||
list( | ||
"data" = c$newData, | ||
"rowsFromInd" = c$rowsFromInd, | ||
"alleleCodes" = c$alleleCodes, | ||
"noalle" = c$noalle, | ||
"adjprior" = c$adjprior, | ||
"priorTerm" = c$priorTerm, | ||
"dist" = Z_dist$dist, | ||
"popnames" = popnames, | ||
"Z" = Z_dist$Z | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Example GenePop Data | ||
Loc1 | ||
Loc2 | ||
Loc3 | ||
Pop | ||
Ind1, 0101 0202 0303 | ||
Ind2, 0102 0201 0303 | ||
Ind3, 0101 0202 0303 | ||
Pop | ||
Ind4, 0101 0202 0303 | ||
Ind5, 0102 0201 0303 | ||
Ind6, 0101 0202 0303 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Example GenePop Data | ||
Loc1 | ||
Loc2 | ||
Loc3 | ||
Pop | ||
Ind1, 0101 0202 0303 | ||
Ind2, 0102 0201 0303 | ||
Ind3, 0101 0202 0303 | ||
Pop | ||
Ind4, 0101 0202 0303 | ||
Ind5, 0102 0201 0303 | ||
Ind6, 0101 0202 0303 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters