예제 #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
파일: test_bwa.py 프로젝트: ffrancis/pyBWA
 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
파일: test_seqio.py 프로젝트: jrherr/pyBWA
 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)