想调用linux下的awk命令....一个一个+有点乱 。。。。
酱紫的...
```python
mutationid2=os.popen('''awk -F"\t" 'NR>1{
var["Missense_Mutation"]="Missense_Mutation";
var["Nonsense_Mutation"]="Nonsense_Mutation";
var["Nonstop_Mutation"]="Nonstop_Mutation";
var["Splice_Site"]="Splice_Site";
var["In_Frame_Del"]="In_Frame_Del";
var["Frame_Shift_Del"]="Frame_Shift_Del";
var["In_Frame_Ins"]="In_Frame_Ins";
var["Frame_Shift_Ins"]="Frame_Shift_Ins";
if($9 in var){
print $0;
}
}' %s |awk -F"\t" '{if($5!="MT" && $5!="X" && $5!="Y" && $1!="Hugo_Symbol" && $10=="SNP"){print $1":"$5":"$6}}' |sort -ru '''%i(maflist)).read().strip().split("\n")
```
maflist是几百个文件...
想用go做一个一样功能的
有疑问加站长微信联系(非本文作者)