#载入数据 meta=[] sequence=[] seq = ('ls_orchid.fasta') for seq_record in SeqIO.parse(seq, "fasta"): meta.append(str(seq_record.id)) sequence.append(str(seq_record.seq))
#print(sequence) df= pd.DataFrame(data ={'Meta':meta,'SequenceID':sequence}) print(df)
#数据存入csv df.to_csv("nc_data.csv", sep=',',index=False)