How metagenopolis/crocodeel works
CroCoDeEL is a command-line tool for detecting and estimating cross-sample contamination in metagenomic species-abundance tables. Its main workflow reads and preprocesses abundance data, evaluates sample pairs, writes contamination events, and can generate review plots. Separate capabilities include training a custom classifier and running a self-test. The sampled CLI and module references support the main dispatch relationships; some implementation details, including self-test internals, were not sampled.
Main entry points: crocodeel.py Command-line app · search_conta.py Contamination search · conta_features.py Pair features · conta_event.py Event data and TSV
Components 15
CLI workflow
- Command-line app
crocodeel/crocodeel.py - Table preprocessing
crocodeel/ab_table_utils.py - Run metadata
crocodeel/execution_description.py
Detection analysis
- Contamination search
crocodeel/search_conta.py - Pair features
crocodeel/conta_features.py - Contamination-line fit
crocodeel/ransac.py
Results and review
- Event data and TSV
crocodeel/conta_event.py - Scatterplot report
crocodeel/plot_conta.py
Model and validation
- Model training
crocodeel/train_model.py - Self-test
crocodeel/self_test.py - Shared utilities
crocodeel/utils.py
Other components
- Researcher
- Abundance TSV
- Events TSV
- Review PDF
Connections 16
- Researcher → Command-line app: runs command
README.md - Abundance TSV → Command-line app: provides input
README.md - Command-line app → Table preprocessing: preprocesses table
crocodeel/crocodeel.py - Command-line app → Contamination search: dispatches search
crocodeel/crocodeel.py - Contamination search → Pair features: extracts features
crocodeel/search_conta.py - Pair features → Contamination-line fit: fits line
crocodeel/conta_features.py - Contamination search → Event data and TSV: creates events
crocodeel/search_conta.py - Command-line app → Event data and TSV: writes events
crocodeel/crocodeel.py - Event data and TSV → Events TSV: serializes to
README.md - Command-line app → Scatterplot report: dispatches plotting
crocodeel/crocodeel.py - Scatterplot report → Review PDF: generates report
README.md - Command-line app → Run metadata: records parameters
crocodeel/crocodeel.py - Command-line app → Model training: dispatches training
crocodeel/crocodeel.py - Model training → Pair features: extracts features
crocodeel/train_model.py - Command-line app → Self-test: dispatches test
crocodeel/crocodeel.py - Table preprocessing → Shared utilities: formats names
crocodeel/ab_table_utils.py