This file contains hidden or 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
| # Choose clustering resolution from seurat v3 object by clustering at multiple resolutions and choosing max silhouette score | |
| # Based on code from: https://gist.github.com/BenjaminDoran/a4c8939b2f180b5ddf7e9179697d07ba | |
| ChooseClusterResolutionDownsample <- function( | |
| input.srobj, n.pcs = 1:30, sample.name = format(Sys.time(), "%a-%b-%d-%X-%Y-%Z"), | |
| res.low = .01, res.high=3, res.n = 40, bias = "over", figdir=F, ncores = 1) { | |
| ######## step 1: save the input seurat object as a new temporary object, | |
| ######## dont want to overwrite or change the original one with all of the parameter scans | |
| srobj.tmp = input.srobj |
This file contains hidden or 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/sh | |
| # use HOMER to find peaks | |
| export analysis_name="histone_noinput_1000_10000" | |
| # Find peaks for Z8-ChIP_S1_R1_001 | |
| mkdir -p findPeaks_${analysis_name}/Z8-ChIP_S1_R1_001 | |
| findPeaks tags/Z8-ChIP_S1_R1_001 \ | |
| -style histone -region -size 1000 -minDist 10000 \ |
This file contains hidden or 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; | |
| use feature qw(say); | |
| use Bio::SeqIO; | |
| my $pattern_file = shift @ARGV; | |
| my $genome_file = shift @ARGV; |
This file contains hidden or 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 | |
| """A simple python script template. | |
| """ | |
| from pygments import highlight | |
| from pygments.lexers import JsonLexer | |
| from pygments.formatters import Terminal256Formatter | |
| import jsonpickle |
This file contains hidden or 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 feature qw(say); | |
| use MooseX::Declare; | |
| use Method::Signatures::Modifiers; | |
| class MyApp::Schema::Result::Role { | |
| use MooseX::NonMoose; | |
| use MooseX::MarkAsMethods autoclean => 1; | |
| use DBIx::Class::Candy -autotable => v1; |
This file contains hidden or 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
| print "Hello world\n"; |
This file contains hidden or 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
| my $var = 10; | |
| print $var; |
This file contains hidden or 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
| perlbrew install perl-5.16.3 -Dusethreads \ | |
| -Duselargefiles -Dcccdlflags=-fPIC -Doptimize=-O2 \ | |
| -Duseshrplib -Duse64bitall -Darchname=x86_64-linux-gnu \ | |
| --as threaded-perl-5.16.3 |
This file contains hidden or 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 | |
| picard_jars='/data_alpha/local/bioinformatic_tools/picard-tools-1.77' | |
| bin="$picard_jars/bin" | |
| for i in $picard_jars/*.jar | |
| do | |
| command_name=`echo $i | perl -plane 's/.*\/(\S+).jar/$1/g'` | |
| echo $command_name | |
| echo '#!/usr/bin/env sh' > $bin/$command_name | |
| echo 'java -jar '$i' $@' >> $bin/$command_name |
This file contains hidden or 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 | |
| sudo tc qdisc del dev wlan0 root | |
| sudo tc qdisc del dev eth0 root |
NewerOlder