Bläddra i källkod

picture

master
LUYAO REN 4 år sedan
förälder
incheckning
79ebb7e5d9
3 ändrade filer med 10 tillägg och 12 borttagningar
  1. +2
    -0
      README.md
  2. +8
    -12
      codescripts/D5_D6.py
  3. Binär
      pictures/table.png

+ 2
- 0
README.md Visa fil



![workflow](./pictures/workflow.png) ![workflow](./pictures/workflow.png)


![](./pictures/table.png)

### 1. 原始数据质量控制 ### 1. 原始数据质量控制


#### [Fastqc](<https://www.bioinformatics.babraham.ac.uk/projects/fastqc/>) v0.11.5 #### [Fastqc](<https://www.bioinformatics.babraham.ac.uk/projects/fastqc/>) v0.11.5

+ 8
- 12
codescripts/D5_D6.py Visa fil



for row in sister_dat.itertuples(): for row in sister_dat.itertuples():
# snv indel # snv indel
if ',' in row.ALT:
alt = row.ALT.split(',')
if ',' in row[4]:
alt = row[4].split(',')
alt_len = [len(i) for i in alt] alt_len = [len(i) for i in alt]
alt_max = max(alt_len) alt_max = max(alt_len)
else: else:
alt_max = len(row.ALT)
alt_max = len(row[4])
alt = alt_max alt = alt_max
ref = row.REF
ref = row[3]
if len(ref) == 1 and alt == 1: if len(ref) == 1 and alt == 1:
cate = 'SNV' cate = 'SNV'
elif len(ref) > alt: elif len(ref) > alt:
sister_count = "no" sister_count = "no"
else: else:
sister_count = "yes_diff" sister_count = "yes_diff"
if sister_count == 'yes_same':
sister_same += 1
elif sister_count == 'yes_diff':
sister_diff += 1
else:
pass
if cate == 'SNV': if cate == 'SNV':
if sister_count == 'yes_same': if sister_count == 'yes_same':
snv_sister_same += 1 snv_sister_same += 1
indel_sister = indel_sister_same/(indel_sister_same + indel_sister_diff) indel_sister = indel_sister_same/(indel_sister_same + indel_sister_diff)
snv_sister = snv_sister_same/(snv_sister_same + snv_sister_diff) snv_sister = snv_sister_same/(snv_sister_same + snv_sister_diff)
outcolumn = 'Project\tReproducibility_D5_D6\n' outcolumn = 'Project\tReproducibility_D5_D6\n'
outResult = project_name + '\t' + str(sister) + '\n'
indel_outResult = project_name + '.INDEL' + '\t' + str(indel_sister) + '\n'
snv_outResult = project_name + '.SNV' + '\t' + str(snv_sister) + '\n'
output_file.write(outcolumn) output_file.write(outcolumn)
output_file.write(outResult)
output_file.write(indel_outResult)
output_file.write(snv_outResult)







Binär
pictures/table.png Visa fil

Before After
Width: 1698  |  Height: 947  |  Size: 448KB

Laddar…
Avbryt
Spara