Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2015-2020 OpenCB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.opencb.cellbase.lib.variant;
import org.apache.commons.lang3.StringUtils;
import org.opencb.biodata.models.variant.Variant;
import org.opencb.biodata.models.variant.annotation.ConsequenceTypeMappings;
import org.opencb.biodata.models.variant.annotation.exceptions.SOTermNotAvailableException;
import org.opencb.biodata.models.variant.avro.*;
import org.opencb.cellbase.lib.variant.annotation.UnsupportedURLVariantFormat;
import java.util.*;
/**
* Created by fjlopez on 22/06/15.
*/
public class VariantAnnotationUtils {
public static final char SEPARATOR_CHAR = ':';
public static final String THREEPRIME_OVERLAPPING_NCRNA = "3prime_overlapping_ncrna";
public static final String IG_C_GENE = "IG_C_gene";
public static final String IG_C_PSEUDOGENE = "IG_C_pseudogene";
public static final String IG_D_GENE = "IG_D_gene";
public static final String IG_J_GENE = "IG_J_gene";
public static final String IG_J_PSEUDOGENE = "IG_J_pseudogene";
public static final String IG_V_GENE = "IG_V_gene";
public static final String IG_V_PSEUDOGENE = "IG_V_pseudogene";
public static final String MT_RRNA = "Mt_rRNA";
public static final String MT_TRNA = "Mt_tRNA";
public static final String TR_C_GENE = "TR_C_gene";
public static final String TR_D_GENE = "TR_D_gene";
public static final String TR_J_GENE = "TR_J_gene";
public static final String TR_J_PSEUDOGENE = "TR_J_pseudogene";
public static final String TR_V_GENE = "TR_V_gene";
public static final String TR_V_PSEUDOGENE = "TR_V_pseudogene";
public static final String ANTISENSE = "antisense";
public static final String LINCRNA = "lincRNA";
public static final String MIRNA = "miRNA";
public static final String MISC_RNA = "misc_RNA";
public static final String POLYMORPHIC_PSEUDOGENE = "polymorphic_pseudogene";
public static final String PROCESSED_PSEUDOGENE = "processed_pseudogene";
public static final String PROCESSED_TRANSCRIPT = "processed_transcript";
public static final String PROTEIN_CODING = "protein_coding";
public static final String PSEUDOGENE = "pseudogene";
public static final String RRNA = "rRNA";
public static final String SENSE_INTRONIC = "sense_intronic";
public static final String SENSE_OVERLAPPING = "sense_overlapping";
public static final String SNRNA = "snRNA";
public static final String SNORNA = "snoRNA";
public static final String NONSENSE_MEDIATED_DECAY = "nonsense_mediated_decay";
public static final String NMD_TRANSCRIPT_VARIANT = "NMD_transcript_variant";
public static final String UNPROCESSED_PSEUDOGENE = "unprocessed_pseudogene";
public static final String TRANSCRIBED_UNPROCESSED_PSEUDGENE = "transcribed_unprocessed_pseudogene";
public static final String RETAINED_INTRON = "retained_intron";
public static final String NON_STOP_DECAY = "non_stop_decay";
public static final String UNITARY_PSEUDOGENE = "unitary_pseudogene";
public static final String TRANSLATED_PROCESSED_PSEUDOGENE = "translated_processed_pseudogene";
public static final String TRANSCRIBED_PROCESSED_PSEUDOGENE = "transcribed_processed_pseudogene";
public static final String TRNA_PSEUDOGENE = "tRNA_pseudogene";
public static final String SNORNA_PSEUDOGENE = "snoRNA_pseudogene";
public static final String SNRNA_PSEUDOGENE = "snRNA_pseudogene";
public static final String SCRNA_PSEUDOGENE = "scRNA_pseudogene";
public static final String RRNA_PSEUDOGENE = "rRNA_pseudogene";
public static final String MISC_RNA_PSEUDOGENE = "misc_RNA_pseudogene";
public static final String MIRNA_PSEUDOGENE = "miRNA_pseudogene";
public static final String NON_CODING = "non_coding";
public static final String AMBIGUOUS_ORF = "ambiguous_orf";
public static final String KNOWN_NCRNA = "known_ncrna";
public static final String RETROTRANSPOSED = "retrotransposed";
public static final String TRANSCRIBED_UNITARY_PSEUDOGENE = "transcribed_unitary_pseudogene";
public static final String TRANSLATED_UNPROCESSED_PSEUDOGENE = "translated_unprocessed_pseudogene";
public static final String LRG_GENE = "LRG_gene";
public static final String INTERGENIC_VARIANT = "intergenic_variant";
public static final String REGULATORY_REGION_VARIANT = "regulatory_region_variant";
public static final String TF_BINDING_SITE_VARIANT = "TF_binding_site_variant";
public static final String UPSTREAM_GENE_VARIANT = "upstream_gene_variant";
public static final String TWOKB_UPSTREAM_VARIANT = "2KB_upstream_variant";
public static final String DOWNSTREAM_GENE_VARIANT = "downstream_gene_variant";
public static final String TWOKB_DOWNSTREAM_VARIANT = "2KB_downstream_variant";
public static final String SPLICE_DONOR_VARIANT = "splice_donor_variant";
public static final String SPLICE_ACCEPTOR_VARIANT = "splice_acceptor_variant";
public static final String INTRON_VARIANT = "intron_variant";
public static final String SPLICE_REGION_VARIANT = "splice_region_variant";
public static final String FIVE_PRIME_UTR_VARIANT = "5_prime_UTR_variant";
public static final String THREE_PRIME_UTR_VARIANT = "3_prime_UTR_variant";
public static final String INCOMPLETE_TERMINAL_CODON_VARIANT = "incomplete_terminal_codon_variant";
public static final String STOP_RETAINED_VARIANT = "stop_retained_variant";
public static final String START_RETAINED_VARIANT = "start_retained_variant";
public static final String SYNONYMOUS_VARIANT = "synonymous_variant";
public static final String INITIATOR_CODON_VARIANT = "initiator_codon_variant";
public static final String START_LOST = "start_lost";
public static final String STOP_GAINED = "stop_gained";
public static final String STOP_LOST = "stop_lost";
public static final String MISSENSE_VARIANT = "missense_variant";
public static final String MATURE_MIRNA_VARIANT = "mature_miRNA_variant";
public static final String NON_CODING_TRANSCRIPT_EXON_VARIANT = "non_coding_transcript_exon_variant";
public static final String NON_CODING_TRANSCRIPT_VARIANT = "non_coding_transcript_variant";
public static final String INFRAME_INSERTION = "inframe_insertion";
public static final String INFRAME_VARIANT = "inframe_variant";
public static final String FRAMESHIFT_VARIANT = "frameshift_variant";
public static final String CODING_SEQUENCE_VARIANT = "coding_sequence_variant";
public static final String TRANSCRIPT_ABLATION = "transcript_ablation";
public static final String TRANSCRIPT_AMPLIFICATION = "transcript_amplification";
public static final String COPY_NUMBER_CHANGE = "copy_number_change";
public static final String TERMINATOR_CODON_VARIANT = "terminator_codon_variant";
public static final String FEATURE_TRUNCATION = "feature_truncation";
public static final String FEATURE_VARIANT = "feature_variant";
public static final String STRUCTURAL_VARIANT = "structural_variant";
public static final String INFRAME_DELETION = "inframe_deletion";
public static final String CDS_START_NF = "cds_start_NF";
public static final String CDS_END_NF = "cds_end_NF";
public static final Map> IS_SYNONYMOUS_CODON = new HashMap<>();
public static final Map> MT_IS_SYNONYMOUS_CODON = new HashMap<>();
public static final Map SO_NAMES_CORRECTIONS = new HashMap<>();
public static final Map> A_TO_CODON = new HashMap<>();
public static final Map> MT_A_TO_CODON = new HashMap<>();
public static final Map CODON_TO_A = new HashMap<>();
public static final Map MT_CODON_TO_A = new HashMap<>();
public static final Map COMPLEMENTARY_NT = new HashMap<>();
public static final Map SIFT_DESCRIPTIONS = new HashMap<>();
public static final Map POLYPHEN_DESCRIPTIONS = new HashMap<>();
public static final Map SO_SEVERITY = new HashMap<>();
public static final Map ORIGIN_STRING_TO_ALLELE_ORIGIN = new HashMap<>();
public static final Set CODING_SO_NAMES = new HashSet<>();
public static final Map CLINVAR_CLINSIG_TO_ACMG = new HashMap<>();
public static final Map CLINVAR_CLINSIG_TO_TRAIT_ASSOCIATION = new HashMap<>();
public static final HashMap CLINVAR_REVIEW_TO_CONSISTENCY_STATUS = new HashMap<>();
// Currently left empty since the only item within DrugResponseClassification that seemed to match any clinvar
// tag ("responsive") was removed at some point from the model
public static final Map CLINVAR_CLINSIG_TO_DRUG_RESPONSE = new HashMap<>();
public static final String MT = "MT";
public static final String UNKNOWN_AMINOACID = "X";
public static final HashMap