@@ -17,7 +17,7 @@ def __init__(self,prog):
1717 epilog = """Written by Jon Palmer (2016-2018) [email protected] """ ,
1818 formatter_class = MyFormatter )
1919parser .add_argument ('-t' ,'--tests' , required = True , nargs = '+' ,
20- choices = ['all' , 'clean' , 'mask' , 'predict' , 'annotate' , 'busco' , ' rna-seq' , 'compare' ],
20+ choices = ['all' , 'clean' , 'mask' , 'predict' , 'annotate' , 'rna-seq' , 'compare' ],
2121 help = 'select which tests to run' )
2222parser .add_argument ('--cpus' , default = 2 , type = int , help = 'Number of CPUs to use' )
2323args = parser .parse_args ()
@@ -165,7 +165,7 @@ def runPredictTest():
165165 print ("#########################################################" )
166166 #check results
167167 try :
168- assert 1500 <= countGFFgenes (os .path .join (tmpdir , 'annotate' , 'predict_results' , 'Awesome_testicus.gff3' )) <= 1700
168+ assert 1500 <= countGFFgenes (os .path .join (tmpdir , 'annotate' , 'predict_results' , 'Awesome_testicus.gff3' )) <= 1800
169169 print ('SUCCESS: `funannotate predict` test complete.' )
170170 shutil .rmtree (tmpdir )
171171 except AssertionError :
@@ -182,7 +182,7 @@ def runBuscoTest():
182182 lib .log .error ("$AUGUSTUS_CONFIG_PATH environmental variable not found, set to continue." )
183183 return
184184 if os .path .isdir (os .path .join (AUGUSTUS , 'species' , 'awesome_busco' )):
185- shutil .rmtree (os .path .join (AUGUSTUS , 'species' , 'awesome_busco' ))
185+ shutil .rmtree (os .path .join (AUGUSTUS , 'species' , 'awesome_busco' ))
186186 tmpdir = 'test-busco_' + pid
187187 os .makedirs (tmpdir )
188188 inputFasta = 'test.softmasked.fa'
@@ -201,7 +201,7 @@ def runBuscoTest():
201201 print ("#########################################################" )
202202 #check results
203203 try :
204- assert 1500 <= countGFFgenes (os .path .join (tmpdir , 'annotate' , 'predict_results' , 'Awesome_busco.gff3' )) <= 1700
204+ assert 1500 <= countGFFgenes (os .path .join (tmpdir , 'annotate' , 'predict_results' , 'Awesome_busco.gff3' )) <= 1800
205205 print ('SUCCESS: `funannotate predict` BUSCO-mediated training test complete.' )
206206 shutil .rmtree (tmpdir )
207207 except AssertionError :
@@ -259,7 +259,7 @@ def runCompareTest():
259259 shutil .copyfile (input3 , os .path .join (tmpdir , input3 ))
260260 #run predict
261261 runCMD (['funannotate' , 'compare' ,
262- '-i' , input1 , input2 , input3 ,
262+ '-i' , input1 , input2 , input3 ,
263263 '-o' , 'compare' , '--cpus' , str (args .cpus ),
264264 '--run_dnds' , 'estimate' , '--outgroup' , 'botrytis_cinerea.dikarya' ], tmpdir )
265265 print ("#########################################################" )
@@ -273,7 +273,7 @@ def runCompareTest():
273273 except AssertionError :
274274 print ('ERROR: `funannotate compare` test failed - check logfiles' )
275275 print ("#########################################################\n " )
276-
276+
277277def runRNAseqTest ():
278278 print ("#########################################################" )
279279 print ('Running funannotate RNA-seq training/prediction unit testing' )
@@ -284,7 +284,7 @@ def runRNAseqTest():
284284 lib .log .error ("$AUGUSTUS_CONFIG_PATH environmental variable not found, set to continue." )
285285 return
286286 if os .path .isdir (os .path .join (AUGUSTUS , 'species' , 'awesome_rna' )):
287- shutil .rmtree (os .path .join (AUGUSTUS , 'species' , 'awesome_rna' ))
287+ shutil .rmtree (os .path .join (AUGUSTUS , 'species' , 'awesome_rna' ))
288288 tmpdir = 'test-rna_seq_' + pid
289289 os .makedirs (tmpdir )
290290 inputFasta = 'test.softmasked.fa'
@@ -296,7 +296,7 @@ def runRNAseqTest():
296296 download (download_links .get ('rna-seq' ), 'test-rna_seq.tar.gz' )
297297 subprocess .call (['tar' , '-zxf' , 'test-rna_seq.tar.gz' ])
298298 for f in [inputFasta , protEvidence , illumina , nanopore ]:
299- shutil .copyfile (f , os .path .join (tmpdir , f ))
299+ shutil .copyfile (f , os .path .join (tmpdir , f ))
300300 #run train
301301 runCMD (['funannotate' , 'train' , '-i' , inputFasta ,
302302 '--single' , illumina , '--nanopore_mrna' , nanopore ,
@@ -313,7 +313,7 @@ def runRNAseqTest():
313313 print ("#########################################################" )
314314 print ('Now running `funannotate update` to run PASA-mediated UTR addition and multiple transcripts' )
315315 runCMD (['funannotate' , 'update' , '-i' , 'rna-seq' ,
316- '--cpus' , str (args .cpus )], tmpdir )
316+ '--cpus' , str (args .cpus )], tmpdir )
317317 print ("#########################################################" )
318318 #check results
319319 try :
@@ -332,11 +332,11 @@ def runRNAseqTest():
332332 runMaskTest ()
333333if 'predict' in args .tests or 'all' in args .tests :
334334 runPredictTest ()
335- if 'busco' in args .tests or 'all' in args .tests :
336- runBuscoTest ()
335+ # if 'busco' in args.tests or 'all' in args.tests:
336+ # runBuscoTest()
337337if 'rna-seq' in args .tests or 'all' in args .tests :
338- runRNAseqTest ()
338+ runRNAseqTest ()
339339if 'annotate' in args .tests or 'all' in args .tests :
340- runAnnotateTest ()
340+ runAnnotateTest ()
341341if 'compare' in args .tests or 'all' in args .tests :
342- runCompareTest ()
342+ runCompareTest ()
0 commit comments