Skip to content

Instantly share code, notes, and snippets.

@sestaton
Last active December 27, 2015 19:18
Show Gist options
  • Save sestaton/7375544 to your computer and use it in GitHub Desktop.
Save sestaton/7375544 to your computer and use it in GitHub Desktop.
biostars85929.pl - convert fastq to fasta
#!/usr/bin/env perl
use strict;
use warnings;
use Bio::Factory::EMBOSS;
my $usage = "perl $0 in.fq out.fa";
my $infile = shift or die $usage;
my $outfile = shift or die $usage;
my $factory = Bio::Factory::EMBOSS->new;
my $seqret = $factory->program('seqret'); # $seqret is a Bio::Tools::Run::EMBOSSApplication object
$seqret->run({-sequence => $infile,
-sformat1 => 'fastq',
-outseq => $outfile,
-osformat => 'fasta'});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment