text: 0
  :cheesy: hi all,
  i do not know how many people have worked in biopython before but, i am soo close to this answer i can feel it! just need a lil help again... basically this takes a FASTA file from NCBI and makes it into a dictionary which is wonderful and easy. However my fasta file has id's that are the same name and need a unique id. I wanted to add like a number to the id that is the same..(error comes from bio.mindy) i wrote this:
  if key in index: index[key] = index[key] + 1
  but didnt work any ideas? thanks guys/gals!:mrgreen:
  import string from Bio import Fasta from Bio.Alphabet import IUPAC] index_file(file_to_index,index_file_to_create,function_to_get_index_key) if key in index: index[key] = index[key] + 1 Fasta.index_file("ls_orchid.fasta", "orchid_2.idx",get_accession_num) #dna_parser = Fasta.SequenceParser(IUPAC.protein) orchid_dict = Fasta.Dictionary("orchid_2.idx")#,dna_parser)