AUTOMATION ascend_mesh_tree() { var="${1%\*}" target="" ev=$( rchive -local pubmed ) if [ -n "$ev" ] then # only care about master volume and its Data subfolder target="${ev%:*}" target=${target%/} fi while : do frst=$( phrase-search -count "$var* [TREE]" ) scnd=$( cat "${target}/Data/meshconv.xml" | xtract -pattern Rec -if Tree -equals "$var" -first Code Name ) printf "${frst}\t${scnd}\n" case "$var" in *.* ) var="${var%????}" ;; * ) break ;; esac done | align-columns -g 4 } ascend_mesh_tree "C01.925.782.417.415" ENTREZ INTEGRATION esearch -db pubmed -query "complement system proteins [MESH]" | efetch -format uid | phrase-search -filter "L [THME] AND D10* [TREE]" MEDICAL SUBJECT HEADING CODE VIEWERS https://meshb.nlm.nih.gov/treeView https://meshb-prev.nlm.nih.gov/treeView MESH CATEGORIES IN TREE INDEX A - Anatomy C - Diseases D - Chemicals and Drugs E - Analytical, Diagnostic and Therapeutic Techniques, and Equipment F - Psychiatry and Psychology G - Phenomena and Processes Z - Geographicals UNINDEXED MESH CATEGORIES B - Organisms H - Disciplines and Occupations I - Anthropology, Education, Sociology, and Social Phenomena J - Technology, Industry, and Agriculture K - Humanities L - Information Science M - Named Groups N - Health Care V - Publication Characteristics INDEXED MESH CODES A01 - Body Regions A02 - Musculoskeletal System A03 - Digestive System A04 - Respiratory System A05 - Urogenital System A06 - Endocrine System A07 - Cardiovascular System A08 - Nervous System A09 - Sense Organs A10 - Tissues A11 - Cells A12 - Fluids and Secretions A13 - Animal Structures A14 - Stomatognathic System A15 - Hemic and Immune Systems A16 - Embryonic Structures A17 - Integumentary System A18 - Plant Structures A19 - Fungal Structures A20 - Bacterial Structures A21 - Viral Structures C01 - Infections C04 - Neoplasms C05 - Musculoskeletal Diseases C06 - Digestive System Diseases C07 - Stomatognathic Diseases C08 - Respiratory Tract Diseases C09 - Otorhinolaryngologic Diseases C10 - Nervous System Diseases C11 - Eye Diseases C12 - Male Urogenital Diseases C13 - Female Urogenital Diseases and Pregnancy Complications C14 - Cardiovascular Diseases C15 - Hemic and Lymphatic Diseases C16 - Congenital, Hereditary, and Neonatal Diseases and Abnormalities C17 - Skin and Connective Tissue Diseases C18 - Nutritional and Metabolic Diseases C19 - Endocrine System Diseases C20 - Immune System Diseases C21 - Disorders of Environmental Origin C22 - Animal Diseases C23 - Pathological Conditions, Signs and Symptoms C24 - Occupational Diseases C25 - Chemically-Induced Disorders C26 - Wounds and Injuries D01 - Inorganic Chemicals D02 - Organic Chemicals D03 - Heterocyclic Compounds D04 - Polycyclic Compounds D05 - Macromolecular Substances D08 - Enzymes and Coenzymes D09 - Carbohydrates D10 - Lipids D12 - Amino Acids, Peptides, and Proteins D13 - Nucleic Acids, Nucleotides, and Nucleosides D20 - Complex Mixtures D23 - Biological Factors D26 - Pharmaceutical Preparations D27 - Chemical Actions and Uses E01 - Diagnosis E02 - Therapeutics E03 - Anesthesia and Analgesia E04 - Surgical Procedures, Operative E05 - Investigative Techniques E07 - Equipment and Supplies F01 - Behavior and Behavior Mechanisms F02 - Psychological Phenomena F03 - Mental Disorders F04 - Behavioral Disciplines and Activities G01 - Physical Phenomena G02 - Chemical Phenomena G03 - Metabolism G04 - Cell Physiological Phenomena G05 - Genetic Phenomena G06 - Microbiological Phenomena G07 - Physiological Phenomena G08 - Reproductive and Urinary Physiological Phenomena G09 - Circulatory and Respiratory Physiological Phenomena G10 - Digestive System and Oral Physiological Phenomena G11 - Musculoskeletal and Neural Physiological Phenomena G12 - Immune System Phenomena G13 - Integumentary System Physiological Phenomena G14 - Ocular Physiological Phenomena G15 - Plant Physiological Phenomena G16 - Biological Phenomena G17 - Mathematical Concepts Z01 - Geographic Locations MESH SUBHEADINGS abnormalities administration & dosage adverse effects agonists analogs & derivatives analysis anatomy & histology antagonists & inhibitors biosynthesis blood blood supply cerebrospinal fluid chemical synthesis chemically induced chemistry classification complications congenital cytology deficiency diagnosis diagnostic imaging diet therapy drug effects drug therapy economics education embryology enzymology epidemiology ethics ethnology etiology genetics growth & development history immunology injuries innervation instrumentation isolation & purification legislation & jurisprudence manpower metabolism methods microbiology mortality nursing organization & administration parasitology pathogenicity pathology pharmacokinetics pharmacology physiology physiopathology poisoning prevention & control psychology radiation effects radiotherapy rehabilitation secondary secretion standards statistics & numerical data supply & distribution surgery therapeutic use therapy toxicity transmission transplantation trends ultrastructure urine utilization veterinary virology