Skip to main content

There’s a snake in my boot!

Have you ever run experiments only to receive gigabytes of data that is hard to navigate, visualise or manipulate; and impossible to use with traditional programs like Excel? 

Some simple programming could be the solution you’re looking for!

My experience with programming began relatively recently when I found myself needing to process large numbers of atomic force microscopy (AFM) force curves yet unwilling to part with money for a program that seemed reasonably simple. After a week spent learning the basics of several common languages (e.g. Ruby, Javascript, Python and jQuery) at Codecademy, I settled on Python to develop further. It seemed most appropriate since it made sense to me and had some statistical and graphical packages (pre-written functions) available. Codecademy is great for learning the basic concepts and, importantly, is free to use. However, the websites I looked at tended to overlook how to write and run the programs on your own computer.






Some time later, I had become more familiar with the concepts through practicing by building simple things like a calculator, a clock, hangman (it’s simple but I’m proud of it :-); and noughts and crosses. I broached the initial problem – creating something to display, interpret and analyse force curves from AFM. Since this task was more complex than the previous ones I encountered more problems. However, with a simple Google search you can find the answers to most queries, typically on the Stackoverflow forum, since it’s highly likely that someone will have had a similar problem before. The first product was a little clunky, slow and plagued with bugs, but later versions were more streamlined – good enough for personal use (but probably not good enough to share with the wider community). My simple pieces look like other simple pieces I’ve seen but my lack of formal training makes me concerned that my code would look like a hideous train wreck to the more experienced coder.



While at the outset I wanted to save time and money, it is completely possible that more time has been spent creating a solution than strictly necessary.


Since then I’ve become more proficient (or at least think I have) and have been able to cobble together some other programs far more rapidly to help me with my work from really insignificant, and useless pieces that illustrate droplet contact angles, to those that display Raman spectra (I couldn’t find the original program), animate AFM images and one that allows Voronoi polygons to be overlaid on an AFM image of a surface to analyse the order and size distribution of pores.



Coding can be used to interact with real, physical world by using products such as the Raspberry Pi or an Arduino board with some electronics knowledge and a good helping of ambition. Just see Hackaday  or Instructables for some examples.

I’d encourage everyone to take the time to explore basic programming even though if it appears daunting. It sounds cliché, perhaps it is, but with the limitless problems to apply yourself to overcoming ‘programming can be fun’ – I promise – and there’s a strange satisfaction to be found when a program runs as it should first time!





About the Author: David Mallinson. David studied Pharmacology at Newcastle University and is now doing a PhD investigating protein-biomaterial interactions. ORCID 0000-0003-2615-633X 



Comments

Popular posts from this blog

Welcome to our Blog

Welcome to the  Lamprou Lab Blog ,  Don’t tell anyone...our new blog posts are coming soon... Our  Research Lab  offers an excellent environment for research with several laboratories that are fitted with modern  equipment . We are applying Nano and Microfabrication Techniques in the  Manufacturing of Drug Delivery Systems, Medical Devices & Implants . 

What Happens when the Bubble Bursts? – Dealing with Depression as a Student

A PhD is wonderful experience! It is a great opportunity to meet new people, travel the world, build more skills and, ultimately, provide a better future for yourself and your family. While many students complete this experience without any difficulties, some students may find, on one or more occasions, they encounter stressful situations that can be difficult to deal with. If ignored, this can lead to greater problems, such as depression. Depression is a complex, yet surprisingly common, illness that can affect as many as 5 in 100 adults every year [ 1 ]. Despite these statistics, it can sometimes be difficult to diagnose. While some people experience more obvious symptoms such as low mood and general loss of pleasure in enjoyable activities, other symptoms such as disturbed sleep, changes in appetite and general agitation can also be an indication that something is wrong.  

Happy New Year 2016!

The Lamprou Group wishing you peace, fortune, success, lots of love, and happiness this upcoming year. Happy New Year 2016!