def gen_sequence(comp, length) :
seq_string = ''
##### Part 3 : Your random sequence generating code goes here
##### Goal : Fill in seq_string with a random sequence of given composition
sequence = Seq(seq_string)
return SeqRecord(sequence, id='Random Sequence', description=comp.__repr__())
##### ALL MODIFICATIONS GO ABOVE THIS LINE #####
### Part 0 : Argument Parsing
### We want out program to have easy-to-use parameters
### We are using the argparse library for this
评论列表
文章目录