def id_from_fasta_label_line(line):
 id_field = line.split()[0]
 id = id_field.strip('>')
 return id

def id_from_fasta_label_line ( line ) : id_field = line . split ( ) [ 0 ] id = id_field . strip ( '>' ) return id
extract id from fasta label line .