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
## --- install plack | |
cpanm Plack | |
# -- save this file as jbrowse.plack | |
use Plack::App::Directory; | |
my $app = Plack::App::Directory->new({ root => '.'})->to_app; | |
$app; | |
## -- drop it at the top level of jbrowse folder |
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/perl | |
use strict; | |
use Image::Magick; | |
# auxiliary variables | |
my $img_id = 0; #loop index | |
my @ordered_squares; | |
my $rotation = 180; | |
#Width and Height of each box, squares per side |
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
if [ "$(type -t cd)" == "builtin" ]; then | |
local func="_perl_locallib_orig_cd() { builtin cd \"\$@\"; }" | |
else | |
local func="$(declare -f cd)" | |
local func="_perl_locallib_orig_cd${func#cd}" | |
fi | |
eval $func | |
_perl_locallib_custom_cd() { | |
local cwd=$(pwd) |
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/perl -w | |
use strict; | |
use Pod::Usage; | |
use IO::File; | |
use Getopt::Long; | |
use Bio::Chado::Schema; | |
use YAML qw/LoadFile/; | |
use Log::Log4perl qw/:easy/; | |
use Log::Log4perl::Appender; |
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/perl -w | |
use strict; | |
use Pod::Usage; | |
use Getopt::Long; | |
use Bio::SeqIO; | |
use Bio::PrimarySeq; | |
use IO::File; | |
my $mapfile; |
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, os, string | |
if len(sys.argv) != 2: | |
print 'You seem to have forgotten to provide the input GFF3 file.' | |
exit() | |
if __name__ == "__main__": | |
found = False | |
with open(sys.argv[1], 'r') as file: | |
outfile = open(os.path.basename(sys.argv[1]).replace(".gff", "_corrected.gff"), 'w') | |
for line in 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
#!/usr/bin/env perl | |
use v5.10.1; | |
use strict; | |
use POSIX qw/floor/; | |
use autodie qw(:file); | |
use OptArgs; | |
use FindBin qw/$Bin/; | |
use Bio::DB::SeqFeature::Store; | |
use JSON; |
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
# $seq_rel is the path relative to $outDir | |
my $seq_rel = "seq"; | |
my $compress; | |
my $chunk_size = 20000; | |
my $opt = optargs; | |
if ( !-e $opt->{conf} ) { | |
die usage "JBrowse config file $opt->{conf} do not exist"; | |
} |
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
package GAFLoader; | |
# Other modules: | |
use namespace::autoclean; #removes all sugar | |
use Moose; #uses Moose | |
with 'Modware::Role::Command::WithBCS'; #imports attributes to get an instance of Bio::Chado::Schema object | |
extends qw/MooseX::App::Cmd::Command/; #makes this being recognized as runnable command | |
#code that gets executed when you run the comamnd |