Commit graph

320 commits

Author SHA1 Message Date
Waldir Leoncio
b75d38fee4 Fixed argument passing (#25) 2023-08-09 14:45:43 +02:00
Waldir Leoncio
3d3131b68c squash! Replaced 1:npops with seq_len(npops) (#25)
Replaced 1: with seq_len() and seq_along() (#25).

Helps working around NULL and 0 values.
2023-08-09 14:40:09 +02:00
Waldir Leoncio
7bb1a8181e Commented-out debugging print() usage (#25) 2023-08-09 14:19:06 +02:00
Waldir Leoncio
f93f7c7de9 Replaced 1:npops with seq_len(npops) (#25) 2023-08-09 14:18:43 +02:00
Waldir Leoncio
5d3acc7cb0 Improved messages (#25) 2023-08-09 14:18:20 +02:00
Waldir Leoncio
3ab0a73a02 Added iter limit to prevent infinite loop (#25) 2023-08-09 14:17:54 +02:00
Waldir Leoncio
b034158e2b Improved handling of NULL objects (#25) 2023-08-09 14:17:17 +02:00
Waldir Leoncio
843a929938 Syntax fix (#25) 2023-08-09 14:16:04 +02:00
Waldir Leoncio
15da6cdced Improved argument retrieval on greedyMix() (#25) 2023-08-09 13:13:50 +02:00
Waldir Leoncio
bfeb2796c2 Improved example (#25) 2023-08-09 13:13:16 +02:00
Waldir Leoncio
ba968e77d5 Syntax fix to indMix() (#25) 2023-08-09 13:12:18 +02:00
Waldir Leoncio
3069577ebd Removing handleData() from greedyMix() (#25)
Apparently that function is only used if the input is Genepop or BAPS format. However, its code might be useful for reducing some of the input of greedyMix(), as it contains the calculation for them.
2023-08-09 12:50:33 +02:00
Waldir Leoncio
cae1fe4c1e Incorporating subfunctions of greedyMix() (#25) 2023-08-09 12:06:09 +02:00
Waldir Leoncio
103dc6acd6 Added MATLAB code from original greedyMix() (#25) 2023-08-09 11:26:29 +02:00
Waldir Leoncio
bf7d05eb8d Moved file import away from greedyMix() (#25) 2023-08-09 11:11:12 +02:00
Waldir Leoncio
687a6fb671 Moved used datasets to /isnt/extdata (#25) 2023-08-09 10:54:48 +02:00
Waldir Leoncio
7aff7bbb82 Internalized all functions except greedyMix() and load_fasta() (#25) 2023-08-09 09:36:15 +02:00
Waldir Leoncio
8bddd70781 Syntax fixes (#3) 2023-02-16 15:30:15 +01:00
Waldir Leoncio
a8cae95c82 Added tests, fixed subfunctions (#3) 2023-02-10 15:11:54 +01:00
Waldir Leoncio
3cfbe5bfe8 fixup! Translated testFastaData() (#3) 2023-02-07 10:37:00 +01:00
Waldir Leoncio
45a41a9faa Fixed log2() on getPopDistancesByKL() 2023-02-01 13:46:58 +01:00
Waldir Leoncio
257046dc5f Fixed synxtax of zeallot call (#3) 2023-01-23 11:22:01 +01:00
Waldir Leoncio
8ce9f3af04 Translated testFastaData() (#3) 2023-01-23 11:21:16 +01:00
Waldir Leoncio
3a479d1232 Making it clear which package log2() is coming from (#3) 2022-12-23 14:14:27 +01:00
Waldir Leoncio
98cde6b23e Translated dec2bitv() (#3) 2022-12-23 13:42:05 +01:00
Waldir Leoncio
ce53f1f45d Translated ind2subv() (#3) 2022-12-23 13:11:55 +01:00
Waldir Leoncio
547bb7309c Translated minimum_spanning_tree() (#3) 2022-12-23 10:45:50 +01:00
Waldir Leoncio
0048a4e5fd Added placeholder for ind2subv() 2022-12-22 15:06:04 +01:00
Waldir Leoncio
b6afea85e1 Translated myisvector() 2022-12-22 15:06:04 +01:00
Waldir Leoncio
6f8e1a51a2 Translated mysize() 2022-12-22 15:06:04 +01:00
Waldir Leoncio
6a81eb9d2c Translated argmin() 2022-12-22 15:06:04 +01:00
Waldir Leoncio
c69c0639ae Translated elim_order() 2022-12-22 15:06:04 +01:00
Waldir Leoncio
aff5b3de15 Added more functions to translate 2022-12-22 15:06:04 +01:00
Waldir Leoncio
ac1e73c6fa Translated cliques_to_jtree() 2022-12-22 15:06:04 +01:00
Waldir Leoncio
76d31e593a Translated setdiag() 2022-12-22 13:43:36 +01:00
Waldir Leoncio
f2f59ba7f8 Translated myunion() 2022-12-22 13:36:07 +01:00
Waldir Leoncio
a757a4435c Translated mysubset() 2022-12-22 13:31:41 +01:00
Waldir Leoncio
73438af7bb Removed translating TODOs
Replaced with built-in TODO list in Issue #3's body
2022-12-22 13:29:54 +01:00
Waldir Leoncio
bc5bb61f52 Added placeholder for mysubset() 2022-12-22 13:18:54 +01:00
Waldir Leoncio
d4c11a89af Translated neighbors() 2022-12-22 13:12:44 +01:00
Waldir Leoncio
eabfd2efea Translated triangulate() 2022-12-22 11:57:32 +01:00
Waldir Leoncio
17019a9c94 Added commented-out original code to still-empty functions 2022-12-22 11:57:18 +01:00
Waldir Leoncio
e60e40b21c Translated myintersect() 2022-12-22 10:41:26 +01:00
Waldir Leoncio
e094a8d317 Workaround for variable scope check note
Read https://github.com/r-lib/zeallot/issues/57 for more details
2022-12-22 10:00:21 +01:00
Waldir Leoncio
17a5ff66d6 Translated findCliques() + subfunctions 2022-12-22 08:59:48 +01:00
Waldir Leoncio
80ddbbdd00 Importing zeallot package
Its unpacking operator, %<-%, looks very promising for DRYing the codebase, which uses lots of multiple assignments.
2022-12-21 14:40:12 +01:00
Waldir Leoncio
8f167f2e43 Translated laskeKlitik()
Also, added placeholder for subfunction findCliques()
2022-12-21 14:27:29 +01:00
Waldir Leoncio
85c412f347 Translated testaaKoordinaatit() (#3) 2022-11-16 11:56:21 +01:00
Waldir Leoncio
53bae46397 Translated checkLogml() (#3) 2022-09-15 13:02:32 +02:00
Waldir Leoncio
46dc08905a Translated laskemuutokset{1-5}() (#3) 2022-09-15 12:47:22 +02:00