In this notebook, we will read a table with all bucky concordance factors, translate them from individuals to species and then average over species. Finally, we will export this table as csv so we can use in further analyses.
Let's start by loading packages
using Pkg
pkgs = Pkg.installed()
pkgs["PhyloNetworks"]
import PhyloNetworks
using CSV
using DataFrames
CF = PhyloNetworks.mapAllelesCFtable("pnetworks_pops.txt","test_cf.csv")
Something is wrong with readTableCF!
, it is not averaging over species:
dataCF_summarized = PhyloNetworks.readTableCF!(CF)
When we use mergeRows
explicitly, it works:
dataCF_summarized = PhyloNetworks.readTableCF!(PhyloNetworks.mergeRows(CF, [1,2,3,4,5,8,11,14]))