-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uwrite only most impactful variant per gene in each variant(row) outp…
…ut from
- Loading branch information
zqfang
committed
Aug 14, 2024
1 parent
75eb0c3
commit 43adf3d
Showing
8 changed files
with
221 additions
and
123 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// Created by Zhuoqing Fang on 8/13/24. | ||
// | ||
// #pragma once | ||
#ifndef CONFIG_H | ||
#define CONFIG_H | ||
|
||
|
||
#include <unordered_map> | ||
|
||
extern std::unordered_map<std::string, std::string> CODONs; | ||
extern std::unordered_map<std::string, int> PRIOR; | ||
extern std::unordered_map<std::string, int> CSQs; | ||
|
||
#endif |
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
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,60 @@ | ||
|
||
#include "constants.h" | ||
|
||
std::unordered_map<std::string, std::string> CODONs = {{"TTT", "F"}, {"TTC", "F"}, {"TCT", "S"}, {"TCC", "S"}, {"TAT", "Y"}, {"TAC", "Y"}, {"TGT", "C"}, {"TGC", "C"}, | ||
{"TTA", "L"}, {"TCA", "S"}, {"TAA", "X"}, {"TGA", "X"}, {"TTG", "L"}, {"TCG", "S"}, {"TAG", "X"}, {"TGG", "W"}, | ||
{"CTT", "L"}, {"CTC", "L"}, {"CCT", "P"}, {"CCC", "P"}, {"CAT", "H"}, {"CAC", "H"}, {"CGT", "R"}, {"CGC", "R"}, | ||
{"CTA", "L"}, {"CTG", "L"}, {"CCA", "P"}, {"CCG", "P"}, {"CAA", "Q"}, {"CAG", "Q"}, {"CGA", "R"}, {"CGG", "R"}, {"ATT", "I"}, | ||
{"ATC", "I"}, {"ACT", "T"}, {"ACC", "T"}, {"AAT", "N"}, {"AAC", "N"}, {"AGT", "S"}, {"AGC", "S"}, {"ATA", "I"}, {"ACA", "T"}, | ||
{"AAA", "K"}, {"AGA", "R"}, {"ATG", "M"}, {"ACG", "T"}, {"AAG", "K"}, {"AGG", "R"}, {"GTT", "V"}, {"GTC", "V"}, {"GCT", "A"}, | ||
{"GCC", "A"}, {"GAT", "D"}, {"GAC", "D"}, {"GGT", "G"}, {"GGC", "G"}, {"GTA", "V"}, {"GTG", "V"}, {"GCA", "A"}, {"GCG", "A"}, | ||
{"GAA", "E"}, {"GAG", "E"}, {"GGA", "G"}, {"GGG", "G"}}; | ||
|
||
|
||
/// see the variant impact coding here: | ||
/// https://useast.ensembl.org/info/genome/variation/prediction/predicted_data.html | ||
/// last update: 2024-08-15 | ||
std::unordered_map<std::string, int> PRIOR = {{"HIGH", 2}, {"MODERATE", 1}, {"LOW", 0}, {"MODIFIER", -1}}; | ||
std::unordered_map<std::string, int> CSQs = { | ||
{"transcript_ablation", 2}, | ||
{"splice_acceptor_variant", 2}, | ||
{"splice_donor_variant", 2}, | ||
{"stop_gained", 2}, | ||
{"frameshift_variant", 2}, | ||
{"stop_lost", 2}, | ||
{"start_lost", 2}, | ||
{"transcript_amplification", 2}, | ||
{"feature_elongation", 2}, | ||
{"feature_truncation", 2}, | ||
{"inframe_insertion", 1}, | ||
{"inframe_deletion", 1}, | ||
{"missense_variant", 1}, | ||
{"protein_altering_variant", 1}, | ||
{"splice_donor_5th_base_variant", 0}, | ||
{"splice_region_variant", 0}, | ||
{"splice_donor_region_variant", 0}, | ||
{"splice_polypyrimidine_tract_variant", 0}, | ||
{"incomplete_terminal_codon_variant", 0}, | ||
{"start_retained_variant", 0}, | ||
{"stop_retained_variant", 0}, | ||
{"synonymous_variant", 0}, | ||
{"coding_sequence_variant", -1}, | ||
{"mature_miRNA_variant", -1}, | ||
{"5_prime_UTR_variant", -1}, | ||
{"3_prime_UTR_variant", -1}, | ||
{"non_coding_transcript_exon_variant", -1}, | ||
{"intron_variant", -1}, | ||
{"NMD_transcript_variant", -1}, | ||
{"non_coding_transcript_variant", -1}, | ||
{"coding_transcript_variant", -1}, | ||
{"upstream_gene_variant", -1}, | ||
{"downstream_gene_variant", -1}, | ||
{"TFBS_ablation", -1}, | ||
{"TFBS_amplification", -1}, | ||
{"TF_binding_site_variant", -1}, | ||
{"regulatory_region_ablation", -1}, | ||
{"regulatory_region_amplification", -1}, | ||
{"regulatory_region_variant", -1}, | ||
{"intergenic_variant", -1}, | ||
{"sequence_variant", -1}, | ||
}; |
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
Oops, something went wrong.