Created
October 21, 2011 23:49
-
-
Save hgdeoro/1305293 to your computer and use it in GitHub Desktop.
Conversor de FASTQ a FASTA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Primero le decimos a Python (el lenguaje de programacion) que queremos usar 'SeqIO', | |
# que es un modulo de Biopython. | |
# | |
from Bio import SeqIO | |
# | |
# El modulo 'SeqIO' posee muchas funciones, una de ellas es convert(), usada para | |
# convertir un archivo de un formato a otro. La funcion devuelve la cantidad de registros | |
# transformados | |
# | |
count = SeqIO.convert("SRR014849_1.fastq", "fastq", "SRR014849_1.fasta", "fasta") | |
# | |
# Imprimimos por pantalla la cantidad de registros transformados. | |
# | |
print "Converted %i records" % count |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment