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
#!/bin/sh | |
blastn -query 1 -subject 2 -outfmt 6 -task megablast -evalue 1e-10 | awk '{if ($4 > 4999) print $3" "$3" "$9" "$10" "$2" "$7" "$8" "$1}' > 1-2 |
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
#!/bin/bash | |
# Take the flac files in a directory and turn them into mp3s | |
for file in *.flac; do flac -cd "$file" | lame -h --preset standard - "${file%.flac}.mp3"; done |
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
#!/bin/bash | |
if [ "$#" -lt 1 ]; then | |
search=$(cat /var/log/apache2/access.log | awk '{print $1"-"$4}') | |
else | |
search=$(cat /var/log/apache2/access.log | grep $1 | awk '{print $1"-"$4}') | |
fi | |
single=$(for i in $search; do ip=$(echo $i | awk 'BEGIN {FS = "-"}; {print $1}'); datetime=$(echo $i | awk 'BEGIN {FS = "-"}; {print $2}' | sed 's/\[//' | awk 'BEGIN {FS = ":"}; {print $1}'); loc=$(geoiplookup $ip | awk 'BEGIN { FS = ":" }; {print $2}' | sed -e 's/^[ \t]*//' | sed 's/ /_/g'); echo -e $datetime"-"$loc"-"$ip;done) | |
final=$(for i in $(echo $single | tr ' ' '\n' | sort | uniq); do ip=$(echo $i | awk 'BEGIN {FS = "-"}; {print $3}'); whoz=$(whois $ip | grep NetName | awk 'BEGIN {FS = ":"}; {print $2}' | sed 's/^ *//g' | sed 's/ /_/g' | head -n 1); whoz2=$(whois $ip | grep netname | awk 'BEGIN {FS = ":"}; {print $2}' | sed 's/^ *//g'| sed 's/ /_/g' | head -n 1); whoz3=$(whois $ip | grep OrgName | awk 'BEGIN {FS = ":"}; {print $2}' | sed 's/^ *//g'| sed 's/ /_/g' | head -n 1); whoz4=$(whois $ip | grep descr | a |
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 | |
class bcolors: | |
HEADER = '\033[95m' | |
OKBLUE = '\033[94m' | |
OKGREEN = '\033[92m' | |
WARNING = '\033[93m' | |
FAIL = '\033[91m' | |
ENDC = '\033[0m' | |
print '%sSingle job stats for CONTIGuator%s'%(bcolors.HEADER,bcolors.ENDC) |
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 | |
''' | |
Launch codeml on all the alignments | |
Marco Galardini 2012 | |
University of Florence | |
GPL v3.0 | |
''' | |
from optparse import OptionParser, OptionGroup | |
from time import strftime |
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 File | C:\Documents and Settings\Standard\Desktop\Rm1021_25A.oka | |
---|---|---|
Set up Time | Oct 01 2007 3:12 PM | |
Position | 25-A | |
Plate Type | PM 1- | |
Strain Type | NOT APPLICABLE | |
Sample Number | Rm1021 | |
Strain Name | Rm1021 | |
Strain Number | Rm1021 | |
Other |
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 | |
''' | |
Reads a FASTA files and rewrites it keeping only the unique IDs | |
Important: we assume that if two proteins have the same ID, they have the same sequence | |
''' | |
import sys | |
from Bio import SeqIO | |
if len(sys.argv) < 3: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
rsync -av rsync://ftp.ncbi.nlm.nih.gov/genomes/Bacteria --include "*/" --include "Bacteria/Escherichia*/*.fna" --exclude=* . --prune-empty-dirs |
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/env python | |
""" | |
simple example script for running and testing notebook resulting in a new workbook. | |
Usage: `run_notebook foo.ipynb foo_new.ipynb` | |
Each cell is submitted to the kernel, and the outputs are compared with those stored in the notebook. | |
Each cell is given half an hour to complete. | |
""" |
OlderNewer