3) Re-writing a FASTA file containing one protein sequence of TERT

From Biolecture.org
Revision as of 16:34, 11 June 2017 by imported>S (Created page with "<p><strong>It will open original fasta file with TERT protein sequence and print&save on another new file:</strong> </p> <p>#!usr/bin/perl<br /> use strict;<br /> ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

It will open original fasta file with TERT protein sequence and print&save on another new file: 

#!usr/bin/perl
use strict;
use warnings;

 open(FASTA1, "TERTpr.fasta") or die;
 open(FASTA2, ">>TERTpr_rewritten.fasta") or die;

 while (<FASTA1>) {
 print FASTA2 "$_\n";
}