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
preexec() { | |
[[ $1 == "git status" || $1 == "cd"* || $1 == "ll"* || $1 == "vim"* ]] || t update "$1" | |
} |
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 Rscript | |
library(data.table) | |
library(R.utils) | |
source="agpfile" | |
type="scaffold" | |
args <- commandArgs(trailingOnly = TRUE) | |
if(length(args)<1) { | |
stop("Usage: agp2gff3 file.agp > file.gff") |
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
use strict; | |
use Bio::DB::Fasta; | |
my $inx = Bio::DB::Fasta->new('btau5_alignments'); | |
my $flag = 0; | |
my @arr; | |
my $cigar; | |
my $seq; | |
while(<>) { |
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 perl | |
use strict; | |
# chain line | |
my ($score, $tName, $tSize, $tStrand, $tStart, $tEnd, $qName, $qSize, $qStrand, $qStart, $qEnd, $cId); | |
# track positions | |
my $qCurrentPos; | |
my $qCurrentEnd; |
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
library(lubridate) | |
library(ggplot2) | |
library(data.table) | |
x=fread('test2.txt') | |
x$V1=(lubridate::period_to_seconds(hm(x$V1))-lubridate::period_to_seconds(hm(x$V1[1])))/60 | |
png('test.png',width=1000,height=600) | |
ggplot(x,aes(V1,V2)) + stat_smooth() + geom_point() + xlab('Time (minutes)') + ylab('Annotations loaded') + ggtitle('Annotations loaded Apollo') |
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 perl | |
use strict; | |
use warnings; | |
# accept SNAP ("ZFF") format such as | |
# >chr1 | |
# Einit 5343 5444 + 8.956 0 0 2 chr1-snap.1 | |
# Exon 6401 6498 + -0.203 0 2 1 chr1-snap.1 | |
# Eterm 6727 6781 + 7.370 1 0 1 chr1-snap.1 |
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 Rscript | |
library(animation) | |
library(getopt) | |
args <- commandArgs(trailingOnly = TRUE) | |
library('getopt'); | |
#get options, using the spec as defined by the enclosed list. | |
#we read the options from the default: commandArgs(TRUE). | |
spec = matrix(c( | |
'help' , 'h', 0, "logical", |
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
function preexec_test --on-event fish_preexec | |
switch $argv | |
case 'cd*' | |
case 'ssh*' | |
case 'll*' | |
case 'git status*' | |
case 'git commit*' | |
case '*' | |
t update $argv | |
end |
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
--- | |
title: "World Factbook" | |
author: "Colin Diesh" | |
date: "July 23, 2016" | |
output: html_document | |
--- | |
```{r setup, include=FALSE} | |
library(ggplot2) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<link rel="stylesheet" type="text/css" href="genome.css"> | |
<title>SOAP JavaScript Client Test</title> | |
<style type="text/css"> | |
.header { | |
height:50px; | |
background:#A0C0F0; |