Package: graph4lg 1.8.0

graph4lg: Build Graphs for Landscape Genetics Analysis

Build graphs for landscape genetics analysis. This set of functions can be used to import and convert spatial and genetic data initially in different formats, import landscape graphs created with 'GRAPHAB' software (Foltete et al., 2012) <doi:10.1016/j.envsoft.2012.07.002>, make diagnosis plots of isolation by distance relationships in order to choose how to build genetic graphs, create graphs with a large range of pruning methods, weight their links with several genetic distances, plot and analyse graphs, compare them with other graphs. It uses functions from other packages such as 'adegenet' (Jombart, 2008) <doi:10.1093/bioinformatics/btn129> and 'igraph' (Csardi et Nepusz, 2006) <https://igraph.org/>. It also implements methods commonly used in landscape genetics to create graphs, described by Dyer et Nason (2004) <doi:10.1111/j.1365-294X.2004.02177.x> and Greenbaum et Fefferman (2017) <doi:10.1111/mec.14059>, and to analyse distance data (van Strien et al., 2015) <doi:10.1038/hdy.2014.62>.

Authors:Paul Savary [aut, cre], Gilles Vuidel [ctb], Tyler Rudolph [ctb], Alexandrine Daniel [ctb]

graph4lg_1.8.0.tar.gz
graph4lg_1.8.0.zip(r-4.5)graph4lg_1.8.0.zip(r-4.4)graph4lg_1.8.0.zip(r-4.3)
graph4lg_1.8.0.tgz(r-4.4-any)graph4lg_1.8.0.tgz(r-4.3-any)
graph4lg_1.8.0.tar.gz(r-4.5-noble)graph4lg_1.8.0.tar.gz(r-4.4-noble)
graph4lg_1.8.0.tgz(r-4.4-emscripten)graph4lg_1.8.0.tgz(r-4.3-emscripten)
graph4lg.pdf |graph4lg.html
graph4lg/json (API)
NEWS

# Install 'graph4lg' in R:
install.packages('graph4lg', repos = c('https://psavary3.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Datasets:

On CRAN:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

4.49 score 3 stars 52 scripts 478 downloads 67 exports 112 dependencies

Last updated 2 years agofrom:5de8af31ae. Checks:OK: 1 NOTE: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 17 2024
R-4.5-winNOTENov 17 2024
R-4.5-linuxNOTENov 17 2024
R-4.4-winNOTENov 17 2024
R-4.4-macNOTENov 17 2024
R-4.3-winNOTENov 17 2024
R-4.3-macNOTENov 17 2024

Exports:add_nodes_attrcheck_mergecompar_r_fishercompute_graph_modulcompute_node_metricconvert_cddeg2raddf_to_pw_matdist_gc_hvsdist_gc_slcdist_gc_vicentydist_great_circledist_max_corrg_percolgen_graph_indepgen_graph_thrgen_graph_topogenepop_to_genindgenind_to_genepopgenind_to_structureget_graphabget_graphab_linksetget_graphab_linkset_costget_graphab_metricget_graphab_raster_codesgini_coeffgraph_modul_compargraph_node_compargraph_plangraph_plot_compargraph_to_dfgraph_to_shpgraph_topo_compargraphab_capacitygraphab_corridorgraphab_graphgraphab_interpolgraphab_linkgraphab_metricgraphab_modulgraphab_pointsetgraphab_projectgraphab_project_descgraphab_to_igraphgstud_to_genindharm_meankernel_paramlink_comparloci_to_genindmat_cost_distmat_gen_distmat_geo_distmat_pw_dpsmat_pw_fstmypalettepatch_areasplot_graph_lgplot_w_histpop_gen_indexpop_rare_gen_indexpw_mat_to_dfreorder_matsample_rastersc01scatter_distscatter_dist_gstructure_to_genind

Dependencies:abindade4adegenetapebase64encbootbslibcachemclassclassIntcliclustercolorspacecommonmarkcpp11crayonDBIdeldirdigestdplyre1071ecodistfansifarverfastmapfontawesomeforeignfsgastongdistancegenericsggplot2gluegoftestgtablegtoolshierfstathtmltoolshttpuvigraphisobandjquerylibjsonliteKernSmoothlabelinglaterlatticelifecyclemagrittrMASSMatrixmemoisemgcvmimemunsellnlmepegaspermutepillarpixmappkgconfigplyrpolyclippromisesproxypurrrR6rappdirsrasterrbibutilsRColorBrewerRcppRcppArmadilloRcppEigenRcppParallelRdpackreshape2rlangrparts2sassscalessegmentedseqinrsfshinysourcetoolsspspatstat.dataspatstat.explorespatstat.geomspatstat.linnetspatstat.modelspatstat.randomspatstat.sparsespatstat.univarspatstat.utilsstringistringrtensorterratibbletidyrtidyselectunitsutf8vctrsveganviridisLitewithrwkxtable

1 - Landscape and genetic data processing with graph4lg

Rendered frominput_data_processing_1.Rmdusingknitr::rmarkdownon Nov 17 2024.

Last update: 2023-01-30
Started: 2020-07-22

2 - Genetic graph construction and analysis with graph4lg

Rendered fromgenetic_graph_2.Rmdusingknitr::rmarkdownon Nov 17 2024.

Last update: 2020-07-22
Started: 2020-07-22

3 - Landscape graph construction and analysis with Graphab and graph4lg

Rendered fromlandscape_graph_3.Rmdusingknitr::rmarkdownon Nov 17 2024.

Last update: 2021-03-16
Started: 2020-07-22

4 - Landscape and genetic graph comparison with graph4lg

Rendered fromgraph_comparisons_4.Rmdusingknitr::rmarkdownon Nov 17 2024.

Last update: 2020-07-22
Started: 2020-07-22

Readme and manuals

Help Manual

Help pageTopics
Add attributes to the nodes of a graphadd_nodes_attr
Compute modules from a graph by maximising modularitycompute_graph_modul
Compute graph-theoretic metrics from a graph at the node levelcompute_node_metric
Fit a model to convert cost-distances into Euclidean distancesconvert_cd
data_ex_genind genetic datasetdata_ex_genind
data_ex_gstud genetic datasetdata_ex_gstud
data_ex_loci genetic datasetdata_ex_loci
data_simul_genind genetic datasetdata_simul_genind
data_tuto : data used to generate the vignettedata_tuto
Convert an edge-list data.frame into a pairwise matrixdf_to_pw_mat
Compute the distance at which the correlation between genetic distance and landscape distance is maximaldist_max_corr
Prune a graph using the 'percolation threshold' methodg_percol
Create an independence graph of genetic differentiation from genetic data of class genindgen_graph_indep
Create a graph of genetic differentiation using a link weight thresholdgen_graph_thr
Create a graph of genetic differentiation with a specific topologygen_graph_topo
Convert a GENEPOP file into a genind objectgenepop_to_genind
Convert a genind object into a GENEPOP filegenind_to_genepop
Download Graphab if not present on the user's machineget_graphab
Get linkset computed in the Graphab projectget_graphab_linkset
Get cost values associated with a linkset in a Graphab projectget_graphab_linkset_cost
Get metrics computed at the node in the Graphab projectget_graphab_metric
Get unique raster codes from a Graphab projectget_graphab_raster_codes
Compare the partition into modules of two graphsgraph_modul_compar
Compare the local properties of the nodes from two graphsgraph_node_compar
Create a graph with a minimum planar graph topologygraph_plan
Visualize the topological differences between two spatial graphs on a mapgraph_plot_compar
Convert a graph into a edge list data.framegraph_to_df
Export a spatial graph to shapefile layersgraph_to_shp
Compute an index comparing graph topologiesgraph_topo_compar
Computes custom capacities of patches in the Graphab projectgraphab_capacity
Computes corridors from least-cost paths already computed in the Graphab projectgraphab_corridor
Create a graph in the Graphab projectgraphab_graph
Creates a raster with interpolated connectivity metric values from metrics already computed in the Graphab projectgraphab_interpol
Create a link set in the Graphab projectgraphab_link
Compute connectivity metrics from a graph in the Graphab projectgraphab_metric
Create modules from a graph in the Graphab projectgraphab_modul
Add a point set to the Graphab projectgraphab_pointset
Create a Graphab projectgraphab_project
Describe the objects of a Graphab projectgraphab_project_desc
Create landscape graphs from Graphab link setgraphab_to_igraph
Convert a file from 'gstudio' or 'popgraph' into a genind objectgstud_to_genind
Compute dispersal kernel parameterskernel_param
Convert a loci object into a genind objectloci_to_genind
Compute cost distances between points on a rastermat_cost_dist
Compute a pairwise matrix of genetic distances between populationsmat_gen_dist
Compute Euclidean geographic distances between pointsmat_geo_dist
Plot graphsplot_graph_lg
Plot histograms of link weightsplot_w_hist
Compute population-level genetic indicespop_gen_index
pts_pop_ex : details on simulated populationspts_pop_ex
pts_pop_simul : details on simulated populationspts_pop_simul
Convert a pairwise matrix into an edge-list data.framepw_mat_to_df
Reorder the rows and columns of a symmetric matrixreorder_mat
Plot scatterplots of genetic distance vs landscape distancescatter_dist
Plot scatterplots of distances to visualize the graph pruning intensityscatter_dist_g
Convert a file in STRUCTURE format into a genind objectstructure_to_genind