Skip to content

Latest commit

 

History

History
52 lines (34 loc) · 1.37 KB

README.md

File metadata and controls

52 lines (34 loc) · 1.37 KB

DNA-m Age Calculation

Running existing models to estimate age from CpG methylation samples.

Example run

With cargo installed, compile and run:

$ cargo run -- examples/GSM2122878-57726.csv
   Compiling dnam v0.1.0 (DNAm)
    Finished dev [unoptimized + debuginfo] target(s) in 1.73s
     Running `target/debug/dnam examples/GSM2122878-57726.csv`
Horvath Clock : 17.73 years
DNAm PhenoAge : 37.79 years

Or compile once and then run:

$ cargo build --release
$ ./target/release/dnam examples/GSM2122878-57726.csv
Horvath Clock : 17.73 years
DNAm PhenoAge : 37.79 years

Notes:

  • There is no normalization of the CpG values.
  • There's no imupation of missing values (they are treated as zero)

Sources

Horvath

Phenoage

Clues

If you have a tab separated file (e.g., from the Gene Expression Omnibus), you'll need to remove extra headers and convert the tabs into commas. For example:

$ tail +3 GSMxxxx.txt | xsv fmt -d '\t' > GSMxxxx.csv