You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@NLesniak I wonder if read_dist() should have a more specific name since it is specifically for phylip-formatted lower triangular matrices, and not for square matrices or mothur's column format? e.g. read_mtx_phylip() or something like that?
@kelly-sovacool do you think we should rename this and have a specific function for each or add the ability to read different input types to this function?
@NLesniak perhaps both? For now maybe we should rename this one to something phylip-specific. If we want/need to add support for other file types, we would add those as functions following a similar naming scheme. Potentially then read_dist() could become a wrapper around those functions with a file type parameter.
Activity
kelly-sovacool commentedon Oct 13, 2020
@NLesniak I wonder if
read_dist()should have a more specific name since it is specifically for phylip-formatted lower triangular matrices, and not for square matrices or mothur's column format? e.g.read_mtx_phylip()or something like that?NLesniak commentedon Oct 15, 2020
@kelly-sovacool do you think we should rename this and have a specific function for each or add the ability to read different input types to this function?
kelly-sovacool commentedon Oct 15, 2020
@NLesniak perhaps both? For now maybe we should rename this one to something phylip-specific. If we want/need to add support for other file types, we would add those as functions following a similar naming scheme. Potentially then
read_dist()could become a wrapper around those functions with a file type parameter.kelly-sovacool commentedon Mar 20, 2023
Pat's code to read mothur's lower triangular distance file as a matrix: https://github.com/riffomonas/distances/blob/f5cb11b7d8c5a900249c5e676269699411f0092a/code/read_matrix.R
[-]read_dist() input validation[/-][+]Refactor `read_dist()`[/+][-]Refactor `read_dist()`[/-][+]Refactor read_dist()[/+]