Created
October 9, 2013 19:32
-
-
Save standage/6906906 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| # Daniel S. Standage <daniel.standage@gmail.com> | |
| # Input: sequences cleaned up and annotated by mRNAmarkup | |
| # Output: each sequence ID along with its annotation, if any | |
| my $usage = "perl $0 < cln-seqs.fas > seqids-and-funcs.txt"; | |
| while(<STDIN>) | |
| { | |
| next unless(m/^>/); | |
| my($seqid) = m/^>(PdomTSAr1\.1-\d+)/; | |
| my $func = "NA"; | |
| if(m/potential fusion transcript/) | |
| { | |
| $func = "potential fusion transcript"; | |
| } | |
| elsif(m/matches \d+ \((.+)\)/) | |
| { | |
| $func = $1; | |
| } | |
| print "$seqid\t$func\n"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment