Esempio n. 1
0
    def __init__(self, variant_details, evidence_items):
        "Constructor"
        # Exist columns
        self.gene_name = None 
        self.entrez_id = None 
        self.variant_name = None
        self.disease_name = None
        self.doid = None 
        self.drug_names = None  
        self.evi_type = None
        self.evi_dir = None
        self.cli_sig = None
        self.evi_summary = None 
        self.pub_id = None
        self.citation = None 
        self.rating = None

        # Added columns
        self.evi_status = None
        self.evi_id = None
        self.var_id = None     
        self.gene_id = None
        self.coordinates = None 
        self.var_summary = None 
        self.var_ori = None
        self.evidence_civic_url = EvidenceItems.define_evidence_url(variant_details,evidence_items)
        self.variant_civic_url = VariantDetails.define_civic_url(variant_details)
        self.gene_civic_url = self.define_gene_url(variant_details)

        self.parse_variant_details(variant_details)
        self.parse_evidence_details(evidence_items)
 def __init__(self, variant_details, evidence_items, error_type):
     "Constructor"
     self.error = str(error_type)
     self.variant_id = None
     self.variant_name = None
     self.gene_name = None
     self.evi_id = None
     self.evi_type = None
     self.doid = None
     self.parse_variant_details(variant_details)
     self.parse_evidence_details(evidence_items)
     self.evidence_civic_url = self.define_evidence_url(variant_details,evidence_items)
     self.variant_civic_url = VariantDetails.define_civic_url(variant_details)