https://github.com/cbg-ethz/scsommerclock

Test for a molecular clock based on the phylogenetic tree inferred from single-cell DNA sequenzing data

https://github.com/cbg-ethz/scsommerclock

Science Score: 23.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
  • DOI references
  • Academic publication links
  • Committers with academic emails
    1 of 2 committers (50.0%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (12.2%) to scientific vocabulary

Keywords

cancer-genomics molecular-clock neutrality-test scdnaseq
Last synced: 11 months ago · JSON representation

Repository

Test for a molecular clock based on the phylogenetic tree inferred from single-cell DNA sequenzing data

Basic Info
  • Host: GitHub
  • Owner: cbg-ethz
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 2.21 MB
Statistics
  • Stars: 6
  • Watchers: 4
  • Forks: 0
  • Open Issues: 1
  • Releases: 0
Topics
cancer-genomics molecular-clock neutrality-test scdnaseq
Created about 4 years ago · Last pushed about 3 years ago
Metadata Files
Readme License

README.md

Single-Cell SOMatic MolEculaR Clock testing

This repo contains a Poisson Tree (PT) Test for the existence of a somatic clock in single-cell phylogenies. In short, it tests if different cell lineages evolve at a similar rate, accumulating mutations according to a molecular clock. As input the test requires a mutation matrix, a phylogeny of contemporaneously sampled cells, and error rates.

This repo contains scripts for running - the PT Test - and, in a subfolder (AnalysisPipelines), scripts for - the processing of real scDNA-seq data - the analysis of real scDNA-seq data - the simulation of scDNA-seq data (via coalescent) - the analysis and plotting of simulated scDNA-seq data

Installation

Requirements

  • python3.X:
    • ete3
    • numpy
    • pandas
    • scipy

The requirements cant be installed using pip: bash python -m pip install ete3 pandas scipy

Usage

The PT test can be run with the following shell command: bash python run_PT_test.py <VCF_FILE> <NEWICK_TREE_FILE> [-o] [-excl] [-incl] [-w] [-FN] [-FP]

Input files

The PT test requires two input files: - Called variants in VCF format (VCF info), where each sample is a cell - An inferred phylogenetic tree in newick format (cell names need to be the same as in the VCF).

Note

Trees can be inferred, for example, with CellPhy or infSCITE; both outputs are compatible with the PT test

Optional Arguments

  • -o <str>, Output file. Default = .poissonTree_LRT.tsv.
  • -excl <str>, Regex pattern for samples/cells to exclude. Default = none.
  • -incl <str>, Regex pattern for samples/cells to include. If set, only these samples/cells are included. Default = all cells.
  • -w <list of int>, Maximum weight values. Default = 100, 200, ..., 1000'.
  • -FN <float>, Estimated FN rate (for CellPhy and infSCITE: inferred from .log/stdout file).
  • -FP <float>, Estimated FP rate (for CellPhy and infSCITE: inferred from .log/stdout file).

Example

To run the PT test on the simulated data in the example_data folder, execute bash python run_PT_test.py example_data example_data/data_simulated_clock.vcf.gz example_data/data_simulated_clock.raxml.bestTree or bash python run_PT_test.py example_data example_data/data_simulated_noclock.vcf.gz example_data/data_simulated_noclock.raxml.bestTree

The former data is simulated under a molecular clock, the later with a deviation from the clock (evolutionary rate amplified by 5x in a subtree)

Note

FN and FP rate are inferred from the .raxml.log file

Owner

  • Name: Computational Biology Group (CBG)
  • Login: cbg-ethz
  • Kind: organization
  • Location: Basel, Switzerland

Beerenwinkel Lab at ETH Zurich

GitHub Events

Total
Last Year

Committers

Last synced: over 1 year ago

All Time
  • Total Commits: 1,310
  • Total Committers: 2
  • Avg Commits per committer: 655.0
  • Development Distribution Score (DDS): 0.031
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
NBMueller n****r@w****e 1,270
NBMueller n****r@b****h 40
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: over 1 year ago

All Time
  • Total issues: 2
  • Total pull requests: 0
  • Average time to close issues: 3 days
  • Average time to close pull requests: N/A
  • Total issue authors: 2
  • Total pull request authors: 0
  • Average comments per issue: 1.5
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • tomouellette (1)
  • reJELIN (1)
Pull Request Authors
Top Labels
Issue Labels
invalid (1)
Pull Request Labels