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
library("seqinr") | |
getncbiseq <- function(accession) | |
{ | |
require("seqinr") # this function requires the SeqinR R package | |
# first find which ACNUC database the accession is stored in: | |
dbs <- c("genbank","refseq","refseqViruses","bacterial") | |
numdbs <- length(dbs) | |
for (i in 1:numdbs) | |
{ | |
db <- dbs[i] |
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
cycler==0.10.0 | |
Django==2.0.1 | |
django-cors-headers==2.1.0 | |
django-extensions==1.9.9 | |
imutils==0.4.5 | |
matplotlib==2.1.2 | |
numpy==1.13.3 | |
opencv-python==3.3.1.11 | |
pandas==0.22.0 | |
Pillow==5.0.0 |
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.conf import settings | |
from demoapp import models | |
def RequestExposerMiddleware(get_response): | |
def middleware(request): | |
models.exposed_request = request | |
response = get_response(request) | |
return response | |
return middleware |
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
BLASTN 2.7.1+ | |
Reference: Zheng Zhang, Scott Schwartz, Lukas Wagner, and Webb | |
Miller (2000), "A greedy algorithm for aligning DNA sequences", J | |
Comput Biol 2000; 7(1-2):203-14. | |
Database: cad_res_partial |
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 unittest | |
from mycodes import * | |
class MyTests(unittest.TestCase): | |
##your playground starts | |
def yourtest(self): | |
pass | |
##your playground ends | |
if __name__=="__main__": |
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 unittest | |
from mycodes import * | |
class MyTests(unittest.TestCase): | |
##your playground starts | |
def test_hello(self): | |
self.assertEqual(hello('John'), 'Happy testing! John') | |
##your playground ends | |
if __name__=="__main__": |
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
E | |
====================================================================== | |
ERROR: test_hello (__main__.MyTests) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "mytests.py", line 7, in test_hello | |
self.assertEqual(hello('John'), 'Happy testing! John') | |
NameError: name 'hello' is not defined | |
---------------------------------------------------------------------- |
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 hello(): | |
pass |
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 hello(name): | |
pass |
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 hello(name): | |
return "Happy testing! ",name |