https://github.com/cbg-ethz/mt-scite
Tree inference from mitochondrial mutations
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (10.7%) to scientific vocabulary
Repository
Tree inference from mitochondrial mutations
Basic Info
- Host: GitHub
- Owner: cbg-ethz
- Language: Jupyter Notebook
- Default Branch: main
- Size: 16.4 MB
Statistics
- Stars: 5
- Watchers: 7
- Forks: 1
- Open Issues: 0
- Releases: 0
Metadata Files
README.md
Tree inference from mitochondrial mutations
mt-SCITE infers trees from a matrix of mutation probabilities built from a statistical model of alternate read counts in mitochondrial sequencing reads.
Installation
clang++ src/*.cpp -o mtscite
Usage
mtscite -i <mut_probabilities> -n <n_sites> -m <n_cells> -l <n_iters> -seed <random_seed>
End-to-end analysis
We also provide notebooks and scripts to perform an end-to-end tree inference analysis using mt-SCITE.
Environment
conda create -n mtSCITE python=3.10
conda activate mtSCITE
conda install -c conda-forge biopython
conda install -c anaconda pandas
conda install -c anaconda scipy
conda install -c conda-forge matplotlib
conda install -c anaconda seaborn
conda install -c anaconda graphviz
pip install --global-option=build_ext --global-option="-I~/miniconda3/envs/mtSCITE/include" --global-option="-L~/miniconda3/envs/mtSCITE/include/lib/" pygraphviz
conda install -c anaconda python-graphviz
conda install -c anaconda pydot
conda install -c anaconda networkx
conda install -c anaconda numpy=1.22
Workflow
Raw sequencing data was processed by the snakemake pipeline in preprocessing_pipeline/Snakefile. This generated tsv files specifying the number of reads supporting the four different nucleotides A, C, G, T and total number of reads for each position in the mitochondrial genome for each sample.
Computing mutation probabilities
compute_mutations_probabilities.ipynb was run to generate mutation probability matrices for a range of error rates. The mutation probability matrices were stored in /path/to/matrices/
Selecting the error rate
We used a 3-fold cross validation procedure to select the error rate that we used to infer the trees using mt-SCITE. After generating probability matrices for different error rates and storing them in /path/to/matrices/, you can perform cross-validation by running this command:
python scripts/cv.py </path/to/matrices/> </path/to/mtscite>
This will create a CSV file named val_scores.csv with the 3-fold cross-validation likelihood scores.
learn_error_rate.ipynb was run to analyze val_scores.csv and to select the error rate to be used for tree building.
Build trees
Run mt-SCITE with this command:
`</path/to/mtscite> -i pmat.csv -n <n_mutations> -m <n_samples> -r 1 -l 200000 -fd 0.0001 -ad 0.0001 -cc 0.0 -s -a -o </path/to/output/run_id>`
where
pmat.csv is the mutation probability matrix generated with the learned error rate, n_mutations is the number of rows in pmat.csv and n_samples is the number of columns in pmat.csv.
Owner
- Name: Computational Biology Group (CBG)
- Login: cbg-ethz
- Kind: organization
- Location: Basel, Switzerland
- Website: https://www.bsse.ethz.ch/cbg
- Twitter: cbg_ethz
- Repositories: 91
- Profile: https://github.com/cbg-ethz
Beerenwinkel Lab at ETH Zurich
GitHub Events
Total
- Issues event: 1
- Watch event: 1
- Member event: 1
- Issue comment event: 2
- Push event: 17
- Pull request event: 2
- Create event: 1
Last Year
- Issues event: 1
- Watch event: 1
- Member event: 1
- Issue comment event: 2
- Push event: 17
- Pull request event: 2
- Create event: 1
Committers
Last synced: over 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| joanna hard | j****1@g****m | 103 |
| Sophie Seidel | 1****s | 31 |
| pedrofale | p****f@g****m | 10 |
Issues and Pull Requests
Last synced: over 1 year ago
All Time
- Total issues: 0
- Total pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: about 4 hours
- Total issue authors: 0
- Total pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 1.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: about 4 hours
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 1.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- U201412486 (1)
Pull Request Authors
- seidels (2)