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
## AMI : ubuntu 22.04 (not use Deep Learning AMI) + EBS 30Gb | |
## INSTANCE : g4dn.4xlarge | |
$ sudo apt update | |
$ sudo apt install nvidia-driver-515 #(530 : /25/May/2023) | |
$ sudo apt install nvidia-cuda-toolkit | |
$ sudo apt install nvidia-utils-515 #(530 : /25/May/2023) | |
$ sudo reboot | |
$ nvidia-smi |
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
sub cigarlen { | |
my $cigar = shift; | |
my @c = $cigar =~ /\d+[MI=X]/g; | |
my $len = 0; | |
foreach my $i (@c) { | |
$i =~ /(\d+)[MI=X]/; | |
$len += $1; | |
} | |
return $len; | |
} |
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
//<html> | |
//<script src="//code.jquery.com/jquery-3.6.0.js"></script> | |
//<script src="https://3Dmol.csb.pitt.edu/build/3Dmol-min.js""></script> | |
let element = $('#your_html_div_tag_id'); | |
let config = { backgroundColor: 'mintcream' }; | |
let viewer = $3Dmol.createViewer( element, config ); | |
let pdb_file = '/path/to/alphafold2/results_file.pdb' |
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
f = open('201110_allseq_colors.tsv', 'r') | |
orth_dict = {} ##初期化 | |
color_dict = {} | |
for linen in f: | |
line = linen.rstrip() ##改行の削除 | |
values = line.split("\t") | |
ortholog_id = values[0] | |
orth_dict.setdefault(ortholog_id, {}) ##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 perl | |
use strict; | |
use warnings; | |
use Getopt::Std; | |
use Pod::Usage; | |
pod2usage() unless @ARGV; | |
=pod |
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
<?php | |
// Usage: /usr/bin/php rss_slackpost.php | |
// Require: php-xmlrpc, php-cli | |
// Make slack app. and get slackapikey, then invite bot | |
// $ cat feedlog.txt --> The URL of the newest article in the last check | |
// https://example.org/wp/archives/178 | |
ini_set("auto_detect_line_endings", 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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<meta http-equiv="Refresh" content="60"> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<div id="vis"></div> | |
<script> | |
var url = 'http://aaa.bbb.ccc/cgi-bin/getstatus.pl'; |
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 | |
=head1 SCRIPT NAME | |
getPaper_fromDOI.pl | |
=head1 DESCRIPTION | |
Get the details of the paper from DOI using crossref API. |
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 | |
=head1 SCRIPT NAME | |
diamond2b2g.pl | |
=head1 DESCRIPTION | |
Format the result of diamond (vs.nr) xml file for blast2go |
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 | |
=head1 SCRIPT NAME | |
sge2pbs.pl | |
=head1 DESCRIPTION | |
Rewrite SGE script to PBS script | |
=head1 USAGE | |
perl sge2pbs.pl sge_sh_script_file > pbs_sh_script_file | |
=cut |
NewerOlder