I would like to use sed or tr inside a python script to introduce an ID in the fastafile.
I've tried that but it says syntaxError:
subprocess.call(['sed\'s/>/>'+identifier+'/g\' <'+path+'>transcriptome')],shell=True)
where identifier and path are variables. It's must be part of a loop where for each ID and introduced path it has to change the tipical fasta format: >isotig123 to >IDisotig123. Each one with their corresponding ID.
Thanks.