Given a text file with one DNA sequence on each line and joining these together I now want to split the string into 5 sequences (corresponding to each of the 5 rows).
This is the file source: http://www.programmingforbiologists.org/data/dna_sequences_1.txt
This is my code:
import numpy
dna_data=numpy.loadtxt("dna_sequences",dtype=str)
",".join(dna_data)
seq1,seq2,seq3,seq4,seq5=dna_data.split(",",4)
I am getting this error message:
AttributeError: 'numpy.ndarray' object has no attribute 'split'