I'm starting in Python and every sentence I try to write gives me an error.
I created a archivo.txt
with a fasta sequence that I downloaded, with its spaces and numbers.
Now I try to work on it, making small changes, in plan to remove spaces, eliminate car jumps.
I know how to do it if I copy the sequence above, but open it from another file no.
fichero = open ('/ruta del archivo.txt')
for linea in fichero:
a=fichero.replace('\n','')
b=a.replace(' ','')
dna = re.sub("[0-9]", "", b)
print dna
Can there be an error in the names I'm assigning?