Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adding more annotations to output (#504) #505

Merged
merged 6 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions protos/varfish/v1/seqvars/output.proto
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,30 @@ message GeneIdentity {
string gene_symbol = 2;
}

// Transcript type.
enum TranscriptType {
// Unknown transcript type.
TRANSCRIPT_TYPE_UNSPECIFIED = 0;
// Coding transcript.
TRANSCRIPT_TYPE_CODING = 1;
// Non-coding transcript.
TRANSCRIPT_TYPE_NON_CODING = 2;
}

// Location where the variant falls in relation to a transcript.
enum VariantLocation {
// Unspecified location.
VARIANT_LOCATION_UNSPECIFIED = 0;
// Upstream of gene.
VARIANT_LOCATION_UPSTREAM = 1;
// Exonic.
VARIANT_LOCATION_EXON = 2;
// Intronic.
VARIANT_LOCATION_INTRON = 3;
// Downstream of the gene.
VARIANT_LOCATION_DOWNSTREAM = 4;
}
holtgrewe marked this conversation as resolved.
Show resolved Hide resolved

/// Gene-related consequences of a variant.
message GeneRelatedConsequences {
// HGVS. {c,n} code of variant.
Expand All @@ -164,6 +188,16 @@ message GeneRelatedConsequences {
optional string hgvs_p = 2;
// Predicted variant consequences.
repeated varfish.v1.seqvars.query.Consequence consequences = 3;
// Transcript accession without version.
optional string tx_accession = 4;
// Transcript version.
optional int32 tx_version = 5;
// Whether exon or intron is hit.
VariantLocation location = 6;
holtgrewe marked this conversation as resolved.
Show resolved Hide resolved
// Exon/intron number (1-based).
optional int32 rank_ord = 7;
// Exon/intron total count.
optional int32 rank_total = 8;
}

// Enumerations with modes of inheritance from HPO.
Expand Down
2 changes: 1 addition & 1 deletion src/seqvars/query/hpo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ mod test {
#[test]
fn test_load_ncbi_to_hgnc() -> Result<(), anyhow::Error> {
let path = std::path::Path::new("tests/seqvars/query/db/hpo/hgnc_xlink.tsv");
let map = super::hgnc_xlink::load_ncbi_to_hgnc(&path)?;
let map = super::hgnc_xlink::load_ncbi_to_hgnc(path)?;

assert_eq!(map.len(), 43792);
assert_eq!(map.get(&1), Some(&vec!["HGNC:5".to_string()]));
Expand Down
Loading
Loading