in reply to file header change
Where exactly are you stuck?
Did you manage to open the file
Can you print the contents of the file from your script
Assuming that you can, all you need is:
if( $line =~ />contig_(\d+)\s/ ) { print ">$1\n"; } else { print "$lin +e\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: file header change
by utpalmtbi (Acolyte) on Feb 05, 2013 at 10:30 UTC | |
by tmharish (Friar) on Feb 05, 2013 at 10:42 UTC | |
by utpalmtbi (Acolyte) on Feb 05, 2013 at 11:20 UTC |