Skip to content

Commit f335dd3

Browse files
committed
ENH update metap for hq
1 parent d34b03b commit f335dd3

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

General_Scripts/03_Quality_control/merge_quality_control/03_merge_all.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def hq(infile,outfile,aa):
5353
else:
5454
antifam,terminal,rnacode,metat,riboseq,metap = line.strip().split('\t')
5555
if rnacode != 'NA':
56-
if (antifam == 'T' and terminal == 'T' and float(rnacode)<0.05) and (int(metat)>1 or int(riboseq)>1 or round(float(metap),1) >= 0.5):
56+
if (antifam == 'T' and terminal == 'T' and float(rnacode)<0.05) and (int(metat)>1 or int(riboseq)>1 or float(metap) >= 0.5):
5757
number = n-1
5858
nf = f'{number:09}'
5959
name = f'GMSC10.{aa}AA.{nf[:3]}_{nf[3:6]}_{nf[6:9]}'

General_Scripts/03_Quality_control/metaproteomics/02_merge.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ def processfile_cov(infile):
6868
substr_lst = substr_lst.split(',')
6969
if (smorf != 'query') and (seq != 'Sequence'):
7070
cov, qualstr, _ = covcalc(seq, substr_lst)
71-
cov = round(cov, 1)
7271
if cov >= 0.5:
7372
out.append([smorf, cov, qualstr])
7473
df = pd.DataFrame(out,columns=['Access','Coverage','QualityString'])

0 commit comments

Comments
 (0)