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
/** Customize the post header function by wptron */ | |
add_filter('genesis_post_info', 'wpt_info_filter'); | |
function wpt_info_filter($post_info) { | |
if (!is_page()) { | |
$post_info = 'Written by [post_author_posts_link] [post_comments] [post_edit]'; | |
} | |
return $post_info; | |
} |
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
print "Enter PDB File Name:"; | |
$pdbn=<STDIN>; | |
print "Enter Output PDB File Name:"; | |
$pdbo=<STDIN>; | |
print "Enter Chain Para 1:"; | |
$pdbc1=<STDIN>; | |
print "Enter Chain Para 2:"; | |
$pdbc2=<STDIN>; | |
print "Enter RES Para 1:"; | |
$pdbr1=<STDIN>; |
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
#Author: Arup Ghosh | |
#Description: https://gist.github.com/arupgsh/e50f4cd05547f0334412 | |
#2016 | |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server ipv6only=on; | |
server_name example.com www.example.com; | |
root /var/www/example.com/public_html/; | |
index index.php; |
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 python | |
# numpy and biopython are required -- pip install numpy biopython | |
from Bio import Entrez | |
from Bio import Medline | |
MAX_COUNT = 10 | |
TERM = 'Tuberculosis' | |
print('Getting {0} publications containing {1}...'.format(MAX_COUNT, TERM)) |
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
from Bio import Entrez | |
Entrez.email = "[email protected]" | |
handle = Entrez.esearch(db="pubmed", term="cancer", retmax="10", sort="relevance", retmode="xml") | |
records = Entrez.read(handle) | |
print records["IdList"] |
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
Contents of : ftp://ussd-ftp.illumina.com/README.txt | |
Illumina iGenomes | |
The iGenomes are a collection of sequence and annotation files for commonly | |
analyzed genomes. Each iGenome contains data for one species, downloaded from | |
one source (UCSC, NCBI, or Ensembl), for one genomic build. |
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 function to display protein sequence in Uniprot like format | |
# Author Arup Ghosh | |
# Use $len = 60 | |
function processSeq($str,$len){ | |
$arr = str_split($str,$len); | |
$i=1; | |
// The code will be improved in future revisions | |
foreach($arr as $bit){ | |
$k10=str_split($bit,10); |
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
#' Find Variable genes using a negative binomial null model | |
#' cut.quantile - quantile ceiling on max counts | |
# source: https://github.com/karthikshekhar/CellTypeMIMB | |
NB.var.genes <- function( | |
object = object, | |
cells.use=NULL, | |
min.cells = 200, | |
do.idents=NULL, | |
genes.use = NULL, | |
do.plot=TRUE, |
OlderNewer