Russell's Blog

New. Improved. Stays crunchy in milk.

raygun : a simple NCBI BLAST wrapper for Python

Posted by Russell on October 25, 2010 at 11:42 a.m.
Things have been a little quiet on Vort.org for the last couple of weeks, but a lot of frantic activity has been going on behind the peaceful lack blog updates. When I returned from Kamchatka, Jonathan had a little present for me -- he took the DNA from the 2005 Uzon field season for Arkashin and Zavarzin hotsprings, and ran a whole lane of paired-end sequencing on one of our Illumina machines. Charlie made some really beautiful libraries, and the data is really, really excellent. For the last couple of weeks, I've been trying to do justice to it.

I'm not quite ready to talk about what I've been finding, but I thought I would take a moment to share a little tool I wrote along the way. It's made my life a lot easier, and maybe other people could get some use out of it.

It's called raygun, a very simple Python interface for running local NCBI BLAST queries. You initialize a RayGun object with a FASTA file containing your target sequences, and then you can query it with strings or other FASTA files. It parses the BLAST output into a list of dictionary objects, so that you can get right to work.

It doesn't take a lot of scripting chops to do this without an interface, of course, and there are other Python tools for running BLAST queries. The advantage of raygun over either the DIY approach or the BioPython approach is that raygun is extremely simple to use. I wanted something that would basically be point-and-shoot :

import raygun
import cleverness

rg = raygun.RayGun( 'ZOMG_DNA_OMG_OMG.fa' )

hits = rg.blastfile( 'very_clever_query.fa' )

results = []
for hit in hits :
    results.append( cleverness.good_idea( hit[ 'subject' ] ) )

cleverness.output_phd_thesis( results )
Unfortunately, you must furnish your own implementation of the cleverness module.

I designed raygun is with interactive use in mind, particularly with ipython (by the way, if you do a lot of work in python and you're not using ipython, you're being silly). The code is available on github.

Juicing on April 02, 2014 at 7:02 p.m.

Exercising and trying to target the areas that are prone to cellulite can help you see results later on. Try biking and running to get your buttocks, thighs, and hips.

Diet may just be the issue to your cellulite. Eat lots of vegetables and fruits. These foods impart an alkaline ash which help you rid your body of truth about cellulite. Juicing is another good way to get an adequate amount of vegetables and fruits it needs.

Hüseyin on April 05, 2014 at 10:56 a.m.

Although some people find affiliate marketing to be hard, the process is not that difficult. The following information was written with the intention of helping you begin an effective affiliate marketing program and offer tips and advice for success.

You must never try to take advantage of your affiliates do not abuse this function. The best you can do with cookie stuffing is annoy your readers. It may also break customer-tracking chains and spread viruses.

See how companies track outside orders (not on their site) before choosing an affiliate company. You might lose a lot of commissions if those outside sales are made by mail or on the phone.

If you have been part of a program for a while and are pulling decent returns from it, consider requesting more money from your google sniper program.

change on April 05, 2014 at 11:14 a.m.

Do you think that you are indeed overweight? Is this starting to hurt the quality of your excess weight negatively affecting your life?Are you wanting to do something to change your health around for the problem? This article will provide you easy tips on how to lose weight and right now. Keep reading and you'll learn how! renegade diet

specifically on April 05, 2014 at 11:42 a.m.

Be sure that you're wearing the right kind of workout shoes before you start your exercise. When you don't wear shoes specifically designed for the activity you are doing, it could injure your legs and feet. penis advantage

article on April 05, 2014 at 1:24 p.m.

Although most people want to look good, the truth is that the majority of people do not want to put in the time and hard work that is required. By reading this article about adonis golden ratio muscle building, you have already shown a commitment to begin getting in shape. Continue reading this article to find ways to build muscle mass.

hujs on April 05, 2014 at 4:10 p.m.

The typical infant solid about six,000 diapers by the time they are total toilet trained. Have there been any important modifications in your kid's life lately? So you may have to walk your dog around your complete yard prior to he lastly finds that 1 spot. Numerous of them feel that this is not a great idea, and that it could sooner or later backfire on the parents. This is when they are more aware and can recognize guidelines simpler. To avert jumping up on visitors. Start Potty Training

programs on April 05, 2014 at 5:10 p.m.

I follow the plan very easily due to the fact of the "online diet program generator" that comes with the program. If the number is 6 times a week, then make it four in the starting and bring it down to just twice a week. As opposed to other programs that claim to be quick and effortless but don't work, Tom informs you right off the bat that this is not the scenario with this plan. burn the fat feed the muscle

raluca pop on April 06, 2014 at 1:08 a.m.

We are really grateful for your blog post. You will find a lot of approaches after visiting your post. Great work.
article rewriter software

Yacon on April 06, 2014 at 8:30 a.m.

I appreciate everything you have added to my knowledge base.Admiring the time and effort you put into your blog and detailed information you offer.Thanks.Yacon

raluca on April 06, 2014 at 12:42 p.m.

Every single period with the platform boasts a quantity of measures. The Tao of Badass Assessment If you're a guy, there's a pretty good likelihood you like girls. But specifically who is Josh Pellicer, and how could the Tao Of Badass be so hugely efficient? This will just take you 2 actions behind from getting the gal of your dream. tao system

merely on April 06, 2014 at 2:21 p.m.

That's a fantastic 1 proper there. Lovely eyes, quite lips and a good smile will hook me each and every time. The theory behind pumps is that the vaccuum developed inside the pump will induce higher bloodflow assisting to stimulate development. Well, they all cracked up, and it was certainly fairly a climb. Oh but that's okay, his fat girlfriend lets him have sex with her whenever he desires. You merely have nothing to lose! We've both got things to be proud of! Behind David's back she cuts off Jeffrey financially and makes him homeless. penis advantage

Eating breakfast on April 06, 2014 at 5:25 p.m.

Pack a healthy lunch for work or school. This puts you only have as much you eat at lunchtime. Controlling portions is something you should do if you want to weigh a good weight and keep on track.

Eating breakfast is essential if you want to lose weight loss. Many people believe skipping breakfast will help them lose weight, they are skipping venus factor calories. It may save on calories in the short run, but it can boost lunchtime cravings. You may even be tempted to have a mid-morning snack that you shouldn't by 11:00 A.M.

Pull Your Ex Back on April 08, 2014 at 4:19 p.m.

Pull Your Ex Back is an e-book that you can download on your pc. Returning or asking for every single smallest thing conveys that you in no way meant anything to him/her. It could feel awkward or scary. It occurs to every person at a single time or yet another, so the very first thing to understand is that you're not alone. Do not cling lead or degrade yourself in any way like that. On the other hand, there are guys who have skilled sincere calm for the duration of their splits. How hassle-free. pull your ex back

Parents on April 08, 2014 at 7:02 p.m.

Parents as such consider they are carrying out their children a favor but in the long run, do comprehensive damage that can by no means be undone, no matter how a lot of shrinks the adult youngster sees. Special things that warrant inclusion are based on who is in your household. Do not wait to contact a lawyer as are there is a time limit in cases like these. Cash operates even with a power outage. They offer a diverse mode of instruction of 14 diverse languages. Survivors survive, he wrote. family survival course

tempted on April 09, 2014 at 10:57 a.m.

A key weight is to not eat before you go to bed. When you eat before bed, it will sit in your stomach and not burn off. Try reading so that you will not be tempted to eat a lot at night.

Rewarding yourself when you do good behavior on a diet is an important part of a diet being successful. Go to the movies, see a movie or get a massage to relax.

Don't skip meals if you are attempting weight loss. You may think that this may help you old school new body lose weight, your body is going to store as much fat as possible in case there should be more skipped meals.

proactive on April 09, 2014 at 12:17 p.m.

If you get a yest infections every time it's that time of the month, start to plan ahead. Take a few acidophilus tablet or two before and after your period. This will alleviate if not eliminate the symptoms.Taking a proactive stance like this can help ward off the infection.

It really doesn't take too much to upset the delicate balance of the sensitive vaginal area. This imbalance can result in a yeast infection. There are treatments which work though. Use what you learned to see what you can do about your Yeast Infection No More.

reality on April 10, 2014 at 1:38 p.m.

But the reality is there is no magic tablet, and if you're not opting for liposuction your solely alternatives are laborious perform and determination. A surprising fact is, regardless of all of these new devices, one particular of the very best techniques to tighten loose abdomen pores and skin is old college workout routines. Ultimate Herpes Protocol

There was once on April 11, 2014 at 4:35 p.m.

There was once a saying that good things come to those who work hard. This also true in terms of weight loss. The following article discusses some basic things you along the way. Truth About Abs

laura on April 13, 2014 at 11:56 a.m.

We are really grateful for your blog post. You will find a lot of approaches after visiting your post. Great work.
gazduire website

GETA on April 14, 2014 at 1:29 a.m.

Thank you for presenting your points and providing this information. I have learned something about this topic cheap hotel in las vegas

Since on April 16, 2014 at 2:02 p.m.

can make a team Odom 's career back on track , then the non- "Jackson" and none other than the cheap jordan 5

cheap lebron 11

nike shox cheap

cheap jordan 13

nike free 3.0 v5

cheap jordan 4

free 3.0 v4

lebron shoes

cheap jordan 11

cheap jordan shoes
Knicks .

Since March took over the post of president of the Knicks ,

Ignore this field:
 optional; will not be displayed
Don't put anything in this field:
 optional
Don't put anything here:
Leave this empty:
URLs auto-link and some tags are allowed: <a><b><i><p>.