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 | |
def main(fp): | |
print('ip\tmask') | |
with open(fp, 'r') as fh: | |
for line in fh: | |
line_trim = line.strip() | |
if line_trim.startswith('ip address'): | |
lst = line_trim.split() |
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
## RNA-seq analysis with DESeq2 | |
## Stephen Turner, @genetics_blog | |
# RNA-seq data from GSE52202 | |
# http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=gse52202. All patients with | |
# ALS, 4 with C9 expansion ("exp"), 4 controls without expansion ("ctl") | |
# Import & pre-process ---------------------------------------------------- | |
# Import data from featureCounts |
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
#!/usr/bin/env python3 | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
see: https://gist.github.com/UniIsland/3346170 | |
""" | |
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
# !/usr/bin/env python3 | |
import http.client | |
import json | |
import mimetypes | |
import os | |
import random | |
import sys | |
from string import digits, ascii_letters | |
from urllib.parse import quote | |
from uuid import uuid4 |
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
a_list = [ | |
{"型号": 12, "重量": 16, "产地": 19, "审核人": 33}, | |
{"型号": 22, "重量": 92, "产地": 87, "审核人": 34}, | |
{"型号": 15, "重量": 27, "产地": 86, "审核人": 35}, | |
{"型号": 71, "重量": 55, "产地": 21, "审核人": 36}, | |
] | |
b_list = [ | |
{"产地": 87, "型号": 22, "重量": 92, "审核人": 34}, | |
{"产地": 86, "型号": 15, "重量": 27, "审核人": 35}, |
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 asyncio | |
import sys | |
from aiohttp import ClientSession, ClientTimeout | |
def seq_iter(seq, step=10): | |
if not seq: | |
return seq | |
from_idx, to_idx, seq_len = 0, step, len(seq) |
OlderNewer