|
|
2 tahun lalu | |
|---|---|---|
| .vscode | 2 tahun lalu | |
| src | 2 tahun lalu | |
| .gitignore | 2 tahun lalu | |
| Cargo.lock | 2 tahun lalu | |
| Cargo.toml | 2 tahun lalu | |
| readme.md | 2 tahun lalu | |
| readme.pdf | 2 tahun lalu |
grabbing the tsv files from https://www.proteinatlas.org/about/download and parsing them into structs for rust. Also able to zip the files into a single json/csv output file as a graph of the App to be deserialized later.
to download the data files pass an arg
cargo run -- download
to export the loaded data as json
cargo run -- json my_output.json
to export the loaded data as csv
cargo run -- csv my_output.csv
cargo run will read and parse the files into an app struct - see main.rs/main
```rust
pub struct App
tissues: Vec::<Gene>,
pathogens: Vec::<Pathogen>,
rna_immune_cell_schmiedel: Vec<RNAImmuneCellSchmiedel>,
rna_celline_cancer: Vec<RNACellLineCancer>,
rna_immune_cell: Vec<RNAImmuneCell>,
rna_immune_cell_monaco: Vec<RNAImmuneCellMonaco>,
rna_mouse_brain_hpa: Vec<RNAMouseBrainHPA>,
rna_mouse_brain_allen: Vec<RNAMouseBrainAllen>,
pig_brain: Vec<AnimalSample>,
mouse_brain: Vec<AnimalSample>