| Crates.io | rsand |
| lib.rs | rsand |
| version | 1.0.4 |
| created_at | 2026-01-23 07:23:06.897751+00 |
| updated_at | 2026-01-23 10:36:38.462689+00 |
| description | Relational Systemwide Asymmetric Network of Dispersion |
| homepage | |
| repository | https://github.com/Ranjithn20/sand |
| max_upload_size | |
| id | 2063717 |
| size | 119,976 |
Relational Systemwide Asymmetric Network of Dispersion
Version 1.0.4
SAND is a Rust-based, command-line toolkit to infer network of dominance dispersion of a conditional system using CLR normalization, asymmetric regression, power-law analysis, and Cartesian eco-network mapping.
| Command | Description |
|---|---|
| spun | CLR/Log/Abundance normalization of compositional Omics data tables. |
| plaw | Power-law detection and system structure distribution analysis. |
| weave | Direction & Sign inference using asymmetric regression + metadata-conditioned perturbation. |
| ecocart | Eco-Cartesian network plot generation. |
| oss | One-Step-System pipeline (spun → weave → ecocart). |
Download the latest release binary from the repository:
cargo install rsand
rsand -h
# CLR normalize
rsand spun -i otu.tsv -o clr.csv -f clr
# Powerlaw analysis
rsand plaw -i clr.csv -m meta.csv -mc Condition -o dist
# Direction & sign inference
rsand weave -i clr.csv -m meta.csv -mc Condition:Case -mp 10 -t 0.05
# Eco-network chart
rsand ecocart -i weave_output.csv -m Case -o network.svg
# Full pipeline
rsand oss -i otu.tsv -m meta.csv -mc Condition -o results
This repository does not include third-party datasets directly.
To obtain the example genus-level abundance tables used for demonstrating the SAND workflow, run:
./datasets/data_download.sh
This script downloads the publicly available genus-level MetaPhlAn abundance files from the BenRossLab/T6SS-Loss project (original authors). These data are used only as example input to illustrate how SAND processes compositional tables and is not redistributed in this repository.
The metadata CSVs included here (hmp_metadata.csv, kostic_metadata.csv, vatanen_metadata.csv, yassour_metadata.csv) were created entirely by the authors of this tool to demonstrate categorical stratification workflows.
The downloaded files are provided in Excel (.xlsx) format by the original authors. SAND requires TSV formatted abundance tables, so users must convert the Excel files to TSV using any standard method.
In addition, the datasets contain column names with extra suffixes (e.g., _metaphlan_....txt). Users should ensure to remove those and only retain the sample id's alone. If unsure, refer to the included metadata files for the correct column header naming conventions (make sure the columns headers in the datamatrix matches the index of metadata file ).
Metadata files
The metadata CSV files included in this repository (hmp_metadata.csv, kostic_metadata.csv, vatanen_metadata.csv, yassour_metadata.csv) were created entirely by the authors of this project to demonstrate presence/absence stratification within the SAND workflow. These metadata files contain only categorical labels constructed for this example and do not reuse any sensitive or copyrighted materials.
This software and its visualizations are part of academic research.
If you use rsand or its ideas in scholarly work, please cite:
DOI: 10.5281/zenodo.18347261
See CITATION.cff for machine-readable citation metadata.