ソースを参照

merge mendelian

master
LUYAO REN 5年前
コミット
e59ec5311f
2個のファイルの変更15行の追加0行の削除
  1. +1
    -0
      codescripts/linux_command.sh
  2. +14
    -0
      codescripts/replicates_consensus.py

+ 1
- 0
codescripts/linux_command.sh ファイルの表示

cat benchmark.men.vote.diffbed.filtered | awk '{print $1"\t"$2"\t"".""\t"$35"\t"$23"\t.\t.\t.\tGT\t"$22}' | grep -v '2_y' > LCL7.body cat benchmark.men.vote.diffbed.filtered | awk '{print $1"\t"$2"\t"".""\t"$35"\t"$23"\t.\t.\t.\tGT\t"$22}' | grep -v '2_y' > LCL7.body
cat benchmark.men.vote.diffbed.filtered | awk '{print $1"\t"$2"\t"".""\t"$35"\t"$31"\t.\t.\t.\tGT\t"$30}' | grep -v '2_y' > LCL8.body cat benchmark.men.vote.diffbed.filtered | awk '{print $1"\t"$2"\t"".""\t"$35"\t"$31"\t.\t.\t.\tGT\t"$30}' | grep -v '2_y' > LCL8.body


for i in *txt; do cat $i | awk '{ if ((length($3) == 1) && (length($4) == 1)) { print } }' | grep -v '#' | cut -f3,4 | sort |uniq -c | sed 's/\s\+/\t/g' | cut -f2 > $i.mut; done

+ 14
- 0
codescripts/replicates_consensus.py ファイルの表示

tag = ['inconGT','inconSequenceSite'] tag = ['inconGT','inconSequenceSite']
if (pcr_consensus == pcr_free_consensus) and (pcr_consensus not in tag): if (pcr_consensus == pcr_free_consensus) and (pcr_consensus not in tag):
consensus_call = pcr_consensus consensus_call = pcr_consensus
elif (pcr_consensus in tag) and (pcr_free_consensus in tag):
consensus_call = 'notAgree'

else: else:
consensus_call = 'notConsensus' consensus_call = 'notConsensus'
return consensus_call, detected_num, same_diff return consensus_call, detected_num, same_diff


elif (pcr_consensus in tag) and (pcr_free_consensus in tag):
consensus_call = 'filtered'
elif ((pcr_consensus == './.') or (pcr_consensus in tag)) and ((pcr_free_consensus not in tag) and (pcr_free_consensus != './.')):
consensus_call = 'pcr-free-speicifc'
elif ((pcr_consensus != './.') or (pcr_consensus not in tag)) and ((pcr_free_consensus in tag) and (pcr_free_consensus == './.')):
consensus_call = 'pcr-speicifc'
elif (pcr_consensus == '0/0') and (pcr_free_consensus == '0/0'):
consensus_call = '0/0'
else:
consensus_call = 'filtered'



for row in vcf_dat.itertuples(): for row in vcf_dat.itertuples():
# length # length

読み込み中…
キャンセル
保存