def emboss_piped_SeqIO_convert(records, old_format, new_format):
 cline = SeqretCommandline(exes['seqret'], sformat=old_format, osformat=new_format, auto=True, filter=True)
 child = subprocess.Popen(str(cline), stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True, shell=(sys.platform != 'win32'))
 SeqIO.write(records, child.stdin, old_format)
 child.stdin.close()
 child.stderr.close()
 records = list(SeqIO.parse(child.stdout, new_format))
 child.stdout.close()
 return records

def emboss_piped_SeqIO_convert ( records , old_format , new_format ) : cline = SeqretCommandline ( exes [ 'seqret' ] , sformat = old_format , osformat = new_format , auto = True , filter = True ) child = subprocess . Popen ( str ( cline ) , stdin = subprocess . PIPE , stdout = subprocess . PIPE , stderr = subprocess . PIPE , universal_newlines = True , shell = ( sys . platform != 'win32' ) ) SeqIO . write ( records , child . stdin , old_format ) child . stdin . close ( ) child . stderr . close ( ) records = list ( SeqIO . parse ( child . stdout , new_format ) ) child . stdout . close ( ) return records
run seqret .