# innessim/random_scripts architecture

> Architecture diagram of the GitHub repository innessim/random_scripts, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/innessim/random_scripts
- Repository: https://github.com/innessim/random_scripts

## Overview

This repository is a collection of bioinformatics command-line scripts, not one integrated application. Users choose a script for a particular task and obtain files or reported results. The tree indicates ADMIXTURE analysis, subset analysis, F-statistic calculation, FASTA length ranking, and PHYLIP chunking. Only three Python scripts were sampled; the README describes the collection generally, so relationships among the other scripts and external tools cannot be verified. The graph therefore groups tools by apparent purpose without asserting a shared execution pipeline.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_admixture["ADMIXTURE analysis"]
  node_admix_run["Run ADMIXTURE<br/>[Admix_run.sh]"]
  node_best_k["Likelihood sweep"]
  node_eval_admix["Evaluate admixture<br/>[evalAdmix_run.sh]"]
  node_parallel_admix["Parallel ADMIXTURE"]
  node_evanno["Evanno analysis"]
end

subgraph group_subsets["Subset analysis"]
  node_best_reps["Select best replicates<br/>[find_best_reps.py]"]
  node_best_reps_shell["Replicate selection runner<br/>[find_best_reps.sh]"]
  node_prepare_plink["Prepare PLINK files"]
  node_parallel_sub["Parallel subset analysis"]
  node_subset_clumpak["Subset Evanno analysis"]
end

subgraph group_fcalc["F-statistic calculation"]
  node_strict_f["Strict F calculation"]
end

subgraph group_sequence["Sequence utilities"]
  node_fasta_lengths["Rank FASTA lengths<br/>[length_fasta.py]"]
  node_phy_chunks["Chunk PHYLIP sites"]
end

click node_admix_run "https://github.com/innessim/random_scripts/blob/main/ADMIXTURE/Admix_run.sh"
click node_best_k "https://github.com/innessim/random_scripts/blob/main/ADMIXTURE/best_K3_likelihood.sh"
click node_eval_admix "https://github.com/innessim/random_scripts/blob/main/ADMIXTURE/evalAdmix_run.sh"
click node_parallel_admix "https://github.com/innessim/random_scripts/blob/main/ADMIXTURE/run_admixture_parallel.sh"
click node_evanno "https://github.com/innessim/random_scripts/blob/main/ADMIXTURE/run_clumpak_evanno.sh"
click node_best_reps "https://github.com/innessim/random_scripts/blob/main/ADMIX_sub/find_best_reps.py"
click node_best_reps_shell "https://github.com/innessim/random_scripts/blob/main/ADMIX_sub/find_best_reps.sh"
click node_prepare_plink "https://github.com/innessim/random_scripts/blob/main/ADMIX_sub/prepare_plink_files.sh"
click node_parallel_sub "https://github.com/innessim/random_scripts/blob/main/ADMIX_sub/run_admix_sub_parallel.sh"
click node_subset_clumpak "https://github.com/innessim/random_scripts/blob/main/ADMIX_sub/run_clumpak_on_subsets.sh"
click node_strict_f "https://github.com/innessim/random_scripts/blob/main/F_calc_output/strict_F_calc_all_pops.sh"
click node_fasta_lengths "https://github.com/innessim/random_scripts/blob/main/fasta2vcf_output/length_fasta.py"
click node_phy_chunks "https://github.com/innessim/random_scripts/blob/main/phy2vcf_output/chunk_phy_by_sites.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_admix_run,node_best_k,node_eval_admix,node_parallel_admix,node_evanno toneBlue
class node_best_reps,node_best_reps_shell,node_prepare_plink,node_parallel_sub,node_subset_clumpak toneAmber
class node_strict_f toneMint
class node_fasta_lengths,node_phy_chunks toneRose
```

## Components

### ADMIXTURE analysis

- [Run ADMIXTURE](https://github.com/innessim/random_scripts/blob/main/ADMIXTURE/Admix_run.sh): `ADMIXTURE/Admix_run.sh`
- [Likelihood sweep](https://github.com/innessim/random_scripts/blob/main/ADMIXTURE/best_K3_likelihood.sh): `ADMIXTURE/best_K3_likelihood.sh`
- [Evaluate admixture](https://github.com/innessim/random_scripts/blob/main/ADMIXTURE/evalAdmix_run.sh): `ADMIXTURE/evalAdmix_run.sh`
- [Parallel ADMIXTURE](https://github.com/innessim/random_scripts/blob/main/ADMIXTURE/run_admixture_parallel.sh): `ADMIXTURE/run_admixture_parallel.sh`
- [Evanno analysis](https://github.com/innessim/random_scripts/blob/main/ADMIXTURE/run_clumpak_evanno.sh): `ADMIXTURE/run_clumpak_evanno.sh`

### Subset analysis

- [Select best replicates](https://github.com/innessim/random_scripts/blob/main/ADMIX_sub/find_best_reps.py): `ADMIX_sub/find_best_reps.py`
- [Replicate selection runner](https://github.com/innessim/random_scripts/blob/main/ADMIX_sub/find_best_reps.sh): `ADMIX_sub/find_best_reps.sh`
- [Prepare PLINK files](https://github.com/innessim/random_scripts/blob/main/ADMIX_sub/prepare_plink_files.sh): `ADMIX_sub/prepare_plink_files.sh`
- [Parallel subset analysis](https://github.com/innessim/random_scripts/blob/main/ADMIX_sub/run_admix_sub_parallel.sh): `ADMIX_sub/run_admix_sub_parallel.sh`
- [Subset Evanno analysis](https://github.com/innessim/random_scripts/blob/main/ADMIX_sub/run_clumpak_on_subsets.sh): `ADMIX_sub/run_clumpak_on_subsets.sh`

### F-statistic calculation

- [Strict F calculation](https://github.com/innessim/random_scripts/blob/main/F_calc_output/strict_F_calc_all_pops.sh): `F_calc_output/strict_F_calc_all_pops.sh`

### Sequence utilities

- [Rank FASTA lengths](https://github.com/innessim/random_scripts/blob/main/fasta2vcf_output/length_fasta.py): `fasta2vcf_output/length_fasta.py`
- [Chunk PHYLIP sites](https://github.com/innessim/random_scripts/blob/main/phy2vcf_output/chunk_phy_by_sites.py): `phy2vcf_output/chunk_phy_by_sites.py`
