Skip to content

Instantly share code, notes, and snippets.

@rachelss
rachelss / set_NatGeo_img_as_desktop.sh
Last active December 17, 2022 10:51 — forked from bergeycm/set_NatGeo_img_as_desktop.sh
Sets National Geographic's Image of the Day as Desktop background for Mac OSX
#!/bin/bash
cd ~/Pictures/NatGeo
rm NG_img_of_day
rm NG_img_of_day_site
curl http://photography.nationalgeographic.com/photography/photo-of-the-day/ \
-o NG_img_of_day
@rachelss
rachelss / filter_for_var.py
Created May 19, 2015 19:56
filter for variable sites
#!/usr/bin/env python2
from Bio import AlignIO
import sys
fformat=sys.argv[1].split('.')[-1]
align = AlignIO.read(open(sys.argv[1]), fformat) #load file
outname = sys.argv[1].split('.')[:-1]+'.filtered.phylip-relaxed'
#find variable sites
info=[]
@rachelss
rachelss / fastablast
Created October 11, 2014 01:49
blast fasta file
#! /usr/local/bin/python
#modified from Bienvenido Velez
import sys
import os.path
from Bio import SeqIO
from Bio.Blast import NCBIXML
from Bio.Blast import NCBIWWW
def runBlastn(fastaSequence,outputFileName):
'Conducts a nucleotide Blast run on the given fastaSequence and save the blast run output in XML format'