Esempio n. 1
0
 def runit( self, sff, output=None ):
     ''' Run sffs_to_fastq '''
     if output is None:
         path = seqio.sffs_to_fastq( sff )
     else:
         path = seqio.sffs_to_fastq( sff, output )
         assert path == output
     assert path is not None
     assert is_fastq( path )
     assert sff_eq_fastq( sff, path )
Esempio n. 2
0
 def runit(self, sff, output=None):
     ''' Run sffs_to_fastq '''
     if output is None:
         path = seqio.sffs_to_fastq(sff)
     else:
         path = seqio.sffs_to_fastq(sff, output)
         assert path == output
     assert path is not None
     assert is_fastq(path)
     assert sff_eq_fastq(sff, path)
Esempio n. 3
0
 def test_nonlist( self ):
     ''' Param is not a list '''
     seqio.sffs_to_fastq( 'i am a string' )
     seqio.sffs_to_fastq( 1 )
     seqio.sffs_to_fastq( (1,2) )
Esempio n. 4
0
 def test_invalid_sff( self ):
     ''' One of the sff paths in list is not valid sff path '''
     sff_list = [self.sff_input, 'invalid.sff']
     seqio.sffs_to_fastq( sff_list )
Esempio n. 5
0
 def test_zeroitem( self ):
     ''' Param list is empty list '''
     path = seqio.sffs_to_fastq( [], output='shouldnotexist.fastq' )
     eq_( None, path )
     eq_( True, not os.path.isfile( 'shouldnotexist.fastq' ) )
Esempio n. 6
0
 def test_invalid_sff(self):
     ''' One of the sff paths in list is not valid sff path '''
     sff_list = [self.sff_input, 'invalid.sff']
     seqio.sffs_to_fastq(sff_list)
Esempio n. 7
0
 def test_zeroitem(self):
     ''' Param list is empty list '''
     path = seqio.sffs_to_fastq([], output='shouldnotexist.fastq')
     eq_(None, path)
     eq_(True, not os.path.isfile('shouldnotexist.fastq'))
Esempio n. 8
0
 def test_nonlist(self):
     ''' Param is not a list '''
     seqio.sffs_to_fastq('i am a string')
     seqio.sffs_to_fastq(1)
     seqio.sffs_to_fastq((1, 2))