This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import time | |
from sys import argv | |
""" | |
snipet to extract mtIDs of a selected mutant line in medicago-mutant.noble.org | |
""" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# | |
# app to remove trailing newlines from fasta files by Levente Szabadkai | |
# | |
use v5.14; | |
while(<>){ | |
if (/^>/){ |