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
<!DOCTYPE html> | |
<html> | |
<head><meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>umap_progress_bar</title><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script><script> | |
(function() { | |
function addWidgetsRenderer() { | |
var mimeElement = document.querySelector('script[type="application/vnd.jupyter.widget-view+json"]'); | |
var scriptElement = document.createElement('script'); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import numpy as np | |
import pandas as pd | |
from statsmodels.nonparametric.smoothers_lowess import lowess | |
def fix_var(gene_stats, n_bins = 200, lowess_frac = 0.4): | |
# gene_stats is a dataframe with gene names as index (rownames) and two | |
# columns: | |
# 'm': mean value of each gene | |
# 'v': variance of each gene |
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
import re | |
from itertools import groupby | |
import os | |
""" | |
MIT License | |
Copyright (c) [2016] [Parashar Dhapola] | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights |
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
import matplotlib.pyplot as plt | |
""" | |
MIT License | |
Copyright (c) [2016] [Parashar Dhapola] | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
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
import numpy as np | |
import matplotlib as mpl | |
import matplotlib.pyplot as plt | |
import pandas as pd # Not used here but will be required for creating dataframe | |
import re | |
import seaborn.apionly as sns | |
""" | |
MIT License |
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
import sys | |
import numpy as np | |
class CuffDiff(object): | |
def __init__(self, filename, up_log_fc_cutoff=1, down_log_fc_cutoff=-1, alpha=0.05): | |
self.filename = filename | |
self.upLogFCcutoff = up_log_fc_cutoff | |
self.downLogFCcutoff = down_log_fc_cutoff | |
self.alpha = alpha | |
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
import sys | |
from warnings import warn | |
import os | |
__author__ = "Parashar Dhapola" | |
__email__ = "" | |
__desc__ = """ | |
This script converts whole gene coordinates into TSS coordinates. | |
Ideally this script should work on any table downloaded form UCSC |
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
import sys | |
from itertools import groupby | |
def read_fasta(fasta_name): | |
fh = open(fasta_name) | |
faiter = (f[1] for f in groupby(fh, lambda line: line[0] == ">")) | |
for head in faiter: | |
head = head.next()[1:].strip() | |
s = "".join(s.strip() for s in faiter.next()) | |
yield head, s |
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
project="Awesome" | |
mkdir "${project}_project" | |
cd "${project}_project/" | |
mkdir $project | |
virtualenv venv | |
source venv/bin/activate | |
pip install flask flask-wtf | |
cd $project | |
mkdir static templates data | |
touch forms.py |