示例#1
0
    def extract_reads( self, dstdir ):
        '''
            Extracts all of the read files into dstdir
             essentially doubling+uncompressed space the amount of storage

            @returns a list of abspaths to the extracted reads
        '''
        extracted_reads = []
        for readgz in self.get_reads():
            bn,ext = splitext( basename(readgz) )
            read = join(dstdir,bn)
            util.ungzip( readgz, read )
            extracted_reads.append( read )
        return extracted_reads
示例#2
0
 def test_optionalthird(self):
     ''' Test that given a correct third argument it still runs '''
     infa = ungzip(INPUT_PATH)
     bwa.index_ref(REF_PATH)
     # I don't have a mates file so just use infa again
     mem = BWAMem(REF_PATH, infa, infa, bwa_path=BWA_PATH)
     eq_(0, mem.run())
示例#3
0
 def test_optionalthird( self ):
     ''' Test that given a correct third argument it still runs '''
     infa = ungzip( INPUT_PATH )
     bwa.index_ref( REF_PATH )
     # I don't have a mates file so just use infa again
     mem = BWAMem( REF_PATH, infa, infa, bwa_path=BWA_PATH )
     eq_( 0, mem.run() )
示例#4
0
 def setUpClass( self ):
     super( SeqIOBase, self ).setUpClass()
     self.sff_input = os.path.join( self.tempdir, 'input.sff' )
     util.ungzip( util.INPUT_SFF_PATH, self.sff_input )
示例#5
0
文件: test_bwa.py 项目: jrherr/pyBWA
 def test_bwamem_run( self ):
     ''' Make sure it actually runs bwa with correct input '''
     infa = ungzip( INPUT_PATH )
     bwa.index_ref( REF_PATH )
     mem = BWAMem( REF_PATH, infa, bwa_path=BWA_PATH )
     eq_( 0, mem.run() )
示例#6
0
 def setUpClass(self):
     super(SeqIOBase, self).setUpClass()
     self.sff_input = os.path.join(self.tempdir, 'input.sff')
     util.ungzip(util.INPUT_SFF_PATH, self.sff_input)