Sha256: e211e71d1d01463b256d784e3802b1932a4278fe0e2b393ff0a4b82dd4c74f52

Contents?: true

Size: 587 Bytes

Versions: 28

Compression:

Stored size: 587 Bytes

Contents

#!/usr/bin/env ruby

class OneBlast

def initialize(database, blast_type = 'blastp')

		@blast_type = blast_type
    @database = database
    @c=0 
end


def do_blast(seq_fasta)

	@f = File.new('one_blast_aux.fasta','w+')
	@f.puts ">SEQNAME_"+@c.to_s
	@f.puts seq_fasta
	@c = @c+1			
	@f.close

    cmd = '~blast/programs/x86_64/bin/blastall -p '+@blast_type+' -d '+@database + ' -i one_blast_aux.fasta -o one_blast_aux.out'
        #puts cmd
        system(cmd)

    res =''
    File.open('one_blast_aux.out').each_line { |line|

        res = line
	

    }

end

def close

end

end


Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
seqtrimnext-2.0.68 lib/seqtrimnext/classes/one_blast.rb
seqtrimnext-2.0.66 lib/seqtrimnext/classes/one_blast.rb
seqtrimnext-2.0.62 lib/seqtrimnext/classes/one_blast.rb
seqtrimnext-2.0.61 lib/seqtrimnext/classes/one_blast.rb
seqtrimnext-2.0.60 lib/seqtrimnext/classes/one_blast.rb
seqtrimnext-2.0.59 lib/seqtrimnext/classes/one_blast.rb
seqtrimnext-2.0.57 lib/seqtrimnext/classes/one_blast.rb
seqtrimnext-2.0.56 lib/seqtrimnext/classes/one_blast.rb
seqtrimnext-2.0.55 lib/seqtrimnext/classes/one_blast.rb
seqtrimnext-2.0.54 lib/seqtrimnext/classes/one_blast.rb
seqtrimnext-2.0.52 lib/seqtrimnext/classes/one_blast.rb
seqtrimnext-2.0.51 lib/seqtrimnext/classes/one_blast.rb
seqtrimnext-2.0.50 lib/seqtrimnext/classes/one_blast.rb
seqtrimnext-2.0.49 lib/seqtrimnext/classes/one_blast.rb
seqtrimnext-2.0.48 lib/seqtrimnext/classes/one_blast.rb
seqtrimnext-2.0.46 lib/seqtrimnext/classes/one_blast.rb
seqtrimnext-2.0.45 lib/seqtrimnext/classes/one_blast.rb
seqtrimnext-2.0.42 lib/seqtrimnext/classes/one_blast.rb
seqtrimnext-2.0.41 lib/seqtrimnext/classes/one_blast.rb
seqtrimnext-2.0.39 lib/seqtrimnext/classes/one_blast.rb