Entering edit mode
6.8 years ago
juan.crescente
▴
110
I'm running multiple blast searches using temp files. I'm looking for a method to pass via command line subject and query as strings instead of files. This is the code I'm using so far
cmd_list = ['blastn','-query',"query",'-subject',"subject",
'-reward','2',
'-max_target_seqs','1',
'-penalty','-4',
'-word_size','7','-ungapped',
'-evalue','10','-strand',"plus",
'-soft_masking','false' ,'-dust','no',
'-outfmt',"6 sstart send qstart qend score length mismatch gaps gapopen nident"]
#]
blast_process = Popen(cmd_list, stdout=PIPE, stderr=PIPE)
out,err = blast_process.communicate()
I've also tried this with no success:
'-query','<(echo -e ">'+record.id+'\n'+seq+'")' ,
brillant, much faster!