Sunday, 19 May 2013

Happy hens of Haiku and the Boo Boo Zoo


Lindsay and I celebrated this past Earth Day by finally getting some backyard chickens in Haiku, HI. What could be better than combining composting, egg production, useless yardspace, and companionship!

In a typically Maui fashion, our hens are a bit strange, being rescue hens of unknown provenance from Maui's 'boo boo zoo'. The private animal rehab center for domestic animals is one of many controversial private animal sanctuaries, notorious for a strict no-kill-policy. Broken limbs, blindness, illness, no euthenasia whatsoever.

While such a policy is perhaps cruel, the greater tragedy is how large amounts of private money (often from one or two single rich donors) flows into so many dubious domestic animal sanctuaries, while programs targeted at endangered Hawaiian species go underfunded. Hawaii has lost the majority of its endemic species and more are on the way out. How great it would be if one or two rich Americans made it their 'pet cause' to fund the conservation efforts aimed at the Maui parrotbill (Only ~500 left) rather than rescuing species that are invasive and at zero risk of extiction.

Dispite good intentions, such suboptimal outcomes highlight the fallacy of the Libertarian (and American?) narative that we should facilitate rich people having more money through low taxation and let them reinvest the money into the economy as they see fit, rather than tax and use the resources for needed projects. The extremely rich just funnel scarce resources into crazy pet projects of dubious value.

BTW, volunteering / donating to the Maui Parrotbill project is very fun, even more fun than chickens, and extremely valuable. Check out www.mfbrp.org

Tuesday, 19 February 2013

Advice for ecology grad students... (Science)

ECOLOG is the the largest listserv devoted to ecology-based topics (also one of the most bizarre listserv I've encountered). There has been a lively discussion recently about a publication by Blickley et al (2013). They provided a thoughtful analysis of the skills needed by ecology/conservation employers, inferred from job-postings on the web. The community's response has been hearty surprise by the study's emphasis on 'project management / interpersonal skills', trumping technical skills. This conclusion seems consistent with a quick head-count around the NOAA office: most of my colleagues are administrators, managers, coordinators (with impressive technical qualifications) while dedicated Quants are few and far between. In contrast, the community gave a resounding 'learn GIS' rejoinder to the study.

And because I love ordination diagrams, below is a closer look at the Blickey analysis: quantitative/technical skills and the management/interpersonal fields seem to be on opposing ends of the 1st Principal Component, suggesting that grade students may have to decide early to bet on succeeding as a technical person / senior scientist, or as a manager type. The study clearly states what it thinks is a winning strategy: '“. . . there are a lot of things you can learn, but [interpersonal skills are] the hardest to teach.”'



I think the quantitative side of my brain has cannabalized the portion devoted to interpersonal skills, so I have no advice to give on this matter. But, in terms of the responding need for GIS savvyness: here are my two cents:
1) everything in ecology has a space-time context, and colleagues without basic GIS facilities are frustratingly difficult to work or communicate with.

2) if you are serious about working with large ecological data or serious about taking up GIS, beware of classes/programmes that are little more than ESRI tutorials: you will be set up with a platform of limitation and disappointment. Even at the highest echelons of ArcMastery (and expensive licenses), you'll inevitably end up having to tell your superiors that you couldn't complete such-and-such a task because 'ArcGIS doesn't do that.' (But hey, that's a good looking map!)

Getting really good at ArcGIS is like becoming a master of Macromedia right before Flash came out: they jump from Avenue, to VB, to Python, to .... what's next? Instead, if you use R for GIS, there is always a way to do what you want. It may be difficult, but mastering R for a difficult GIS task yields transferable skills in a host of disciplines. It used to be a huge pain, but recent libraries like 'rgeos' (mixed with 'rgdal' and 'raster') give users most of the cookie-cutter facilities familiar to ESRI users. And its free, open-source (more on this later...)

I hope to have a little tutorial on GIS'ing in R. Until then, the already R-acquainted can leap into the subject with the following advice:

Getting started with GIS in R

1) for any questions, always start your Google/DuckDuckGo queries with 'R-sig-geo': the listserv archives are replete with questions and answers to the issues you will inevitably have (and far better than ESRI documentation).

2) get acquainted with he internal data structures of gridded data and vector data in the 'sp' package, e.g.,
> ?SpatialGridDataFrame
> ?SpatialPointsDataFrame
... to the point of being able to reconstruct the structures from stratch. HINT: they are lists of lists of lists of...

3) learn about the 'Proj.4' syntax of defining projections/coordinate systems. There is a much larger context to this project, but as a starting point one can just bookmark the more usual coordinate systems and projections, such as WGS84 is "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs", or the UTM zone 9N (e.g., for British Columbia Canada)could be "+proj=utm +zone=9 +ellps=GRS80 +units=m +no_defs".

4) learn the examples in the help files of the following core GIS libraries:
rgeos: vector data basic operations, like unions, buffers, spatial sampling, etc.
rgdal: GDAL library to read and write a variety of raster datasets (see 'writeGDAL(...)') : GeoTIFFS, ESRI grids, floats, etc. It also provides the ability to reproject vector data (see 'spTransform').
maptools: basic GIS facilities, including 'readShapePoly(...)' for easy import of ESRI shapefiles.
raster: clip, shrink, reproject, resample, stack rasters -- a parallel (and better) way of representing gridded data (seemingly a rival to the SpatialGridDataFrame?). Despite the one-line-of-code annoyance of switching between SGDF class and raster class, this package takes the cake for handling of rasters. (For those of you taking note, you'll notice that, yes, there are TWO different libraries for projecting vector versus raster data).

5) learn about plotting maps with the spplot(...) function. An entire book could be written on spplot(), but start with col.regions=terrain.colors(100) for decent colours.

Linux Users
There are a few extra steps to get the GIS libraries running in Linux, in particular, installing the libraries upon which 'rgeos', 'maptools', and 'rgdal' depend. Even though the dependencies are documented in the respective packages pages, I still found it a bit tricky. First, the libraries you want are often the 'dev' versions (e.g., libproj-dev), as explained in this post. I was generally successfully in Ubuntu by with:
> sudo apt-get install libproj-dev libgdal1-dev
.

Mercifully, there is a dedicated repository of GIS libraries for Ubuntu and Debian flavours. You can add the repository to your source list by entering the following in your terminal:
> sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable


1 Blickley, Jessica L., Kristy Deiner, Kelly Garbach, Iara Lacher, Mariah H. Meek, Lauren M. Porensky, Marit L. Wilkerson, Eric M. Winford, and Mark W. Schwartz. “Graduate Student’s Guide to Necessary Skills for Nonacademic Conservation Careers.” Conservation Biology 27, no. 1 (2013): 24–34. doi:10.1111/j.1523-1739.2012.01956.x.

Saturday, 16 February 2013

DuckDuckGone

This valentine's I'm saddened by the surprise demise of a duck--likely taken by a fox on one of these ill-weather days while I was in Canada. I live on a small hobby farm outside Washington DC, in Boyds, where simple chickens, goats, horses and duck have been companions to ground my psyche to the here and now from the abstract coding at NOAA. The duck never quite fit in among the other animals, having lost his con-specifics to a fox raid early in the year. I liked him the best: he'd actually wake me up in the mornings begging for bananas and oats.

And so my mind thinks of a cyber outsider that has me excited: DuckDuckGo. It is described as a hybrid search engine, pulling results from Yahoo, Wolfram Alpha, Wikipedia, and its own crawler. It is generating lots of buzz, perhaps being the only contender against the Google. For me, its open-source, tweakable platform tickles my nagging sense of indignation with Google and its censor-happy tendencies. DuckDuckGo promises zero tracking, privacy, and decent searches. For me, it does well for R and science related searches, which is important (although Google is still the best for pulling results from academia, Stack Overflow, and relevant science sites, etc).

Has it occurred to you that Google has turned to the dark side? For me, the realization came a long time ago, before SOPA and other aggressive attacks on internet freedom. Consider the story of the deceased Gigapedia.org and Library.nu way back in 2006: these websites hosted free (& pirated) college textbooks, and were blacklisted from the Google results. To add insult to injury, when Library.nu was taken down in early 2012, the domain name actually redirected you to Books.Google.Com (wow!): now, library.nu directs you to internationalpublishers.org, which is a great study of double-think.
For me, I'll give DuckDuckGo a good chance.
My cannot-do-without Search tools:

Firefox InstaFox Add-on: to do all sorts of search engine searches from your browser address bar. Tailor to use d+space for DuckDuckGo. I have 'ci' for CiteUlike.org, 'me' for Mendeley, etc.

GNOME Do: For linux users, why point and click when the Super+Space allows you access to web searches, applications, recent files, music, system settings, etc.
(I miss the duck).

Wednesday, 13 February 2013

The Random Whale Wiki App - Android

Ever want to just stumple-upon random Cetacean information from Wikipedia? Here is an App for that!  I made it as a fun way to lazily learn about marine mammals on my tablet while in bed: just lie back and learn about the fascinating behaviour, evolution, phylogeny and all the mangled bytes on Wikipedia's Cetacean portal.

Instructions:
> Download the .apk file here
> Move the .apk onto your android device, via bluetooth or usb or whatever. Move it anywhere in the android file structure, but make sure you can find it again within your Android file manager (I use ES File Manager).
> Detach fron computer and turn on your Android. Browse to the .apk file and tab. Follow instructions to install!
> To locate the Random Whale Wiki icon, you'll need to manually drag it onto your 'desktop' through Settings--> Apps.
The app is admittedly primitive: just a refresh button to get a new marine mammal article, plus some facilities for directed browsing. Enjoy! The real engine is the Wikipedia Random project.

Personally, I think Wikipedia is great for learning about science. Recent innovations like the organized Portals are downright exciting! I like the Biology Portal. Who would want the linear bore of an intro college textbook, when you can have the organic cluster of articles that allow you to click-through and venture out into the Wikispace as far as you are willing to go?  Just be mindful of Wikipedia's biases and reliability.

Are you a fan of Wikipedia random-browsing? How do you use the web's 2.0 resources for edutainment?

Monday, 20 December 2010

Christmas bird Count -- Mayhem birding

Having returned from point counting birds in the tropics, the annual Christmas Bird Count is comparatively quite fun for all its quirky opposites to the speciose, song-rich, in-tune-with-nature sport of spring or summer. I did mine inland of Port Rowan, Southern Ontario, hiking around in silent, snowy weather, in lame pursuit of the very few winter species and lost aberrants who tough it out in the dark, cold, frozen landscape. What better way to celebrate the holy Winter Solstice, than to defy life-in-hibernation, and work hard to get what you want from Nature: stomping through icy wetlands, crashing through brush, scaring up what we could, and invading people's bird feeders to stack the count – mayhem that counts as a count, opposed to the disciplined, randomized, systematicitized, protocolized summer studies.

37 species in all, a count that was well earned for 8 hours in the cold. 103 species in total for the Port Rowan area. Christmas just took on a whole new wholesome meaning for me!


       ._%<^:,                            
      <!+_:=.:=                           
      ;_7'... _>                          
     j;-.   .::==.                        
   _yD':=._ . ;=%3XSows,,,.               
 .aY^    <=:- :<o3SdSXmmmmmww,>__.        
_7'      )=. .-vvIIv1vvYnouvX##Z##mmgywwau,
"         (... ."*nvv2inXXnvnoqmm#Q#W#U1s%>*
          +=,     -<XunXnnwwmW#T?"`.+++"  
           +;..__s, -~""""""~    ._--     
            -<QQQQQmwa,,  .     _-        
              -?$QQQWWQQQggmmo.-          
                 "?$WUWHTV??5a.          
                    -4,     :W'           
                      4g    ][            
               .      =B   _2             
            .    -... =E . j'._.          
                   -::<f..:Y%*+`         .
                   .. )[....--            

Monday, 30 August 2010

Development practitioner -- a bridge between worlds

This spring and summer, I’ve had a coveted placement through the Canadian International Development Agency (CIDA) to practice sustainable development in a little known archipelago in the Southern Antilles. Known to the wider public as the tropical backdrop in Pirates of the Caribbean, the small island nation of St. Vincent & the Grenadines has lured many foreigners to its shores, from international organizations, wealthy Hollywood types, to coastal resource
developers. The fascination may be due to islands’ remoteness along the Southern Antilles chain, leaving it relatively unscathed by the environmental despoliation so common in the more colonial North. Here, foreigners come and fall in love with a glimpse of beaches, reefs, and mountains of a Caribbean that once was.

The attention has not always been beneficial, however, and it is in this context of suspicion, grudges, and hope which has shaped my placement and provided the most insights into sustainable development. The worst examples of foreign development blight the seascape in ruin, such as a foreign company’s failed marina project near Ashton, on  Union Island, where I lived. Despite a damning environmental impact assessment, the company slashed through Mangrove, dredged up coral, and constructed a long causeway of steel pilings and concrete, only to go bankrupt and leave the lagoon in devastation. The abandoned causeway has blocked tidal flushing of the lagoon, killing off most coral and conch, leaving stinky stagnant water, and stunting the growth of the nearby mangrove forest.

Enter myself: a youthful ornithologist from the Coady International Institute on a six month placement. I’ve been charged with setting up an ecosystem monitoring regime for the lagoon, as a restoration project attempts to reestablish the tidal flushing (funded by a US
grant through the Neotropical Migratory Bird Conservation Act). In this, I’ve had perhaps the paradise job: wading in hipboats through mangrove forests, recording sightings of rare exotic birds, taking water quality samples along emerald blue coastlines, and writing bird
identification software to train local persons. What could be better than working for the common good, learning a new culture, and living on an Island paradise? Such is the allure of young persons all across Canada enrolling into the Development field.

If it seems too good to be true, it is. This development model of parachuting in a foreign person to solve other peoples’ problems has long been suspect. Despite good intentions, money, and the willingness to work hard, nothing lasting will happen without local persons firmly in the driver’s seat. This came to lightly lividly as one of my CIDA-funded colleagues had to be pulled back from a Grenadine Marine Protected Area, arguably fighting the good fight for principles of environmental sustainability and community control, but doing so with too much initiative and not enough local oversight. My predecessor was brought to tears as a local organization lambasted her organization for being too controlling and arbitrary with funding. In contrast, a third organization charged us with being too lax about finances, ceding too much control to a local strongman, who then spirited away the funding. Such is the knife edge of participatory development: on the one hand, people are sensitive to the faintest whiff of paternalistic control by foreigners, and on the other hand, there is sadly an all-too-real risk of “take the money and run” in the majority world.

These lessons come late, but I may have stumbled into a way forward while struggling with a macroalgae mariculture cooperative, who had its own negative history with development NGOs. Initially frustrated with lost data and things not getting done, the slow pace allowed me time to absorb Island culture and build relationships with community groups. This culminated in a “baptism by fire” airing of grievances which paved the way for frank discussions and genuine friendships. Relationships are everything on Union Island, both as a way “in” to get things moving, and as the glue which governs people’s sense of responsibility. We’ve since won funding through the United Nations Development Programme’s Global Environmental Facility, to start capacity building and environmental monitoring.

Through the Coady International Institute Youth-In-Partnership Program, I’ve come to see international development as being about building bridges—linking the highly technical and micro-managed world of donor organizations with the realities of working on-the-ground in places abroad. Young persons interested in pursuing a life in development need to be able to listen, be likeable, and be able to straddle two worlds fluently.

Saturday, 24 July 2010

Genome not as useless as previously thought (was there any doubt?)

I had written earlier that only 4% of the human genome actually codes for proteins, relegating the rest to “junk DNA”. This is only partly true, at least according to a new study in Nature by Dr. Laura Poliseno et al, which suggests that approximately 40% plays a physical, regulatory role.

While many biologists tentatively accepted the 96%-junk-DNA figure, persuaded that the vast amount of parasitism at the organismal level could be mirrored at the DNA level, the concept has been quite unsettling. Poliseno’s hypothesis returns some sanity to our most fundamental unit of self.

According to Poliseno and team, plenty of the junkish pseudo-genes resemble other protein-coding genes, just enough that they attract and bind to floating bits of complimentary micro-RNA. The soup of complimentary DNA snippets would otherwise bind to the gene proper, and hinder the normal protein-producing machinery, thereby down-regulating the proper gene’s expression. He tested this idea using the PTEN tumour suppressor gene and its pseudogene PTENP1.

While knocking down one tenet, it does promote another—that gene expression is a complex, graded process, with nuances and interactions with the environment, that make any sort of one-to-one mapping of genome-to-phenotype, incredibly difficult.

However, this study does not entirely vindicate the genome as some well-ordered, perfectly designed recipe. 40% still leaves a lot of unexplained DNA. One of the more interesting bits are the LINE-1’s (which I wrote about in You are descended from Viruses) making up 20% of our genome, and seem to come from retroviruses, being good for nothing else but replicating and reinserting themselves in our genome.

Or are they? Dr. Gage noticed that LINE1s were more active in the brain tissue of developing mice than in other parts. He admits that they do not code for anything and really are just a random self-replicating nuisance. But could natural selection have taken advantage of such randomness as a beneficial process unto itself? Gage (GAYJuh) points out that developing brains a) have much more active LINE1s then other tissue, and b) they are over-resourced, with an initially superfluous number of neurons and connections which mostly deteriorate with age, leaving the core synapses for the more mature brain. Gage suggests that this deterioration is a sort of “survival of the fittest” of cells whose genes have been scrambled up by hyper-active LINE1s. Mostly, the random insertions of LINE1s will lead to neutral rearrangements, but sometimes they’ll disrupt another gene, and perhaps they may have a beneficial effect, and these he suggests are ones which survive to maturity.

Such a process occurs entirely in somatic cells, and is not passed on through gametes to the next generation. Rather, it is a sort of micro-natural selection that promotes an optimized network within a developing individual. Its an intriguing suggestion, and harkens suspiciously to the idea that complex networks themselves beget consciousness—an idea which is being explored more in computer science and problem solving, as in artificial neural networks.

Whether this study hypothesis bares out in the long run, it does suggest more scrutiny should be paid to the role of viruses in evolution and development. They are, after all, the most distilled essence of life possible.