File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -193,14 +193,16 @@ def __init__(self,prog):
193193 #setup weights file for EVM
194194 Weights = os .path .join (args .out , 'predict_misc' , 'weights.evm.txt' )
195195 with open (Weights , 'w' ) as output :
196+ sources = []
197+ with open (Predictions , 'rU' ) as preds :
198+ for line in preds :
199+ source = line .split ('\t ' )[1 ]
200+ if source not in sources :
201+ sources .append (source )
196202 if args .pasa_gff :
197203 output .write ("OTHER_PREDICTION\t transdecoder\t 10\n " )
198- output .write ("ABINITIO_PREDICTION\t augustus\t 1\n " )
199- output .write ("ABINITIO_PREDICTION\t genemark\t 1\n " )
200- else :
201- output .write ("ABINITIO_PREDICTION\t augustus\t 1\n " )
202- output .write ("ABINITIO_PREDICTION\t genemark\t 1\n " )
203-
204+ for i in sources :
205+ output .write ("ABINITIO_PREDICTION\t %s\t 1\n " % i )
204206 output .write ("PROTEIN\t protein2genome\t 1\n " )
205207 output .write ("TRANSCRIPT\t est2genome\t 1\n " )
206208 Exonerate = os .path .abspath (Exonerate )
You can’t perform that action at this time.
0 commit comments