edwardslab

  • Increase font size
  • Default font size
  • Decrease font size
Home Bas
Bas' Lab Blog

Reverse complement function in PERL

it includes IUPAC consensus characters:

sub reverse_complement () {
my $new = $_[0];
$new =~ tr/acgtrymkbdhvACGTRYMKBDHV/tgcayrkmvhdbTGCAYRKMVHDB/;
$new = reverse ($new);
return ($new); }

 

 

Converting FASTQ to FASTA and QUAL

Since I couldn't find one readily available anywhere online, I wrote a small PERL script to split a FASTQ file into two files: a FASTA and a QUAL file. Click above to view more.

Read more...