// SPECIES\tCiona intestinalis DEV_STAGE\tEarly tailbud PREDICTED_GENE\tci0100148006 GENE_NAME\tci0100148006\Ms4a4b\Ms4a4c\Ms4a4d\ ORIGINAL_ANNOTATION/COMMENTS\tConversion to Aniseed... AUTHORS\tSatou Y, Takatori N,... REFERENCES\tDevelopment. 2001 ;128(15):2893-904 URL_OF_ORIGINAL_ANNOTATION\thttp://ghost.zool.kyoto-u.ac.jp/indexr1.html ANISEED_ANNOTATION\tSTAINED_REGION:\thead endoderm\tSTAINED_MOL:\tci0100148006 ANISEED_ANNOTATION\tSTAINED_REGION:\ttail nerve cord\tSTAINED_MOL:\tci0100148006 IN_SITU_URL\thttp://aniseed-ibdm.univ-mrs.fr/insitu.php?id=2605647 // #### use strict; my $ish = $ARGV[0]; open (ISH, "<", $ish) || die "$!"; open (OUT, ">", "out.txt") || die "$!"; { $/ = "//"; while (){ m/DEV_STAGE\t(.*?)\n/g; my $a= $1; my $b; if (m/PREDICTED_GENE\t(.*?)\n/g){ $b= $1; } else{ $b = '#'; } while (m/\tSTAINED_REGION:\t(.*?)\tSTAINED_MOL:\t(.*?)\n/g) { my $c = $1; my $x = $2; print OUT "$b\t$a\t$c\t$x\n"; } } } #### use strict; my $ish = $ARGV[0]; open (ISH, "<", $ish) || die "$!"; open (OUT, ">", "out.txt") || die "$!"; { $/ = "//\n"; while (){ m/DEV_STAGE\t(.*?)\n/g; my $a= $1; my $b; if (m/PREDICTED_GENE\t(.*?)\n/g){ $b= $1; } else{ $b = '#'; } while (m/\tSTAINED_REGION:\t(.*?)\tSTAINED_MOL:\t(.*?)\n/g) { my $c = $1; my $x = $2; print OUT "$b\t$a\t$c\t$x\n"; } } }