i'm using pyrosetta and biopython to write a code that folds proteins. i want to make the protein name a variable because i use it to label intput/output files throughout the code.
for fastafile in fastafiles: for record in SeqIO.parse(fastafile, 'fasta'): protein = record.id sequence = str(record.seq) pose = pose_from_sequence(sequence) pose.pdb_info().name('%s' % protein) dump_pdb(pose, '%s_input_518.pdb' % protein) input_pose = pose_from_pdb('%s_input_518.pdb' % protein)
but when i run this, the record.id comes out like this
the same thing happens when i try record.name. how do i fix it so that it doesn't include the "_1|Chains" part?
i'm new to biopython and coding in general so any tips are greatly appreciate!