Skip to content

Instantly share code, notes, and snippets.

class Node(object):
"""
Tree node: left and right child + data which can be any object
"""
def __init__(self, data):
"""
Node Constructor
@param data node data object
"""
self.left = None
import re
import time
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
p = re.compile("a href=\"(.+?)\">View Sequence")
p2 = re.compile("pre>([^<]+)<", re.MULTILINE|re.DOTALL)
urls=open('sample_url') #file with urls, to download
count=0
import re
import time
from sys import argv
"""
snipet to extract mtIDs of a selected mutant line in medicago-mutant.noble.org
"""
#!/usr/bin/perl
# made by: Levente Szabadkai 2013
use 5.014;
#use warnings;
#use diagnostics;
our($opt_h, $opt_o, $opt_t, $opt_g);
use Getopt::Std;
getopt('hotg');
#!/usr/bin/python
#
# snipet for align fasta files in the direction of the longest ORF.
# usage:
# python align_fasta.py <fastafile>
from Bio import SeqIO
import re
#!/usr/bin/perl
#
# app to remove trailing newlines from fasta files by Levente Szabadkai
#
use v5.14;
while(<>){
if (/^>/){