Skip to content
Snippets Groups Projects
Commit 425a8d43 authored by Michael Sandholzer's avatar Michael Sandholzer
Browse files

new file: read_sequencer_package/read_sequence.py

parent fe58b6c6
No related branches found
No related tags found
1 merge request!3read_sequencer new file: read_sequencer_package/read_sequence.py
'''
This function reads sequences
arguments: seq is a list of sequences
padding_probabilities is a number??
returns sequenced element
'''
import random
def read_sequence(seq, padding_probabilities, read_length):
reading_element = random.choice(seq)
bases =["A", "T", "C", "G"]
if read_length > len(reading_element):
for nt in [0:len(reading_element)]:
sequenced += reading_element[nt]
for nt2 in [len(reading_element):read_length]:
sequenced += random.choice(bases)
else:
for nt in [0:read_length]
sequenced += reading_element[nt]
return sequenced
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment