Hands on Data Science for Biologists Using Python 1st Edition Yasha Hasija pdf download
Hands on Data Science for Biologists Using Python 1st Edition Yasha Hasija pdf download
https://ebookmeta.com/product/hands-on-data-science-for-
biologists-using-python-1st-edition-yasha-hasija/
https://ebookmeta.com/product/all-about-bioinformatics-from-
beginner-to-expert-yasha-hasija/
https://ebookmeta.com/product/translational-biotechnology-a-
journey-from-laboratory-to-clinics-1st-edition-yasha-hasija-
editor/
https://ebookmeta.com/product/data-driven-seo-with-python-solve-
seo-challenges-with-data-science-using-python-1st-edition-
andreas-voniatis/
Curse and Craving (Of Myth and Man #1) 1st Edition Jill
Ramsower
https://ebookmeta.com/product/curse-and-craving-of-myth-and-
man-1-1st-edition-jill-ramsower/
Coherence: In Signal Processing and Machine Learning
Ramírez
https://ebookmeta.com/product/coherence-in-signal-processing-and-
machine-learning-ramirez/
https://ebookmeta.com/product/mine-2nd-edition-pieces-of-gray-
book-1-connors-lydia/
https://ebookmeta.com/product/snow-ridge-mystery-box-set-
books-1-5-emma-lee/
https://ebookmeta.com/product/canvas-lms-for-dummies-marcus-
painter-eddie-small/
https://ebookmeta.com/product/cybersecurity-duane-c-wilson/
Common Pool Resources Strategic Behavior Inefficiencies
and Incomplete Information Ana Espinola-Arredondo
https://ebookmeta.com/product/common-pool-resources-strategic-
behavior-inefficiencies-and-incomplete-information-ana-espinola-
arredondo/
Hands-On Data Science for
Biologists Using Python
Hands-On Data Science for
Biologists Using Python
Typeset in Times
by MPS Limited, Dehradun
Contents
Preface................................................................................................................................ xi
Author Bio ........................................................................................................................ xii
3. Biopython ................................................................................................................................45
Introduction .............................................................................................................................. 45
Installing Biopython ................................................................................................................ 45
Biopython Seq Class ............................................................................................................... 45
Parsing Sequence Files ............................................................................................................ 47
Writing Files ............................................................................................................................ 51
Pairwise Sequence Alignment................................................................................................. 53
BLAST with Biopython .......................................................................................................... 57
Multiple Sequence Alignment................................................................................................. 59
Construction of a Phylogenetic Tree ...................................................................................... 62
Handling PDB Files................................................................................................................. 64
Exercise .................................................................................................................................... 70
v
vi Contents
7. Hands-On Projects...............................................................................................................137
Differential Gene Expression Analysis................................................................................. 137
Quality Control ...................................................................................................................... 138
Normalization......................................................................................................................... 141
Differential Expression Analysis........................................................................................... 146
Cluster Map ........................................................................................................................... 151
Gene Enrichment Analysis .................................................................................................... 152
SNP Analysis ......................................................................................................................... 153
Exercise .................................................................................................................................. 160
Index..............................................................................................................................................285
Preface
Data science is rapidly becoming a vital discipline involving the use of big data to extract meaningful
information. With the advent of high throughput technologies in the field of healthcare, it is becoming
increasingly imperative for life science researchers to analyze the massive amount of data being
generated. Researchers with little or no computational skills often find the task challenging. In order to
overcome this challenge, we have meticulously drafted this book, using illustrative examples, as a
stepwise guide to ease newcomers from the field of life sciences to the field of data science. We have
chosen Python as our programming language of choice because of its easy accessibility on all operating
systems, versatility, comprehensible interface, ease of use, object-oriented features, and wide range of
applicability.
This book will serve as a beginner’s guide for anyone interested in the basics of programming, data
science, and Machine Learning. Every topic has an intuitive explanation of concepts and is accompanied
by the implementation of the concepts using biological examples. This book can also serve as a
handbook for biological data analysis using standard Python code templates for model building -
facilitated with supplementary files for each chapter. The text is made to be as interactive as possible
with accompanying Jupyter Notebooks for every section, to help readers practice the codes in their local
systems. Each chapter is specially designed with examples.
The book is divided into two sections. The first section deals with an introduction to basic Python
programming and a hands-on tutorial for data handling. Chapters in this section elaborate on the usage
of some of the basic Python libraries and packages. One of the important libraries for life sciences data -
Biopython - is explained in this section with examples of reading and writing various biological file
formats, performing Pairwise and Multiple Sequence Alignments, handling protein and sequence data,
etc. The subsequent sections elaborate on data handling using NumPy and Pandas, data visualization
techniques, and dimensionality reduction methods that are common to all data analyzes and also provide
illustrative examples for biological data.
Machine Learning is an integral part of several research projects today and has numerous applications in
the present-day era. Almost all of the disciplines of technology have been transformed by Machine
Learning and artificial networks, and life sciences are no exception, with Machine Learning applications in
fields ranging from agriculture to diagnostics to personalized medicine to drug development to biological
imaging - the list is mounting. The second section of the book deals with Python implementation in
Machine Learning algorithms. Chapters in this section contain an introduction to Machine Learning to
make readers comfortable with the various terminologies used in Machine Learning. This section also
explores popular supervised and unsupervised Machine Learning algorithms - such as logistic regression,
k-nearest neighbors, decision trees, random forests, support vector machines, artificial neural networks,
convoluted neural networks, natural language processing, and k-means clustering - and shows their
implementation in Python.
The book is written considering the need for biologists to learn programming in light of handling
massive data, analyzing it, and deriving useful insights from it. I hope our readers will benefit from this
hands-on book on data science for biologists using Python.
xi
Author Bio
Dr. Yasha Hasija (B.Tech, M.Tech, Ph.D.) is an Associate Professor at the Department of
Biotechnology and the Associate Dean of Alumni Affairs at the Delhi Technological University. Her
research interests include genome informatics, genome annotation, microbial informatics, integration of
genome-scale data for systems biology, and personalized genomics. Several of her works have been
published in international journals of high repute, and she has made noteworthy contributions in the area
of biotechnology and bioinformatics as author and editor of notable books. Her expertise, through her
book chapters and conference papers, is of significance to other academic scholarship and teaching. She
is also on the editorial boards of numerous international journals.
Dr. Hasija’s work has brought her recognition and several prestigious awards - including the Human
Gene Nomenclature Award at the Human Genome Meeting (2010) held in Montpellier, France. She is
the project investigator for several research projects sponsored by the Government of India - including
DST-SERB, CSIR-OSDD, and DBT. As Dr. Hasjia continues conducting research, her passion for
finding the translational implications of her findings grows.
Mr. Rajkumar Chakraborty (B.Tech, M.Tech) received his Bachelor of Technology Degree in
Biotechnology from the Bengal College of Engineering and Technology, West Bengal, India and
completed his Masters of Technology Degree in Bioinformatics from the Delhi Technological
University, Delhi, India. He is currently pursuing his Ph.D. in the field of bioinformatics. He was a
part of the 4-member team which won “Promising Innovative Implementable Idea Award” at the
SAMHAR-COVID19 Hackathon 2020 for innovating a solution towards drug repurposing against
COVID-19. His research interests are in applied Machine Learning and the integration of big data in
biological science.
xii
1
Python: Introduction and
Environment Setup
1
2 Hands on Data Science for Biologists
Programming skills are a valuable asset for any biologist. There are many programming lan
guages that have been developed. Some are for instantaneous computation, website creation, and
database generation, among others, and some are general-purpose programming languages that
were developed to be used in a variety of application domains. Python is one example of a general-
purpose programming language. Guido van Rossum developed it as a hobby in the Netherlands
around 30 years ago and named it after a famous British comedian group called “Monty Python’s
Circus”. Now, Python has applications in various domains like data science, web development,
data visualization, and desktop applications, to name a few. Python is one of the popular pro
gramming languages in the data science and Machine Learning area, and it is community-driven.
Since it has a very steady learning curve, it is recommended by many experts for beginners as their
first programming language to learn. Primarily, Python has simple English-like readable syntax
which is easily understandable by users. For example, if one wants to find the proportion of the
amino acid Leucine with a symbol “L” contained in a protein sequence, the following Python
code will do that:
Protein = “MKLFWLLFTIGFCWAQYSSNTQQGRTSIVHLFEWRWVDIALECERY”
Leu_contain = Protein.count(‘L’)/len(Protein)
print(Leu_contain)
The code is very much similar to the English language. The first line is the protein sequence. The
second line calculates the Leucine residues (denoted by the letter “L”) by counting the number of times
“L” appears in the sequence and then dividing it by the total length of the sequence. Moreover, at last
printing the value, it turns out to be 0.108
Thanks to the readability of Python codes, learners can concentrate on the concepts of programming
and problems more than learning the syntax of the language. As Python is community-driven and it has
one of the largest communities, Python has evolved to contain several important libraries that are pre-
installed or are freely available to install. These libraries help in the quick and efficient development of
complex applications, because these do not need to be written from scratch.
Another advantage of learning Python is that it can be used for various purposes due to the devel
opment of popular libraries, such as:
• Frameworks like Django, Flask, Pylons are used for creating static and dynamic websites.
• Libraries like Pandas, NumPy, and Matplotlib are accessible for data science and visualization.
• Scikit-Learn and TensorFlow are advanced libraries for Machine Learning and deep learning
• Desktop applications can be built using packages like PyQt, Gtk, and wxWidgets, among others.
• Modules like BeeWare or Kivy are taking the lead in mobile applications.
Learning programming is the same as learning a new language; we have to first understand the
vocabulary and syntaxes. Next, we learn how to construct some meaningful but terse sentences.
Using those sentences, we then form paragraphs, and finally, we write our own story. In this book,
we will start with Python syntaxes and vocabulary. Then, we will construct small programs with
biological relevance to help biologists learn programming with problems that are important
to them.
Installing Python
We are using Python 3.7, which is the current and stable version of Python. Most of the operating
systems either already have Python installed by default, or it can be downloaded from the Python
Software Foundation’s website (https://www.python.org/), where it is freely available. After installing
Python, open the Python Shell in Windows or type “python3” in the terminal of Mac or Linux as
follows:
Other documents randomly have
different content
being established from a point in the plane of the section to the
knee, I obtained contractions similar to those which had been
produced before the limb was separated from the body. I then
formed an arc of moisture, by applying the amputated limb to the
trunk; and having determined the action of the pile to the spinal
marrow and the foot, I obtained very sensible contractions. I
observed, on this occasion, that a frog, prepared some time before,
and which was accidentally lying on the table, at each application of
the metallic arcs moved like an electrometer, and thus confirmed the
action of an arc of moisture.
EXPERIMENT LIV.
After a considerable time had been employed in the preceding
experiment, I endeavoured to revive the action of the Galvanism by
moistening the muscles with a solution of opium. By these means
the contractions seemed to be increased; and the case was the
same in other warm-blooded animals. A series of similar
experiments, if carefully made, would no doubt be attended with
important results; as they might enable us to ascertain the action of
the different stimulants proposed by Dr. Brown. But I must, in the
mean time, observe, that the before-mentioned effects of opium
fully correspond with those long ago observed by Galvani.
It results, in general, from my experiments, that moisture performs a
conspicuous part in producing contractions; and that it is even of
more importance than animal heat. I indeed find that muscular
contractions may be obtained after the body has thrown out a great
deal of its heat, even when it has cooled for several hours, and when
it has been exposed to a temperature below zero; for, if Galvanism
be communicated to a body in that state, muscular contractions will
be immediately excited; but they soon cease by the privation of
animal moisture. If a muscle, indeed, which has been laid bare
resists the Galvanic influence, its action may be speedily renewed by
making an incision into it, or into some of the muscles which
surround it. I can assert, that by this process partial contractions
were produced in the human body five hours after death, every time
that the arcs were applied to the muscular fibres.
Being worn out with this long series of experiments, I found it
necessary to abandon them; but, from the force of the contractions,
it could easily be seen that they might have been produced much
longer.
Having communicated these results to the celebrated Caldani,
Professor of Anatomy in the University of Padua, he requested that I
would confirm the observations I had made by again applying
Galvanism to the membranes and to the cortical substance of the
brain. He was unwilling to give up the system of Haller without very
positive proofs; and his doubts were to me of great utility, as they
induced me to establish the action of Galvanism on these parts by
the following experiments:
EXPERIMENT LV.
As these doubts related to a delicate point, which would have
produced some variation in the theory of a celebrated physiologist, I
repeated the experiment on the head of an ox newly killed, in the
presence of Professor Mondini, who made the necessary
preparations. The dura mater was laid bare; and the action of the
Galvanism being conducted to it, strong contractions were
immediately produced. The same phænomenon took place when the
cortical substance was brought into contact with one of the arcs. I
repeated this experiment with the same success on the heads of
several oxen and lambs.
EXPERIMENT LVI.
When I passed through Turin, Professors Vassalli, Giulio, and Rossi
requested me to perform, in their presence, my principal
experiments, and those in particular which related to the membranes
and the cortical substance of the brain. They observed, at the same
time, that in uncovering the brain of an ox with a cleaver, some
derangement, in consequence of the agitation, might be effected in
that organ, which would perhaps produce an alteration in the
results. Professors Giulio and Rossi proposed therefore to uncover
the brain by the trepan, which gave a greater degree of precision to
the experiment. The dura mater of an ox being uncovered in this
manner, it was subjected to the action of Galvanism, and even with
this mode of preparation the muscular contractions every time the
arc was applied were pretty strong. The arc being determined to the
cortical substance, the force of the contractions seemed to be
increased; and in general they appeared to be more considerable in
proportion as the arc was plunged to a greater depth into the
substance of the brain.
These gentlemen, in whose presence I performed my principal
experiments, having pursued my method after my departure, made
some observations which may be of great use to physiology. They
had before entertained strong doubts whether the heart was
susceptible of the Galvanic action, by means of simple armatures
applied to the different parts of that muscle; and such irregularity
had been observed in the results, that it appeared difficult to
determine the question. I was therefore exceedingly happy that I
had had an opportunity of exciting in others a desire to make new
researches in regard to this point, of so much importance. Professors
Vassalli, Giulio and Rossi repeated and modified my experiments on
the heart in such a manner, that they obtained in man, and warm-
blooded animals, contractions similar to those which I had observed
only in cold-blooded animals. I wait for a detailed account of these
experiments, as well as of others made on decapitated criminals[2],
which were subjected to my processes. The bodies were removed to
the large hospital; and notwithstanding the long period which had
elapsed between the time of the execution and that when the
experiments were performed, they observed almost the same
phænomena.
The observation made on this criminal, that the vital powers exist so
long in the body after death, induces me to hope that I shall be able
to obtain similar results by the application of my method, in common
cases of suspended animation. But when employed for this laudable
purpose it should be modified in such a manner as to render
unnecessary those operations which are so painful to humanity. On
this account, I have invented a method by which muscular
contractions may be produced without the least incision or
separation of the muscles. It is so combined, that it cannot be
rejected by the most rigorous medical jurisprudence.
[2] Some account of the latter, from the Journal de Physique, will be found
in the Appendix.—Trans.
EXPERIMENT LVII.
In order to try the vital force existing in the human body after death,
I immerse the hand in a solution of muriate of soda, and establish
an arc, one of the extremities of which is made to pass round the
fore-arm, while the other is brought into contact with the bottom of
the pile. I adapt to the extremity of another arc an elastic probe,
which is applied to one of the ears, moistened by means of a syringe
with the same solution, and connect the other extremity of the arc
with the summit of the pile. By this arrangement various
contractions, according to the different degrees of vitality in the
bodies, are observed, sometimes in the fingers, sometimes in the
hand, and sometimes in the whole arm. The fingers bend, and move
in a sensible manner; and sometimes the whole of the fore-arm
proceeds towards the breast. The importance of this method for
determining the duration of the vital powers after death may be
readily comprehended. Should means be found hereafter to make
further discoveries in regard to this interesting point, physiologists
may then be able to determine with certainty those cases when
interment ought to be retarded; and those where the good of
society requires that every possible means of resuscitation should be
employed. In the large hospital of Bologna, I made several
observations on this subject; and remarked in particular, how much
the nature of the disease contributes, cæteris paribus, to produce a
difference in the duration of the muscular contractions. I tried the
case of death produced by putrid fevers, by pleurisies, by wounds in
the pericardium, by the scurvy, and by the consequences of
parturition; and I found a great difference in the degrees of vitality,
according to the circumstances of the disease, the age and
temperament of the individual; which confirms me in the opinion I
entertain, that these experiments, if long continued without
intermission by able physiologists, might be of the greatest benefit
to medicine.
These researches are not an object of mere curiosity; they seem to
open an extensive field for promoting the welfare of the human race,
and may be of service in cases of apparent death, occasioned by an
alteration of the brain, and sometimes in cases of asphyxia. Various
learned academies are entitled to great praise for having turned
their attention to this subject, and for having already recommended
different stimulants as proper for being used on such occasions. But
I must take the liberty of requesting that in similar cases the action
of Galvanism maybe tried, by employing the new method here
proposed. It is of great importance that the means of affording relief
to the sufferings of mankind should be multiplied, and especially in
cases in which the old system of medicine presents to us so few
resources. In the mean time I conceive it may be useful to make
some trials on animals thrown into a state of asphyxia different
ways. These researches may lead to valuable discoveries, and
produce some light to direct us in our attempts to save the lives of
men. If the encouragement I have received from the medical and
philosophical world, in general, induce others to pursue the same
path, it will give me great satisfaction. Galvanism is yet in its infancy;
and when we reflect on the slow progress which many other
branches of science have made, and how long they remained almost
stationary before the full importance of them was known, it would
be presumption to set bounds to that which is the subject of the
present work. For my part, I spared no pains during my short stay at
Paris to exhibit my method, and to make it publicly known. Dr. Pinel
assisted at my experiments with the utmost zeal, and was witness to
muscular contractions excited in the body of an old woman, who had
died of a malignant putrid fever. The interest which he took in my
researches induced me to communicate to him several plans I had
formed for giving relief to some of those unfortunate beings
committed to his skill and beneficent care in the Hôpital des Foux. I
pointed out to him some particular cases where the individuals, in
consequence of a deep rooted melancholy, were reduced almost to a
state of idiotism, and in which Galvanism seemed likely to be
attended with the greatest benefit. In the last public sitting of the
Institute of Bologna, at which I was present, I announced the
complete cure of two lunatics performed in the Public Hospital, in
the presence of many of the medical pupils, and with the assistance
of the professors who superintend that establishment, and who are
now employed in confirming my method on other patients. I am well
aware that two cures are not sufficient to make operations of this
kind be admitted as general remedies; but they ought to encourage
physicians to prosecute this subject in order to ascertain how far
Galvanism can be considered as of utility in such cases, and to
endeavour by their labours to fill up the vacuity which still exists in
this part of medicine. I am ready to acknowledge that great caution
ought to be employed in performing such experiments; and for this
reason I purpose, in the third part of the present work, to lay before
the reader the reflections and observations of various ingenious men
who have made this department of Galvanism an object of their
researches.
But before I proceed further, I think it necessary to deduce from
what has been already said a few general corollaries.
COROLLARY I.
The muscles are affected by the action of the pile in a much more
powerful manner when they are laid entirely bare, and when the arc
is made to penetrate to a considerable depth in their substance.
COROLLARY II.
These convulsions are increased in proportion to the number of the
points of contact between the arc and the muscle.
COROLLARY III.
In many cases, muscular contractions are obtained by forming an
arc from one muscle to another.
COROLLARY IV.
Muscular contractions are almost always speedily obtained by the
pile, even when the means proposed by Haller fail to produce them.
COROLLARY V.
The heart, which, according to Haller’s principle, is the first muscle
that receives life and the last to lose it, in comparison of the other
muscles, can with difficulty be made to feel the influence of the
Galvanic action; while the other muscles always retain, a long time
after death, that vital force which it has never been found possible
to excite but by the impulse of Galvanism.
COROLLARY VI.
The partisans of Haller, to excite these contractions, often employ
stimulants, which alter the texture of the muscular fibre, and destroy
its continuity; an inconvenience which may be avoided by applying
Galvanism.
COROLLARY VII.
As the kinds of apparatus before mentioned are not applied to the
spinal marrow alone, but to the different nerves of the animal
machine, they may afford to the anatomist an experimental
myology; by means of which he can render sensible to the eye the
fixed and moveable points of the muscles, and the real extent of
their action.
COROLLARY VIII.
The experiments made on the bodies of persons who died a natural
death, are of the greatest importance to physiology. I am strongly
inclined to think that, by pursuing these researches more in detail,
they will one day make us better acquainted with the character of
the vital powers, and the difference of their duration, according to
diversity of sex, age, temperament and disease, and even according
to diversity of climate and to the nature of the atmosphere.
PART THE THIRD.
EXPERIMENT I.
If you touch with one hand the bottom of the pile, and at the same
time apply to the summit different parts of the face moistened with
salt water, a flash of light will be excited in the eyes. The same result
will be obtained, if instead of touching the bottom of the pile with
the hand you touch it with the sole of your foot. No flash of light is
observed when the Leyden flask is employed in the same manner.
EXPERIMENT II.
Having observed the preceding phænomenon in myself, and excited
it in others, I was desirous of proving it in regard to several persons
at the same time during the course of my public lectures, and for
that purpose I made use of the following apparatus. I arranged two
metallic plates in a horizontal position, at the distance of nine inches
from each other, so that six persons with their hands dipped in salt
water could touch the lower plate, and the upper one with the tips
of their tongue. A charged Leyden flask placed between the two
plates being then discharged, the whole of the persons experienced
a violent shock, but perceived no flash of light. It is well known
however that, when a similar arc is formed with the interposition of
a very strong pile, a flash of light is constantly observed; though the
force in the second case is much less than that excited by the
explosion of the Leyden flask. The same result will be obtained by
bringing the upper plate into contact with the nose.
EXPERIMENT III.
As my pupils took much interest in this research, some of them
suspected that the light of the apartment might perhaps have
effaced that excited by the electricity. I therefore made the
apartment entirely dark; and one of them taking a Leyden flask
applied it to the point of the nose of another person with whom he
was in communication, by laying hold of him with the other hand. By
these means a very strong shock was given, but no flash of light was
observed. This experiment was repeated, making the person who
received the shock of the Leyden flask to remain some time before
in the dark, that his eyes might be better enabled to perceive any
faint light that might be excited: but the result was still the same. To
those who refer Galvanism to the common laws of electricity, it will
be difficult to comprehend the cause of the different action exercised
by the latter on the organ of sight. But as it is not my intention at
present to enter into any discussion on this subject, I shall leave it to
philosophers to assign a reason for this phænomenon, and only
observe, that the properties above indicated will be sufficient to
authorize medical practitioners to prefer, in certain cases, the
administration of Galvanism by the pile to that of common electricity.
Before I proceed directly to the medical administration of Galvanism
to the organ of sight, I think it necessary to distinguish four classes
of blind persons whose cases ought to be considered separately.
The first belongs to those who from their birth have been deprived
of the valuable blessing of sight.
The second comprehends those become blind in consequence of
some great læsion, or some derangement in the solids or in the
fluids which constitute the mechanism of the eye.
The third, those who have become blind by some morbid action,
though the mechanism of the eye has been little affected, and
though no impediment has occurred but in regard to the action of
the optic nerve.
The fourth class comprehends those who, though not actually
deprived of sight, have it much weakened in consequence of
disease, or of some other cause.
The administration of Galvanism does not hold forth much hope of a
cure to persons belonging to the first two classes. I however
resolved to attempt some experiments on this subject at Bologna;
but though there were a great many blind in that city, I found that
they had become so by the malignant influence of the small pox.
This observation will, I hope, be of service to the pursuits of the
celebrated Dr. Jenner, and of all those who exert themselves to
promote the beneficial practice of vaccine inoculation.
Being deprived, at Bologna, of any opportunity of trying the effects
of Galvanism in cases of persons born blind, I galvanised several
who had lost their sight at a very early age. I first applied the
Galvanism to the arms of five blind persons, some of whom had lost
their sight thirty, and others forty years and even more. By this
method they were familiarised with the idea of its mechanical action,
and learned to distinguish it from every other sensation. I then
applied Galvanism to the lips, and to the tip of the nose, in a
darkened apartment; but in three instances only the patients had a
real perception of light, to which they had been so long strangers. I
then applied it to cases of amaurosis, and at first had confident
expectation of effecting a perfect cure. One of my patients was a
woman, whom this disorder had deprived of the sight of one eye,
while that of the other was much weakened. After administering the
Galvanism different ways, I observed that the eye totally blind began
to have a perception of light, and that the sight of the one which
was weakened became much stronger. I then took a book, which I
held at a considerable distance from her; and removing it gradually
further as the Galvanism was administered, I observed, in
consequence of this method, that the patient’s sight daily improved.
But I must freely confess that the success obtained, though at first
flattering, was not of long duration; and that when the Galvanism
was discontinued a great deal of the benefit which had been
obtained was again lost. On this account, I was discouraged from
administering Galvanism any more in such cases. I am however of
opinion, that by varying the method of administration it may be
attended with some utility. I shall here observe, that having once
had occasion to administer common electricity in a similar case of
amaurosis, I was never able to excite the perception of a flash in the
eyes of the patient, though the electricity was applied directly to the
eye itself.
I have had few opportunities of applying Galvanism in diseases of
the organs of hearing. Besides, I thought it almost needless to try a
method which had been already brought to a state of perfection by
some of the most celebrated professors of Germany and Berlin. I
admired in particular a very ingenious machine, invented for that
purpose by a German philosopher, and lately constructed in England
by Mr. John Cuthbertson, an eminent philosophical and mathematical
instrument maker, and celebrated for having constructed the large
electrical machine of Harlem. The apparatus consists of a metal
lever, which by means of certain wheels and machinery rises and
falls every minute or second, and at each time of falling forms a
communication between certain parts of the patient and the pile. In
consequence of this arrangement, the interrupted action of the
Galvanism is renewed every time that the communication between
the patient and the pile is re-established. Before my departure from
London, I made several changes and improvements in the usual
construction of this apparatus, in order to give it as much simplicity
as possible. The following is the manner in which I caused it to be
constructed lately for my own use. One extremity of the lever which
forms the communication (Plate III. fig. 1.), is fixed to the base or
negative end of the pile, and the other terminates in a small
hammer, so placed as to strike a bell, which by means of a bason of
water is in communication with certain parts of the patient, while an
arc extends from the patient to the summit or positive end of the
pile. In consequence of this arrangement, every time that the small
hammer strikes the bell the Galvanic action of the pile is repeated.
In cases of deafness, I cause the patient to hold in one hand an
insulated metallic arc, one end of which is brought into contact with
the affected ear, and the other with the positive end of the pile; and
to immerse the other hand in a bason of salt water placed above the
bell. When this disposition has been made, the wheel-work is turned
round, which gives motion to the lever; and every time that the
hammer strikes the bell, a communication is formed between the
positive and negative ends of the pile: consequently there will then
be a circulation of the fluid, and the Galvanism will exercise a direct
action on the organ of hearing. The apparatus, constructed in this
manner, appears to me to be reduced to great simplicity: and
therefore I propose to extend the use of it, by employing it to
administer medical Galvanism to other diseased parts of the body.
Before I conclude this article, I must suggest a hint respecting the
application of Galvanism to diseases of the teeth, founded on
information communicated to me on this subject by Mr. Fowler, an
eminent dentist of London. When the caries is concealed from the
sight, Mr. Fowler employs the following method to discover the
affected tooth. He first insulates the patient; and having put into his
hand the electric chain, he applies a small piece of wire to the dens
sapientiæ, drawing it gradually over its surface: he then applies it to
the next tooth, repeating the operation, and proceeds in like manner
with the rest till he comes to the diseased tooth, which discovers
itself by a violent pain producing an involuntary commotion in the
body. It is always remarked, that when this tooth is extracted it
exhibits a carious part not before visible. This method, therefore, is
of great importance, as it frequently happens in such cases that the
dentist, not being able to distinguish the diseased tooth from the
rest, is obliged to draw some that are sound before he can discover
it.
SECTION III.
Application of Galvanism in cases of asphyxia and drowning.
EXPERIMENT I.
Some dogs and cats were immersed in a large pond till they gave no
external signs of respiration, or of muscular motion; and Galvanism
being immediately administered to them, according to the methods
already described, they were sometimes restored to life. I make use
of the term ‘sometimes,’ because, if animals are immersed in water
for a longer period than their organization can bear, and if the vital
powers are really destroyed, it is evident that it will be impossible to
restore them to life by any physical process whatever. I obtained the
same results from to animals thrown into a state of asphyxia in
different ways.
EXPERIMENT II.
Having applied Galvanism to the trunk of a dog, in the Hôpital de la
Charité at Paris, air seemed to escape from the tracheal artery on
every application of the arc. Being requested to repeat and confirm
this interesting experiment, I found myself under the necessity of
sacrificing a new victim to my Galvanic researches. As it was
necessary to examine the phænomenon while the body was in that
state of vitality most proper for the observation, I exposed the trunk
of another dog recently killed to the Galvanic action; and having
placed a taper near to the tracheal artery, it was extinguished twice
in succession by two applications of Galvanism. By repeating this
experiment, in Mr. Wilson’s anatomical theatre, Great Windmill-
street, and in the theatres of Guy’s and St. Thomas’s Hospital,
London, I found that the taper could be extinguished a greater
number of times.
These experiments give me sufficient reason to hope that Galvanism
may be administered with some advantage in cases of drowning. But
as I never had an opportunity of trying the effects of this stimulant
in such cases, I have requested several medical practitioners to pay
attention to this application of Galvanism, which may be of the
utmost importance to the cause of humanity. I have already
mentioned that the method which I propose is exceedingly simple;
that no anatomical operation whatever is required; that it is
attended with no danger; and that the possibility of saving the life is
in every case respected. Nothing is necessary but to immerse in salt
water one of the hands of the person subjected to the operation,
and then to apply the Galvanic current to one of the ears and to the
surface of the salt water.
Dr. Lettsom, a very zealous member of the Humane Society, having
been present at some of my experiments, I requested that he would
recommend the application of Galvanism in cases of drowning. He
assured me that he would use his endeavours to cause my method
to be tried, and I had several conferences with him on the subject,
that I might communicate to him such information as might tend to
facilitate the application of it. As the Galvanism in such cases ought
to be administered with great promptitude, we agreed that the
apparatus of the trough is preferable to that of the pile; and we
contrived the plan of a portable box to contain a trough, two arcs,
and a solution of common salt. Such an apparatus will be
exceedingly convenient, and may easily be employed in all cases of
drowning and of asphyxia.
SECTION IV.
Galvanism applied to the cure of melancholy madness.