Monthly Archives: March 2015

Cantor-SageMath-Maxima

I like a lot of things about Wolfram's Mathematica software; it is an extremely useful tool for symbolic mathematical manipulations and visualization of various functions.  However, it is expensive software so recently I have been exploring if there is a free alternative.  In doing this I came across Cantor that can run SageMath as a backend, which in turn is built on top of Maxima and other packages.

cantor-sage

In the screenshot above I took it for a test drive.  In the first lines I set up an equation x^2 + x/2 = a and told it to solve for x.  In the next lines it integrated one of the solutions,

\int_{}^{} \! \left( \frac{1}{4} \sqrt{16a+1}-\frac{1}{4} \right) \, \mathrm{d}a.

Right after that I had it display the TeX code for typesetting the equation, which I can reuse to get it displayed below.

\frac{1}{96} \, {\left(16 \, a + 1\right)}^{\frac{3}{2}} - \frac{1}{4} \, a

Next is a five by five matrix of random numbers, from this the eigenvalues (a summary of how the matrix transformation tends to behave when applied to a system) are calculated and in this example two of them happen to be complex numbers (which indicates that the system has a rotational quality in two of its five dimensions).  Last there is a plot to visualize the matrix entries but it is cut off at the bottom of the window in this image.

I am impressed.  It is still not capable of all the tools built into mathematica but I am glad I came across this.

Some pictures in review

control

We had a bit of cautioned excitement but it turned out to be a false alarm with our mosquito transformation project (link).  To illustrate, the above image is what we expect to see with the mosquito larvae under UV light.  It is dark because we need to minimize the regular light to see the fluorescent pattern; plus we are limited to short exposures because the larvae move around.  Three is some autofluorescence in the thorax (green) and gut (red) but in general the head is dark.  We were injected a 3xP3 plasmid and we expected a green glow in a band in the head if the germline transformation was successful.  At the end of January Jolene found a few mosquitoes that looked like this.

question

The image is really dark because the larvae would not stop moving, so we tried to snap the image as fast as possible.  I am avoiding messing with the image too much because I want to present it as close to what we saw as possible.  If you look toward the top you can see that there is a green band in the head that was not there before.  This is kind of what we were looking for but it was not exactly right.  We expected 3xP3 expression to be more associated with the eyes and there is also red expression nearby.  Long story short it was not a successful transformation.  It appears to have been an artifact of the food and algae of the water they were in and it faded over the next few days.  Stay tuned, we are continuing injections and are now using a different set of plasmids...

In other news, I showed some images of newly fertilized sea urchin embryos and mentioned ageing them a few days to the pluteus stage (link).  We did that but I never showed any pictures.  Well here is one, but it is a little fuzzy because the little things zoom around in the sea water scooping up food; this one was rotating so the center is more focused than the exterior.

urchinlarvae-2014-12-27-11-25-20

Aki has extracted RNA from them and it is being sequenced by a genomics facility.  He currently has over 9 million reads with over 16,000 genes from around the genome identified.  I am purposely avoiding posting too much online about his project before he has a chance to analyse and publish the results himself, but here is an image of a tiny part of the genome from his data, less than 16,000 base pairs.  This is the newly sequenced, never seen before, circular mitochondrial genome of Tripneustes gratilla, the collector urchin.

TgratmtDNA

If you flatten the DNA out into a linear sequence and map the RNA reads to it you can see the relative expression levels of the different genes (the blue hills above the different features).

TgratmtDNAexp

Zooming in you can see the individual sequences that are assembled by aligning overlapping sequences to reconstruct the complete gene sequence. Below is an example from the ND1 gene.

TgratmtDNAexpND1

The bases highlighted in blue are disagreements due to occasional sequencing errors.  Sometimes these are common however and are due to real genetic variation among the individual sampled.  Here is a look at one of these sites, zoomed in even closer, in the COX1 gene.

TgratmtDNAexpCOX1

There is a C/T site that is at approximately 50/50 frequency and these sequence reads are made up of a sample from two different individuals.  In other words this position is a real genetic difference among individuals that are out there in the population.

Finally, some time for some Drosophila pictures.

S124hsflipout-2015-03-18-10-05-53

As the FRT/FLP flies emerge from the vial that was heat shocked (link) the mosaic pattern is encompassing larger and larger sectors (for a reminder, the eyes should either be all red or all white because the cells within an organism are (essentially) genetically identical; the cells in these fly's eyes are genetically different from each other).  The flies in these pictures were younger at the time of the heat shock (compared to the earlier post) so the cells that had the genetic rearrangement have larger numbers of daughter cells.  This gives us some indication of the physical pattern of relatedness of groups of cells on the body and it doesn't always follow what we might expect.

S124hsflipout-2015-03-18-10-04-10

S124hsflipout-2015-03-18-10-02-03

Somatic genetic mosaics

For today I want to show something from a side-project that Aki Laruson is involved in.  The aim here is to generate some preliminary data for a later grant application to expand the project in the near future.  Here are pictures of two flies we generated that are genetic mosaics.  They have groups of cells throughout their bodies that are made up of two different genotypes at a single chromosomal position (usually we think of all cells in our bodies as being genetically identical to each other, although that is overly simplistic for the most part it is true).  In most tissues the genetic difference in these flies does not result in a visible genotype but in the eyes we can see the different cells in the flies.  There are groups of cells that are either red or white phenotypes depending on their underlying genetic make-up.  (Normally a Drosophila fruit fly would either have all red or all white cells in its eyes depending on what alleles it inherited from its parents.)

hs-flp-frt-mosaic-2015-03-08-12-13-05

hs-flp-frt-mosaic-2015-03-08-12-19-14

This was done using genetic sequences from a yeast plasmid (the two micron plasmid or 2 \mu m plasmid) that are inserted into the fly's genome (pioneered by Golic and Lindquist 1989 (PubMed, Google Scholar)).  There is an enzyme called flippase (FLP) that recognizes (binds to) and cuts a specific sequence known as the Flippase Recognition Target (FRT), 5'-GAAGTTCCTATTCtctagaaaGtATAGGAACTTC-3'.  In yeast the FLP-FRT system causes rearrangements to the plasmids structure that allow it to amplify in numbers in the cell when the cell undergoes DNA replication (e.g., Chan et al. 2013 (PubMed, Google Scholar)).

Here in flies the two FRT sites have been positioned on either side of part of the white gene sequence and FLP is placed under the Drosophila heat shock promoter (Hsp70).  We exposed the larvae to 37 C temperatures (by immersing vials containing the larvae in warm water for an hour) to induce the expression of FLP by the flies normal gene activation reaction to heat, which then recombined the two FRT sites together and caused inactivation of the white gene, by deleting part of the gene sequence that was between the FRT sites, resulting in a loss of pigment in the cells of the eyes that are descended from cells in which this deletion happened in the larvae.  (By the way, a common misconception is that the white gene encodes an eye pigment gene.  It does not, but it is in a pathway that is required for the eventual production of several eye pigments in addition to other important molecules.)  There are two broad categories of cells that we are interested in here, somatic and germline cells.  Only germline cells produce gametes that result in the next generation so only the DNA from germline cells get passed on to the next generation; however, most of the cells in a multicellular animal's body are somatic cells that contain DNA that does not get passed on to the next generation.  Ultimately we want flies that have the DNA rearrangement in all the cells of their body.  We can see that the FLP-FRT rearrangement worked in some cells by the mosaic pattern in the eyes but we do not know if this has affected the germline of each individual fly.  If it has, then any offspring arising from these affected cells will contain the genetic rearrangement in all of their cells (all of the cells will be descended from the same two starting gametes, genetic mosaics of this type should not be able to be passed on from generation to generation).  Now we will breed these mosaic flies together and select for all white eyed flies that contain the deletion in all the cells of their body.  Then it's on to the next stage of the experiment.