摘要:
/** * Created by similarface on 16/8/16. */ import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.HBaseConfiguration; import org.apache.hadoop.hb... 阅读全文
摘要:
/** * Created by similarface on 16/8/17. */ import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.HBaseConfiguration; import org.apache.hadoop.hbase.TableName; import org.apac... 阅读全文
摘要:
/** * Created by similarface on 16/8/16. */ import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.HBaseConfiguration; import org.apache.hadoop.hb... 阅读全文
摘要:
有时候ftp的文件太大了 容易断掉 使用shell下载 阅读全文
摘要:
__author__ = 'similarface' from collections import defaultdict import glob ip = r"?P[\d.]*" date = r"?P\d+" month = r"?P\w+" year = r"?P\d+" log_time = r"?P\S+" method = r"?P\S+" request = r"?P\S+" s... 阅读全文
摘要:
EP:巧妙地过滤掉重复的日期 阅读全文
摘要:
def getSnpWeightDict(): ''' 获取权重字典 算法:F=max(v) F标示某个snp最大出现的频次 for i in I put:w(i)=10-9lnf(i)/ln(F) :param re: :param maxcount: :return: ''' re=defaul 阅读全文
摘要:
$x表示xpath标签选择器 #a元素以href属性以/w3c/index.asp开头的 $x('//a[starts-with(@href,"/w3c/index.asp")]') #选取 html 元素的所有子节点。 $x('html') #选取 根元素html 元素的所有子节点。 $x('/h 阅读全文
摘要:
find ./ -name *.Annovar.hg19_multianno.vcf.gz |xargs -i cp {} ./bak/ find `pwd` -name "*.depth"|awk '{print "echo -e \""substr($1,31,13)" \\c\"; cat " 阅读全文
摘要:
# coding:utf-8 __author__ = 'hdfs' from math import sqrt users = { "Angelica": {"Blues Traveler": 3.5, "Broken Bells": 2.0, "Norah Jones": 4.5, "Phoenix": 5.0, "Slightly Stoopid... 阅读全文