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
<?php | |
if ($argc <= 1) { | |
echo "Please supply a file name\n"; | |
exit(1); | |
} | |
$input = $argv[1]; | |
$file = fopen($input, 'r'); | |
while ($line = fgets($file)) { |
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 sys | |
if len(sys.argv) < 2: | |
print ('Please provide a file name') | |
exit(1) | |
files = sys.argv[1:] | |
matrix = {} | |
biomaterials = {} | |
genes = {} |
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
#!/data/apps/python/3.2.1/bin/python | |
import re | |
import sys | |
import getopt | |
import heapq | |
import xml.etree.ElementTree as ET | |
from pprint import pprint | |
input_xml = sys.argv |
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
<?php | |
/** | |
* Add a fasta line to a file | |
* | |
* @param $FILE file handle | |
* @param $uniquename the unique identifier | |
* @param $data any data on the first line after the unique identifier | |
* @param $sequence the sequence to print under the first line | |
*/ | |
function fputfasta($FILE, $uniquename, $data, $sequence) { |
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
CREATE TABLE IF NOT EXISTS `continents` ( | |
`code` CHAR(2) NOT NULL COMMENT 'Continent code', | |
`name` VARCHAR(255), | |
PRIMARY KEY (`code`) | |
) ENGINE=InnoDB; | |
INSERT INTO `continents` VALUES | |
('AF', 'Africa'), | |
('AS', 'Asia'), | |
('EU', 'Europe'), |