Showing posts with label voucher database. Show all posts
Showing posts with label voucher database. Show all posts

Thursday, 15 November 2012

VoSeq: delete voucher button (new feature)

Dear VoSeq users,


Little by little we are doing some progress on VoSeq's TODO list.

We have released a new micro-version of VoSeq: 1.3.1
In this version, we have included a feature to delete records. You will find a "Delete me" button in voucher pages under the "Administrator" interface. If you click the button, VoSeq will issue a dialog asking for confirmation to delete all traces of that voucher record (including its associated sequences, primers and will remove them from taxon sets).

Use the button with care!

You can download VoSeq from github: https://github.com/carlosp420/VoSeq/downloads


Peña C, & Malm T (2012). VoSeq: a voucher and DNA sequence web application. PloS one, 7 (6) PMID: 22720030

Tuesday, 10 July 2012

Voseq, web database for molecular phylogenetics


  • Are you working in molecular phylogenetics? Do you and your lab produce lots of DNA sequences. 
  • Are you tired of trying to find your sequences among several text files and Excel sheets? 
  • Do you wish there was a easy-to-use database to keep track of sequences and their associated voucher specimens? 
  • Did you ever wished there was a system to create molecular datasets for analysis in PAUP or MrBayes by just a few clicks of a mouse? 
If the answers are "yes", then VoSeq might be for you. VoSeq is a voucher and DNA sequence web application database aimed for people working in molecular phylogenetics.

Main features of VoSeq:

  • Keep track of your sequences and associated voucher specimens. 
  • You upload your data to VoSeq and the back-end relational database will allow you to easily search, fetch, update, etc your DNA sequences or voucher data. 
  • With a few clicks, you can create ready-to-run datasets in NEXUS, Phylip, TNT formats, as well as FASTA files for submission to GenBank. 
  • Use the BLAST capabilities to find similar sequences among those you have, or BLAST against GenBank. 
  • Automated integration with public web services such as Flickr (for posting your voucher photos) and Yahoo Maps (for plotting voucher localities). 
  • You can install it in your computer for private use, or set it up in a shared server for collaborative work via the internet. 
  • and more. 
The publication describing VoSeq came out recently:


Peña, C. & Malm, T. (2012). VoSeq: a Voucher and DNA Sequence Web Application PLOS ONE, 7 (6) DOI: 10.1371/journal.pone.0039071



Carlos Peña: mycalesis@gmail.com 
Tobias Malm: tobemalm@gmail.com

Friday, 18 May 2012

Voucher pages in JSON format

I made a quick addition to our public NSG database. Voucher pages will output the specimen's data in JSON format for easy and automated harvesting of our data.

JSON is becoming a commonly used format for transfer of data over the Internet because it can be easily integrated into Javascript. Nowadays, there are even database systems that keep all data in JSON format (e.g. couchdb, mongodb, etc).

This is how it works in our database:



{
  "institutionCode": "NSG",
  "catalogNumber": "NW85-8",
  "voucher_code": "NW85-8",
  "recordNumber": "NW85-8",
  "family": "Hesperiidae",
  "subfamily": "",
  "tribe": "",
  "subtribe": "",
  "genus": "Achlyodes",
  "specificEpithet": "busiris",
  "infraspecificEpithet": "",
  "country": "PERU",
  "locality": "Km 28, road to Yurimaguas",
  "decimalLatitude": "-6.412590",
  "decimalLongitude": "-76.315900",
  "verbatimElevation": "750m",
  "collector": "St\u00e9phanie Gallusser",
  "eventDate": "2001-11-02",
  "voucherLocality": "NSG coll.",
  "sex": "",
  "voucherImage": "http:\/\/flickr.com\/photos\/37256239@N03\/3429238255\/",
  "associatedSequences": "GQ864726;GQ864820;GQ864414;GQ865378;GQ865050;GQ864915;GQ864593;GQ864507;GQ865158;GQ865279"
}
  • If you use the function getJSON of jQuery to call this web service, you will need to use the field jsoncallback=? or callback=? and, to avoid confusions, the field format=jsonp.
  • Example: Calls the NSG database for data about specimen code NW85-8 using jQuery's function getJSON.
<!DOCTYPE html>
<html lang='en' xml:lang='en' xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>test
</title>
<script src="http://code.jquery.com/jquery-latest.js"></script>


</head>
<body>

<script>
$(document).ready(function() {
       $.getJSON("http://nymphalidae.utu.fi/story.php?callback=?",
            {
                code: "NW85-8",
                format: "jsonp"
            },
        function(data) {
            var output = "";
            output += "voucher code: " + data.voucher_code + "<br />";
            output += "genus: " + data.genus + "<br />";
            output += "species: " + data.specificEpithet + "<br />";

            $("div").html(output);
        });
});

</script>

<div></div>
</body>
</html>

And the output will be:

Friday, 10 April 2009

Moving to Flickr

Image representing Flickr as depicted in Crunc...Image via CrunchBase

All the voucher pictures in our NSG database take up to 2.5GB in hard disk space, which is quite a lot for 3300 pictures only.

This is indeed a problem if we decide to move the database into a private, commercial server because buying 2.5 GB of space can be quite expensive.

Then Flickr might be able to help. By having a PRO account, users are allowed to upload unlimited number of photos and even retaining the original sizes of high resolution photos, for only 25 USD per year. Quite a bargain indeed.

Since moving more than 3000 pictures can be tiresome, I used used Flickr's API interface and grabbed an API key.

Then I found the PHP class libraries of Phlickr very useful as a layer on top of Flickr's API.

I used Phlickr to harvest information from the NSG database and included it as Title, description and Tags of the photos to be uploaded to Flickr.

Almost everything worked as a charm. However, I found that Phlickr got problems in getting the image URL, by constructing the link using the wrong id of the photo. I had to fix it by hacking the Photo.php class -> function buildImgUrl()

The database then will link to the photo on Flickr:



Now people can comment on every picture and point out whenever we misidentify the vouchers. The possibility of adding notes on top of the photo might of some use.

NSG's photostream in Flickr: http://www.flickr.com/photos/nsg_db/



Reblog this post [with Zemanta]

Wednesday, 1 April 2009

Started using Twitter

Image representing Twitter as depicted in Crun...Image via CrunchBase

I always wanted to have a cross-database plugin that would list some "recent news" of new vouchers and records uploaded to our voucher and reference databases. I tried to do it myself some years ago but it was too complicated to achieve.

But, it seems that Twitter might do the job.

from Wikipedia:
Twitter is a social networking and micro-blogging service that enables its users to send and read other users' updates known as tweets. Tweets are text-based posts of up to 140 characters in length.
So now every time I update the databases a script will create a tweet including a shortened url address to the respective voucher and record pages.

Since the tweets have to be up to 140 characters in length, I have to shorten the URLs. For this, I found the TinyURL service, but it was sluggish a couple of times so I switched over to Is.gd which has a very simple API.

And this is my twitter address http://twitter.com/carlosp420

Here a video explaining in a better way what Twitter might be all about: "The ultimate tool for exhibitionism"



Reblog this post [with Zemanta]

Sunday, 24 February 2008

First post

Hi there,

My name is Carlos Peña and I am involved in developing the NSG's voucher specimen database. This web application is what we, the NSG group, use to handle data for our research on the Systematics of the butterfly family Nymphalidae.

Thus, this blog is intended to record the efforts in making the voucher database and other databases (hopefully!) able handle biological data on Nymphalidae butterflies such as information of collection specimens, geographic distributions, molecular sequences, taxonomic literature and nomenclature of names.

Let's see how it goes!