示例#1
0
def test_scrape_disease_attr_contents_from_url_summary():
    results = data_scraper.scrape_disease_attr_contents_from_url(
        "http://www.malacards.org/card/hirschsprung_disease_1", data_scraper.XPATH_DISEASE_SUMMARY)
    assert (results == ['', 'OMIM', ':', '45', 'The disorder described by Hirschsprung (1888) and known as Hirschsprung\ndisease or aganglionic megacolon is... (142623)', 'more...', 'MalaCards based summary', ':', 'Hirschsprung Disease 1, also known as', 'hirschsprung disease', ',  is related to', 'multiple endocrine neoplasia', 'and', 'multiple endocrine neoplasia iia', ',  and has symptoms including', 'nausea and vomiting', ',', 'constipation', 'and', 'abdominal pain', '. An important gene associated with Hirschsprung Disease 1 is', 'RET', '(ret proto-oncogene), and among its related pathways are', 'Signaling events regulated by Ret tyrosine kinase', 'and', 'G protein signaling H RAS regulation pathway', '. The compounds', 'thiorphan', 'and', 'bq610', 'have been mentioned in the context of this disorder. Affiliated tissues include', 'colon', ',', 'thyroid', 'and', 'bone', ', and related mouse  phenotypes are', 'pigmentation', 'and', 'cardiovascular system', '.', 'Disease Ontology', ':', '9', 'A megacolon that is characterized by a blockage of the large intestine due to improper muscle movement in the bowel.', 'Genetics Home Reference', ':', '21', 'Hirschsprung disease is an intestinal disorder characterized by the absence of nerves in parts of the intestine. This condition occurs when the nerves in the intestine (enteric nerves) do not form properly during development before birth (embryonic development). This condition is usually identified in the first two months of life, although less severe cases may be diagnosed later in childhood.', 'NIH Rare Diseases', ':', '41', 'Hirschsprung disease is a disease of the large intestine or colon. people with this disease do not have the nerve cells in the intestine required to expel stools from the body normally. symptoms of hirschsprung disease usually show up in very young children, but sometimes not until adolescence or adulthood. the symptoms may vary with age, but often involve constipation and/or obstruction of the bowel.\n                    last updated: 10/17/2013', 'GeneReviews', '', 'summary for hirschsprung-ov', ''])
示例#2
0
def test_scrape_disease_attr_contents_from_url_symptoms():
    results = data_scraper.scrape_disease_attr_contents_from_url(
        "http://www.malacards.org/card/hepatitis_d", data_scraper.XPATH_DISEASE_SYMPTOMS)
    assert (results == ['fatigue', 'lethargy', 'anorexia', 'nausea', 'jaundice', 'clay-colored stools', 'dark urine', 'changes in personality', 'disturbances in sleep', 'confusion', 'abnormal behavior', 'somnolence', 'coma'])
示例#3
0
def test_scrape_disease_attr_contents_from_url_phenotypes():
    results = data_scraper.scrape_disease_attr_contents_from_url(
        "http://www.malacards.org/card/hirschsprung_disease_1", data_scraper.XPATH_DISEASE_PHENOTYPES)
    assert (results == ['nausea and vomiting', 'constipation', 'abdominal pain', 'aganglionic megacolon', 'intestinal obstruction', 'weight loss', 'sensorineural hearing impairment', 'adducted thumb', 'diarrhea', 'short stature', 'neoplasm of the thyroid gland', 'cognitive impairment', 'sepsis', 'intestinal polyposis', 'autosomal dominant inheritance', 'abnormality of metabolism/homeostasis', 'vomiting', 'constipation', 'aganglionic megacolon', 'abdominal distention', 'enterocolitis', 'autosomal recessive inheritance', 'total intestinal aganglionosis'])