read_phylip_distmat: Read a phylip formatted distance matrix

View source: R/readers.R

read_phylip_distmatR Documentation

Read a phylip formatted distance matrix

Description

This function reads a phylip formatted distance matrix, as generated by e.g. the EMBOSS tool distmat.

Usage

read_phylip_distmat(path, skip = 8, include_diagonal = T)

Arguments

path

Path to a phylip formatted distance matrix file

skip

Number of lines before the actual distance values start

include_diagonal

Should the diagonal of the distance matrix be included?

Details

The number of lines to skip can be different for different phylip distance matrix files.

For each row, the value of sequence_1 will be before the value of sequence_2 in sorting order.

Value

A tibble with the variables sequence_1, sequence_2 and distance


SWittouck/tidygenomes documentation built on Feb. 1, 2023, 9:50 p.m.