How rodrigo-lusa/ml_isolados_brasileiros works
This repository is a research workflow for comparing antimicrobial resistomes in Brazilian clinical isolates and, eventually, environmental MAGs. Its principal path runs from public genome and metadata sources through metadata curation and resistome matrices, then into per-genome features, risk clustering, and supervised classification. The README identifies ARGOS as an external library used to produce matrices; the sampled Python modules implement feature construction, clustering, and classification. Notebook internals are not sampled, so notebook-stage links below rely on README statements and are not presented as inspected code calls.
Main entry points: isolates_metadata.csv Raw isolate metadata · classifier.py Supervised classifier · features_estruturadas.csv Structured features · 03_new_make_features.ipynb Feature workflow
Components 19
Data inputs
- Raw isolate metadata
data/raw/isolates_metadata.csv
Curation and features
- Metadata curation
notebooks/00_ajuste_metadados.ipynb - AMR feature builder
notebooks/src/features_amr.py - Risk feature builder
notebooks/src/features_risco.py - Feature workflow
notebooks/03_new_make_features.ipynb - Feature selection
notebooks/03_feature_selection.ipynb
Risk analysis
- Risk clustering
notebooks/src/clustering.py - Cluster analysis
notebooks/04_clusterizacao_risco.ipynb - Supervised classifier
notebooks/src/classifier.py - Classification analysis
notebooks/07_classificacao.ipynb
Research artifacts
- Filtered metadata
data/processed/metadata_filtrada.csv - Processed features
data/processed/features.csv - Structured features
data/processed/features_estruturadas.csv - Risk cluster labels
data/processed/clusters_risco.csv - Train and test sets
data/processed/df_estruturada
Other components
- BV-BRC
- NCBI resources
- Genome annotation tools
- ARGOS resistome matrices
Connections 20
- BV-BRC → Raw isolate metadata: supplies genomes
README.md - NCBI resources → Raw isolate metadata: supplies genomes
README.md - Genome annotation tools → Raw isolate metadata: annotates genomes
README.md - Raw isolate metadata → Metadata curation: curates metadata
README.md - Metadata curation → Filtered metadata: produces
README.md - ARGOS resistome matrices → Processed features: produces matrices
README.md - ARGOS resistome matrices → AMR feature builder: provides resistome data
notebooks/src/features_amr.py - ARGOS resistome matrices → Risk feature builder: provides resistome data
notebooks/src/features_risco.py - AMR feature builder → Feature workflow: builds AMR features
- Risk feature builder → Feature workflow: builds risk features
- Feature workflow → Processed features: writes features
- Processed features → Feature selection: selects features
- Feature selection → Structured features: structures features
- Structured features → Risk clustering: clusters genomes
- Risk clustering → Cluster analysis: analyzes clusters
- Cluster analysis → Risk cluster labels: assigns risk groups
- Structured features → Supervised classifier: trains on features
- Risk cluster labels → Supervised classifier: provides target
README.md - Supervised classifier → Classification analysis: evaluates models
- Train and test sets → Supervised classifier: provides data splits