Skip to content

Commit b905f41

Browse files
Update pharmgkb.php
change in pharmgkb annotations columns
1 parent 658772a commit b905f41

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

pharmgkb/pharmgkb.php

+3-14
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ function variants()
802802

803803
function clinical_ann_metadata()
804804
{
805-
$header = array("Clinical Annotation Id","Location","Gene","Level of Evidence","Clinical Annotation Types","Genotype-Phenotype IDs","Annotation Text","Variant Annotations IDs","Variant Annotations","PMIDs","Evidence Count","Related Drugs","Related Diseases","Biogeographical groups", "Chromosome");
805+
$header = array("Clinical Annotation Id","Location","Gene","Level of Evidence","Clinical Annotation Types","Genotype-Phenotype IDs","Annotation Text","Variant Annotations IDs","Variant Annotations","PMIDs","Evidence Count","Related Chemicals","Related Diseases","Biogeographical groups", "Chromosome","Latest History");
806806
$this_header = explode("\t",$this->getReadFile()->read());
807807
if(count($this_header) != count($header)) {
808808
trigger_error("Change in the number of columns. Expected ".count($header).", but found ".count($this_header),E_USER_ERROR);
@@ -812,19 +812,8 @@ function clinical_ann_metadata()
812812
$a = explode("\t",$l);
813813

814814
$id = parent::getNamespace().$a[0];
815-
# fixing bad file formatting
816-
if($a[0] == "982040598" or $a[0] == "982037603") {
817-
$a[8] .= $a[11];
818-
$a[9] = $a[12];
819-
$a[10] = $a[13];
820-
$a[11]= $a[14];
821-
$a[12] = $a[15];
822-
$a[13] = $a[16];
823-
$a[14] = $a[17];
824-
}
825-
826-
827815
$label = "clinical genotype to phenotype annotations for ".$a[1];
816+
828817
// [0] => Clinical Annotation Id
829818
parent::addRDF(
830819
parent::describeIndividual($id, $label, parent::getVoc()."Clinical-Annotation").
@@ -930,7 +919,7 @@ function clinical_ann_metadata()
930919
);
931920
}
932921

933-
// [11] => Related Drugs
922+
// [11] => Related Chemicals
934923
if($a[11]) {
935924
//print_r($a);exit;
936925
$b = $this->parseList($a[11]);

0 commit comments

Comments
 (0)