Skip to content
Open
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
4 changes: 2 additions & 2 deletions app/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def key_func(k):
return k['CHROMOSOME']['RefSeq']


def is_overlaping(a, b):
def is_overlapping(a, b):
if b['RANGE']['L'] >= a['RANGE']['L'] and b['RANGE']['L'] <= a['RANGE']['H']:
return True
else:
Expand All @@ -148,7 +148,7 @@ def merge(arr):
for i in range(1, len(arr)):
pop_element = merged_list.pop()

if is_overlaping(pop_element, arr[i]):
if is_overlapping(pop_element, arr[i]):
pop_element['RANGE']['H'] = max(pop_element['RANGE']['H'], arr[i]['RANGE']['H'])
merged_list.append(pop_element)
else:
Expand Down
4 changes: 2 additions & 2 deletions genomics-apps/data/product.csv
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@
"2670","Codeine","756277","Chlorpheniramine 0.4 MG/ML / Codeine 2 MG/ML / iodinated glycerol 3 MG/ML Oral Solution","SCD"
"2670","Codeine","1113064","Chlorcyclizine hydrochloride 5 MG/ML / Codeine Phosphate 2 MG/ML / Phenylephrine Hydrochloride 2 MG/ML Oral Solution [Nasotuss]","SBD"
"2670","Codeine","313927","Chlorpheniramine 0.4 MG/ML / Codeine 2 MG/ML / Phenylephrine 2 MG/ML Oral Solution","SCD"
"2670","Codeine","1242558","Chlorcyclizine hydrochloride 2.5 MG/ML / Codeine Phosphate 1.8 MG/ML / Pseudoephedrine Hydrochloride 6 MG/ML Oral Solution [Statuss Green Reformulated Jan 2012]","SBD"
"2670","Codeine","1242558","Chlorcyclizine hydrochloride 2.5 MG/ML / Codeine Phosphate 1.8 MG/ML / Pseudoephedrine Hydrochloride 6 MG/ML Oral Solution [Status Green Reformulated Jan 2012]","SBD"
"2670","Codeine","1235862","Chlorcyclizine hydrochloride 2.5 MG/ML / Codeine Phosphate 1.8 MG/ML / Pseudoephedrine Hydrochloride 6 MG/ML Oral Solution","SCD"
"2670","Codeine","1113053","Chlorcyclizine hydrochloride 1.88 MG/ML / Codeine Phosphate 2 MG/ML Oral Solution [Notuss-NX]","SBD"
"2670","Codeine","1113051","Chlorcyclizine hydrochloride 1.88 MG/ML / Codeine Phosphate 2 MG/ML Oral Solution","SCD"
Expand Down Expand Up @@ -661,7 +661,7 @@
"2670","Codeine","995485","Codeine Phosphate 2 MG/ML / Guaifenesin 40 MG/ML Oral Solution [Tusso C]","SBD"
"2670","Codeine","996650","Codeine Phosphate 2 MG/ML / Pseudoephedrine Hydrochloride 6 MG/ML / Triprolidine Hydrochloride 0.25 MG/ML Oral Solution [Triacin C]","SBD"
"2670","Codeine","996514","Codeine Phosphate 2 MG/ML / Guaifenesin 60 MG/ML Oral Solution [Tussi Organidin]","SBD"
"2670","Codeine","996546","Codeine Phosphate 2 MG/ML / Guaifenesin 40 MG/ML / Phenylpropanolamine 2.5 MG/ML Oral Solution [Statuss]","SBD"
"2670","Codeine","996546","Codeine Phosphate 2 MG/ML / Guaifenesin 40 MG/ML / Phenylpropanolamine 2.5 MG/ML Oral Solution [Status]","SBD"
"2670","Codeine","582337","Codeine Phosphate 2 MG/ML / Guaifenesin 20 MG/ML Oral Solution [Guaitussin AC]","SBD"
"2670","Codeine","995932","Codeine Phosphate 2 MG/ML / Guaifenesin 20 MG/ML Oral Solution [Brontex]","SBD"
"2670","Codeine","995956","Codeine Phosphate 2 MG/ML / Guaifenesin 20 MG/ML Oral Solution [Cheracol with Codeine]","SBD"
Expand Down
6 changes: 3 additions & 3 deletions genomics-apps/getVariants.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def findSubjectHaplotypes(subject, geneId):
"Genotype": genotype,
"Allelic State": allelicState,
"Copy Number": copyNumber,
"Allele Frequeny": alleleFreq})
"Allele Frequency": alleleFreq})
# get and parse structural variants
response = findSubjectStructuralIntersectingVariants(subject, range)
if response.status_code == 200:
Expand Down Expand Up @@ -112,7 +112,7 @@ def findSubjectHaplotypes(subject, geneId):
"Genotype": genotype,
"Allelic State": allelicState,
"Copy Number": copyNumber,
"Allele Frequeny": alleleFreq})
"Allele Frequency": alleleFreq})
# get and parse haplotypes
response = findSubjectHaplotypes(subject, geneId)
if response.status_code == 200:
Expand All @@ -130,7 +130,7 @@ def findSubjectHaplotypes(subject, geneId):
"Genotype": genotype,
"Allelic State": allelicState,
"Copy Number": copyNumber,
"Allele Frequeny": alleleFreq})
"Allele Frequency": alleleFreq})

data = (pd.DataFrame(variantList))
AgGrid(data, enable_enterprise_modules=True, update_mode="value_changed", allow_unsafe_jscode=True)
Expand Down
2 changes: 1 addition & 1 deletion genomics-apps/simpleApp.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def findSubjectVariants(subject, range):
SPDI = k["valueCodeableConcept"]["coding"][0]["display"]
elif k["code"]["coding"][0]["code"] == "81258-6":
alleleFreq = k["valueQuantity"]["value"]
variantList.append({"SPDI": SPDI, "Source Class": sourceClass, "Allelic State": allelicState, "Allele Frequeny": alleleFreq})
variantList.append({"SPDI": SPDI, "Source Class": sourceClass, "Allelic State": allelicState, "Allele Frequency": alleleFreq})
data = (pd.DataFrame(variantList))
with col2:
AgGrid(data, enable_enterprise_modules=True, update_mode="value_changed", allow_unsafe_jscode=True)
Expand Down
Loading