Skip to content

Commit 3d03cae

Browse files
Jon PalmerJon Palmer
authored andcommitted
udpates to v0.2.9
1 parent 803f0c2 commit 3d03cae

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

bin/funannotate-predict.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -142,18 +142,19 @@ def __init__(self,prog):
142142

143143
#check input files to make sure they are not empty, first check if multiple files passed to transcript/protein evidence
144144
input_checks = [args.input, args.genemark_mod, args.exonerate_proteins, args.gmap_gff, args.pasa_gff, args.repeatmodeler_lib, args.rna_bam]
145-
if ',' in args.protein_evidence:
145+
if ',' in args.protein_evidence: #there will always be something here, since defaults to uniprot
146146
prot_evid = args.protein_evidence.split(',')
147147
for x in prot_evid:
148148
input_checks.append(x)
149149
else:
150150
input_checks.append(args.protein_evidence)
151-
if ',' in args.transcript_evidence:
152-
trans_evid = args.transcript_evidence.split(',')
153-
for y in trans_evid:
154-
input_checks.append(y)
155-
else:
156-
input_checks.append(args.transcript_evidence)
151+
if args.transcript_evidence: #if transcripts passed, otherwise ignore
152+
if ',' in args.transcript_evidence:
153+
trans_evid = args.transcript_evidence.split(',')
154+
for y in trans_evid:
155+
input_checks.append(y)
156+
else:
157+
input_checks.append(args.transcript_evidence)
157158
#now check the inputs
158159
for i in input_checks:
159160
if i:

lib/library.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,10 @@ def ParseErrorReport(input, Errsummary, val, Discrep, output):
904904
pass
905905
elif 'SEQ_FEAT.MissingTrnaAA' in line:
906906
pass
907+
elif 'SEQ_FEAT.NoStop' in line:
908+
pass
909+
elif 'SEQ_INST.TerminalNs' in line:
910+
pass
907911
elif 'SEQ_FEAT.FeatureBeginsOrEndsInGap' in line:
908912
err = line.split(" ")[-1].rstrip()
909913
gapErrors.append(err)

0 commit comments

Comments
 (0)