Subluminal Messages

A science blog for all scientists, even amateurs.

Why Java’s Date isn’t deprecated, even though it might look like it

This shouldn’t be news at this point (JDK 1.5 was released 5 years ago), but in Java 5 Sun decided to deprecate large swaths of java.util.Date’s methods and constructors and introduce the Calendar class, which can handle locale-specific conversions and manipulations of the units of time we humans are used to seeing. This has created some confusion here and there about whether to represent datetimes as Dates or as Calendars, as it looks at a casual glance like Date has been more or less completely deprecated. It remains, however, as the preferred way of representing datetimes in Java. An explanation is after the jump.

Read more »

April 9, 2009 Posted by jpmccusker | Computer Science | , , | No Comments Yet

Go Out and Vote!

Go vote, if you haven’t already.

Get out the vote. Tell your friends, family, co-workers, fans, enemies, frenemies, random people on the street.

Find out where to vote: http://maps.google.com/vote

Today is the day to make history.

November 3, 2008 Posted by jpmccusker | Science | | No Comments Yet

Obama is for Science, We’re for Obama

[Edited to add Obama's positions on NASA and Space Exploration]

Those of you who know me already know that I support Barack Obama for president. I’ve hesitated to post this here, due to the non-political nature of this blog. However, it is long past time for me to make the case for Obama and his policies on science and research. More after the cut on his key positions and why they are important.

Read more »

November 3, 2008 Posted by jpmccusker | Science | , , , , , , , | 1 Comment

Zen Neuroscience: Observing Mindfulness

There are specific neural processes that take place when people meditate, which is demonstrated in the PLoS ONE paper “Thinking about Not-Thinking”: Neural Correlates of Conceptual Processing during Zen Meditation:

Recent neuroimaging studies have identified a set of brain regions that are metabolically active during wakeful rest and consistently deactivate in a variety the performance of demanding tasks. This “default network” has been functionally linked to the stream of thoughts occurring automatically in the absence of goal-directed activity and which constitutes an aspect of mental behavior specifically addressed by many meditative practices. Zen meditation, in particular, is traditionally associated with a mental state of full awareness but reduced conceptual content, to be attained via a disciplined regulation of attention and bodily posture. Using fMRI and a simplified meditative condition interspersed with a lexical decision task, we investigated the neural correlates of conceptual processing during meditation in regular Zen practitioners and matched control subjects. While behavioral performance did not differ between groups, Zen practitioners displayed a reduced duration of the neural response linked to conceptual processing in regions of the default network, suggesting that meditative training may foster the ability to control the automatic cascade of semantic associations triggered by a stimulus and, by extension, to voluntarily regulate the flow of spontaneous mentation.

September 24, 2008 Posted by jpmccusker | Science | | No Comments Yet

Cross-Reference Visualizations

The bar graph that runs along the bottom represents all of the chapters in the Bible. Books alternate in color between white and light gray. The length of each bar denotes the number of verses in the chapter. Each of the 63,779 cross references found in the Bible is depicted by a single arc - the color corresponds to the distance between the two chapters, creating a rainbow-like effect.

Bible Cross-References: The bar graph that runs along the bottom represents all of the chapters in the Bible. Books alternate in color between white and light gray. The length of each bar denotes the number of verses in the chapter. Each of the 63,779 cross references found in the Bible is depicted by a single arc - the color corresponds to the distance between the two chapters, creating a rainbow-like effect.

This is a pretty cool visualization of bible cross-references that was developed by Chris Harrison to show bible cross references throughout the length of the bible. I can’t help but think of how interesting this could be for genome visualization: the cross references could be based on genes that are transcription factors for other genes. (activate or deactivate those genes). Chris has lots of other fascinating visualization projects to look at, and is very stimulating to browse it.

August 15, 2008 Posted by jpmccusker | Science, Visualization | , , | No Comments Yet

Are Genius and Madness Even Closer Than we Think?

“no great genius was without a mixture of insanity”
- Aristotle

“They say madness runs in our family. Some even call me mad! And why? Because I dared to dream …of my own race of atomic monsters! Atomic supermen with octagonal-shaped bodies that suck blood out of…”
-Prof. Hubert Farnsworth

To be clear, by genius I mean the ability for humans to think at the level we do. And by madness, I mean madness. A recent study suggests that we have our big brains at a high price: schizophrenia. It comes down to the massive metabolism needs that our brains have. A team led by evolutionary biologist Philipp Khaitovich of the Shanghai Institutes for Biological Sciences and the Max Planck Institute for Evolutionary Anthropology created an experiment to see how much genes that are involved in schizophrenia have evolved since humans split from chimpanzees. Read more »

August 7, 2008 Posted by jpmccusker | Science | , , , , , | 1 Comment

Searching for Text in Images

We (my lab, http://krauthammerlab.med.yale.edu) recently published on our new image search engine for biomedical images, called YIF, or Yale Image Finder. From our blog post on our web site:

We have recently released a new biomedical image search engine we call YIF. You can access it at:

http://krauthammerlab.med.yale.edu/imagefinder

You can search the actual image content of over 34,000 Open Access articles from PubMed Central. We use OCR with different levels of image correction (article and corpus) for highly accurate image text extraction.

For more details about our algorithms, we have a paper in Bioinformatics titled “Yale Image Finder (YIF): a new search engine for retrieving biomedical images“.

August 1, 2008 Posted by jpmccusker | Computer Science, Science, bioinformatics | , , , , | No Comments Yet

Double Arm Transplant in Germany Considered Success

15 hours and 40 doctors later, a farmer has two new arms. The surgery replaced both limbs of a farmer who lost his arms in an accident in 2002. He lost both arms below the shoulder. From the Guardian article:

Christoph Höhnke, a surgeon on the transplant team, said that the complicated procedure was completed without any unforeseen problems. It involved a team of 40 doctors, nurses and assistants working together, attaching one arm and then the other. “The whole thing went according to script,” he said.

With a surgery as complicated as this, though, many things can go wrong. The patient can reject the transplants, although close matching of blood and other immunological factors can minimize this, along with drugs that can dampen the immune system’s reaction to foreign bodies. The bones may not completely graft together. It’s like recovering from two severely broken arms on top of everything else.

Nerve regeneration has come a long way, however. The man who received a single arm transplant in 2006 was able to write with the transplanted hand within a year.

“nerve regeneration” at Yale Image Finder.

August 1, 2008 Posted by jpmccusker | Science | , | 1 Comment

Running Standard Deviations

My friend Dan at Invisible Blocks came up with a great way to compute a long-running mean from the count and mean:

count += 1
mean += (x - mean) / count

I remembered that I had come up with a similar thing for standard deviation back when I was developing clustering algorithms that could use that value. It uses a power sum average, where you track the power sum as an average (divide the power sum by n) in a similar way.

Read more »

July 31, 2008 Posted by jpmccusker | Computer Science, Science, Statistics, bioinformatics | , , , , , , | 1 Comment

Data Mining: An Introduction

Data mining is, in the most general terms, an attempt to extract patterns and knowledge from data using various types of software and techniques. Data mining is used to learn and predict. This is applied to biology, neuroscience, fraud detection, national security, and even sports.

Some of these are more successful than others. For instance, text mining has been very successful at extracting proper nouns (names, places, etc.) from text, and what might be considered the biggest success of data mining comes from text mining: internet search engines. But at the same time, text mining has been less successful at automated text summarization. Read more »

July 27, 2008 Posted by jpmccusker | Computer Science, Science | , , , , , | 2 Comments