module SpeciesToNetworks

#  加载需要的包
using DataFrames,MultipleTesting,HypothesisTests,StatsBase,Statistics,Graphs,CategoricalArrays,CSV

#  加载脚本
include("01-datapre.jl")
include("02-datagenerate.jl")
include("03-corcal.jl")
include("04-cornet.jl")
include("05-netinf.jl")
include("06-groupnet.jl")
include("07-bipartite.jl")
include("08-bam.jl")

#  输出函数
export RmPer,RmZeroVector,AllNoZero,Per,
       Ck1,Ck1s,GroupsMean,
       SpeciesCor,SpeciesPvalue,PvalueAdjustment,SpeciesCP,
       CP2Link,Edge2Graph,Bool2Graph,
       NetInf,NetInfValue,
       Group2Net,Groups2Net,
       BipartiteCP,Group2Bipartite,Groups2Bipartite,
       BipartiteAdjCP,BACP2Link,Group2BAM,Groups2BAM

#  设置文档
"""
SpeciesToNetworks. jl is a tool to convert species abundance data into undirected network, the basic principle of the tool is to  judge whether there is a connection according to the Spearman or Pearson. 
"""
SpeciesToNetworks

end
