find_unique_end4_1.py 132 B

123456
  1. def truncate(oligo,is5prime,length):
  2. if is5prime == True:
  3. #print oligo
  4. return oligo[:length-1]
  5. else:
  6. return oligo[length+1:]