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 5.012; | |
use Term::ANSIColor; | |
# Andrea Telatin <andrea.telatin@bmr-genomics.it> | |
# Sept 2014 | |
my $version = '0.04'; |
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 | |
#wget https://files.plutof.ut.ee/public/orig/98/AE/98AE96C6593FC9C52D1C46B96C2D9064291F4DBA625EF189FEC1CCAFCF4A1691.gz | |
#Decompress. The downloaded file is actually a tar.gz file and so needs to be decompressed with: | |
tar xzf 98AE96C6593FC9C52D1C46B96C2D9064291F4DBA625EF189FEC1CCAFCF4A1691.gz | |
#Move into the developer directory. | |
cd sh_qiime_release_04.02.2020/developer/ | |
#Fix formatting errors that prevent importation of the reference sequences into QIIME2. |
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
IMG=/path/to/img | |
singularity exec $IMG $(basename "$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
#!/bin/sh | |
EXT='fastq.gz' | |
USER=ftp-username | |
PASS=ftp-password | |
HOST=ftp.host | |
REMOTEDIR=uploads/ | |
# see "-z" to try to resume transfers | |
#ncftpput -u "$USER" -p "$PASS" "$HOST" "$REMOTEDIR" *.$EXT |
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 5.012; | |
use warnings; | |
use lib '/qib/platforms/Informatics/GMH/bin/perl5/lib/perl5/'; | |
use Getopt::Long; | |
use FASTX::Reader; | |
my $opt_contigs; | |
my $opt_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
library(edgeR) | |
# Input file and columns (ctrl, treated) | |
x <- read.delim("counts.tsv",row.names="Geneid") | |
group <- factor(c(1,1,1,2,2,2)) | |
y <- DGEList(counts=x,group=group) | |
y <- calcNormFactors(y) | |
design <- model.matrix(~group) |
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 heapqueue | |
type | |
coverage = ref object | |
forward: int | |
reverse: int | |
# Class that stores info about the end position of alignments, used in the alignment queue | |
type |
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 iterutils | |
iterator letters: char {.closure.} = | |
for c in 'a' .. 'z': | |
yield c | |
# Now requires a parameter | |
iterator numbers(s: int): int {.closure.}= | |
var n = s | |
while true: |
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 | |
# lisa-andrea, Dec 10 2016 | |
my$f= $[;my | |
$ch=0;sub l{length} | |
sub r{join"", reverse split | |
("",$_[$[])}sub ss{substr($_[0] | |
,$_[1],$_[2])}sub be{$_=$_[0];p | |
(ss($_,$f,1));$f+=l()/2;$f%=l | |
();$f++if$ch%2;$ch++}my$q=r |