that's pretty cool! just a few extra seconds - I've used the reference that the main paper used but one can just swap that out in the first lines.
I teach an introductory bioinformatics course. For yesterday's lecture I wanted to demonstrate to students just how much you can get done by properly combining all these awesome tools with the unix command line.
And that got me thinking ... so how much can you get done in a day ... how about an hour? ... then .... well, how about a minute ... a minute you say??? ... yeah right that's just crazy talk, sounds like ... mission impossible. Or is it really?
So I googled the Mission Impossible theme song, I found a version that is about 1 minute long and I came up with a challenge with the following rules:
- You may use any tool or background information that can be reasonably expected to be on a bioinformaticians' computer.
- You have to start with an empty folder
- Start the music and your script. Your script needs to finish before the theme song.
- At the end of the run your folder needs to contain a piece of information that on its own is noteworthy and publication quality information (say an essential part of a prior publication)
All right then - and here is my entry. It produces all major single nucleotide polymorphisms of the 2014 Ebola genome as published in Genomic surveillance elucidates Ebola virus origin and transmission during the 2014 outbreak Science 2014. It requires parallel, efetch, bwa, samtools and freebayes.
The script follows. Let me tell you running it while the theme song is on makes it surprisingly exciting!
It even wastes 16 seconds for dramatic flair. Still finishes in time on a MacBook Air while running a presentation.
4 answers
Nice post!
It looks like you have plenty of time left to analyze what the variants mean:
java -jar snpEff.jar -v ebola_zaire ~/edu/mission/results.vcf > ~/edu/mission/results.eff.vcf
Note that the reference they used is "KJ660346" instead of KM034562 (at least for the annotations part).
It's weird that they mention KM034562 in the main paper, they asked me to provide "KJ660346" for their analysis...
Strange indeed, the VCF file (file S1 here http://www.sciencemag.org/content/345/6202/1369/suppl/DC1) is computed relative to KM034562
the difference between the two genome builds is:
18957M2S and MD:Z:1848C4433T5527T3787G3358A
You should try using HISAT. It can read directly from SRA without pesky bloated fastq. Might be fast enough to leave time for analyzing your output too.
interesting point - I will explore that as I plan to rework this example.
I think this is brilliant, but I feel that there is an issue with it: you don't verify that it actually worked, which I see as an essential part of these scripts (also, throwing away warnings and errors is not really something one should promote)
the reason to throw away the outputs was cosmetic - there is a message bloat going on that kind of messes up the cute messages I prepared.
I blame the tool developers - why can't their tools be silenced and instructed to only write to the output when the tool has actually something meaningful and unexpected to say?
In fact error messages would be lost in the chaos as tools run in parallel and had I not silenced them all there would loads of useless information printed on each alignment and data fetching that takes place in parallel that - hence it would be pointless to keep them.
Might be worth noting that HISAT now works directly with SRA (i.e. if you had RNAseq, you might be able to go even faster!).
Log in to answer this question.
Took you longer than a minute to write the script though..
yeah but Tom Cruise also has time to prepare for each mission - that's still fair comparison
In one minute Chuck Norris sequenced his genome. And found zero mutations.
That would mean that Chuck Norris and Craig Venter are the same person? (Might explain a few things...)
What's really impressive about this is the power behind such basic and standard tools.
btw, I found a bug. the last few lines should read:
ha, looks like I was caught bluffing - funny!
Nice seeing some filo' bioinformatics on here, sometimes it feels lonely in a world of mostly cancer stuff.