Skip to content

Instantly share code, notes, and snippets.

View armanbilge's full-sized avatar
😵
Declaring notification bankruptcy. If I forgot your PR please ping me!

Arman Bilge armanbilge

😵
Declaring notification bankruptcy. If I forgot your PR please ping me!
View GitHub Profile
@armanbilge
armanbilge / isolate_target_tree.pl
Created August 9, 2013 23:29
Isolates a target tree from a BEAST trees file
#!/usr/bin/env perl
#
# isolate_target_tree.pl
# Usage: isolate_target_tree.pl <target_tree_id> <trees_file>
use strict;
use warnings;
my $target_tree = shift;
grep -oe "^[A-Za-z]*[0-9]*" COI.phy | nl -nln -v 0 | tail -n+2 > weevils.imap
@armanbilge
armanbilge / PhylipDeinterleaver.py
Created July 30, 2013 03:56
A script to deinterleave phylip-formatted sequence files.
#!/usr/bin/env python
import sys
try:
stream = open(sys.argv[1], 'r')
except:
stream = sys.stdin
is_header = True