Skip to content

Commit

Permalink
remove panphlan (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
anikaluo authored Aug 16, 2021
1 parent 617c76c commit ce3a910
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/general.jl
Original file line number Diff line number Diff line change
Expand Up @@ -141,20 +141,3 @@ function permanova(dm::Array{<:Real,2}, metadata::AbstractDataFrame, nperm=999;

return p
end
#==============
PanPhlAn Utils
==============#

function panphlan_calcs(df::DataFrame)
abun = abundancetable(df)
dm = pairwise(Jaccard(), abun, dims=2)
rowdm = pairwise(Jaccard(), abun, dims=1)
col_clust = hclust(dm, :single)
row_clust = hclust(rowdm, :single)
optimalorder!(col_clust, dm)
optimalorder!(row_clust, rowdm)

mds = fit(MDS, dm, distances=true)

return abun, dm, col_clust, row_clust, mds
end

0 comments on commit ce3a910

Please sign in to comment.