-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
31 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// this it the file used to create the files linked from echtvar releases. | ||
// when using that echtvar file, each of the "aliases" listed here will be added | ||
// to the output file. | ||
[ | ||
{"field": "AC", "alias": "gnomad_ac"}, | ||
{"field": "AN", "alias": "gnomad_an"}, | ||
{"field": "nhomalt", "alias": "gnomad_nhomalt"}, | ||
{"field": "AF", "alias": "gnomad_af", multiplier: 2000000}, | ||
|
||
{"field": "AC_popmax", "alias": "gnomad_popmax_ac"}, | ||
{"field": "AN_popmax", "alias": "gnomad_popmax_an"}, | ||
{"field": "nhomalt_popmax", "alias": "gnomad_popmax_nhomalt"}, | ||
{"field": "AF_popmax", "alias": "gnomad_popmax_af", multiplier: 2000000}, | ||
|
||
{"field": "AF_controls_and_biobanks", "alias": "gnomad_controls_and_biobanks_af", multiplier: 2000000}, | ||
{"field": "nhomalt_controls_and_biobanks", "alias": "gnomad_controls_and_biobanks_nhomalt"}, | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,13 +8,13 @@ extern crate fasteval; | |
use commands::{annotate_cmd, encoder_cmd}; | ||
use std::error::Error; | ||
|
||
const VERSION: &str = "0.0.1"; | ||
const VERSION: &str = env!("CARGO_PKG_VERSION"); | ||
|
||
fn main() -> Result<(), Box<dyn Error>> { | ||
let mut app = clap_app!(echtvar => | ||
(version: VERSION) | ||
(author: "Brent Pedersen <[email protected]") | ||
(about:"variant encoding and annotation") | ||
(about: "variant encoding and annotation") | ||
(@subcommand encode => | ||
(about: "create an echtvar file from a population VCF/BCF") | ||
(@arg OUTPUT: +required "output zip file") | ||
|