Wasp_Guy has asked for the wisdom of the Perl Monks concerning the following question:
Hi Pearl Monks. In short: I am a Biochemistry Ph.D. student working on a proteomics project. I am new to programming and Perl. I have an assembled RNA-seq fasta file and I need to extract all of the ORFs into a new fasta file that I can use to blast proteome data against. Any advice on how I can proceed would be very appreciated.
local $_ = $your_input_string; while ( /ATG/g ) { my $start = pos() - 3; if ( /T(?:AA|AG|GA)/g ) { my $stop = pos; print $start, " ", $stop, " ", $stop - $start, " ", substr ($_, $start, $stop - $start), $/; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How do I extract ORFs from a fasta file into a new fasta file
by Anonymous Monk on Jul 07, 2013 at 04:02 UTC | |
|
Re: How do I extract ORFs from a fasta file into a new fasta file
by zork42 (Monk) on Jul 08, 2013 at 01:40 UTC | |
|
Re: How do I extract ORFs from a fasta file into a new fasta file
by biohisham (Priest) on Jul 08, 2013 at 08:29 UTC | |
|
Re: How do I extract ORFs from a fasta file into a new fasta file
by Anonymous Monk on Jul 07, 2013 at 16:41 UTC |