Replacing the consensus sequence when printing

Tips and tricks for advanced CodonCode Aligner users

Replacing the consensus sequence when printing

Postby Peter Richterich » Fri Nov 12, 2010 11:42 am

This tip describes a hidden option in CodonCode Aligner that allows you to replace the consensus sequence with '-' and '*' characters when printing contigs. Normally, contigs are printed with the consensus sequence:
Image
Occasionally, however, a consensus sequence may not be meaningful; instead, highlighting bases where the aligned sequences differ may make more sense. Here's what this would look like:
Image
To print consensus sequences as shown in the lower image, you need to set a hidden settings flag in CodonCode Aligner. The flag can be set by dragging a text file onto a CodonCode Aligner project view window. The extension of the text file has to be ".alpref" so that CodonCode Aligner recognizes it as a preference file, and the content should be a single line that reads:
Code: Select all
PrintReplaceConsensus=true

To switch back to normal printing (as in the top picture), the line should read:
Code: Select all
PrintReplaceConsensus=false

For your convenience, here is a ZIP archive that contains these two text files: PrintConsensus.zip

You may need to right-click on the link, and then choose "Save as" or similar, to download the ZIP file, and then extract the files on your computer. The files are called 'DontPrintConsensus.alpref' (to replace the consensus bases with '-' or '*' characters) and 'PrintConsensus.alpref' (to print the consensus bases).

Please note that you need CodonCode Aligner version 3.7.1 or newer to use this feature.
Peter Richterich
Site Admin
 
Posts: 85
Joined: Thu Aug 21, 2008 7:23 pm

Return to Tips & Tricks



Who is online

Users browsing this forum: No registered users and 1 guest

cron