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
R » FTgse7305 | |
Fisher's Exact Test for Count Data | |
data: gse7305Contingency | |
p-value = 0.09592 | |
alternative hypothesis: two.sided | |
R » FTgse7307 |
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 glob | |
import os.path | |
#These don't have to be hardcoded: | |
MANIFEST = '/media/Mario/bit/gather.newest.files' | |
BASEFOLDER = '/media/Mario/bit/original' | |
def parseManifest(manifest): | |
"""Lazily parses Simon's tabbed manifest file yielding a dictionary of the | |
form {column_name: value} |
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
def T(n): | |
....: #base case | |
....: if n == 1: | |
....: return 1000 | |
....: else: | |
....: return 1000 + T(n-1)*2 | |
....: | |
In [32]: T(1) | |
Out[32]: 1000 |
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
#encoding=utf-8 | |
from django import forms | |
from django.contrib.localflavor.br.forms import ( | |
BRCPFField, | |
BRCNPJField, | |
BRZipCodeField, | |
BRPhoneNumberField, #dígitos dos celulares de SP precisam de nova validação | |
BRStateSelect, | |
) |
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
====================== | |
Lista 2: Questão bônus | |
====================== | |
Esta é uma questão avançada, não se sinta mal se não tiver tempo para | |
resolvê-la. | |
Considere uma mesma instância de tômbola iterável (como implementada no | |
exerício 2.2). Se tal tômbola for utilizada em dois laços ``for``, as | |
iterações serão independentes ou não? |
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
def is_single(data): | |
if data[1] in ['137','153','73','89']: | |
return True | |
else: | |
return False | |
with open('bigfile.sam', 'r') as uncle: |
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
{% extends "base_search_bar.html" %} | |
{% block title %} Gene | {{ gene.symbol }} {% endblock title %} | |
{% block extra-head %} | |
{{ block.super }} | |
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}django_tables2/themes/paleblue/css/screen.css" /> | |
{% endblock extra-head %} | |
{% block content %} | |
<h1>{{ gene.description }}</h1> | |
<div id="content-info"> | |
<div class="info summary"> |
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
ServerAdmin [email protected] | |
ServerName www.posthocergpropterhoc.net | |
#Alias /robots.txt /home/merc/gitcode/miriad/miRIAD/static/robots.txt | |
#Alias /favicon.ico /home/merc/gitcode/miriad/miRIAD/static/dnafavicon.ico | |
Alias /static/ /home/merc/gitcode/ct.env/terraefazenda/src/src/static/ | |
WSGIScriptAlias /clubedaterra /home/merc/gitcode/ct.env/terraefazenda/src/src/wsgi.py | |
WSGIPythonPath /home/merc/gitcode/ct.env/lib/python2.7/site-packages | |
#WSGIDaemonProcess miriad python-path=/home/merc/gitcode/ct.env/terraefazenda/ processes=2 threads=15 |
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
ServerAdmin [email protected] | |
ServerName www.posthocergpropterhoc.net | |
Alias /robots.txt /home/merc/gitcode/miriad/miRIAD/static/robots.txt | |
Alias /favicon.ico /home/merc/gitcode/miriad/miRIAD/static/dnafavicon.ico | |
Alias /static/ /home/merc/gitcode/miriad/miRIAD/static/ | |
WSGIScriptAlias /miriad /home/merc/gitcode/miriad/miRIAD/wsgi.py | |
#WSGIPythonPath /home/merc/gitcode/miriad/ | |
WSGIDaemonProcess miriad python-path=/home/merc/gitcode/miriad/ processes=2 threads=15 |
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
from django.contrib import admin | |
#from django.contrib.auth.admin import UserAdmin | |
from django.contrib.auth.models import User | |
from models import Profile | |
from baseapp.admin import StudentAdminInline | |
class ProfileAdmin(admin.ModelAdmin): | |
exclude = ('activation_key',) |
NewerOlder