Hello friends
I solved my problem. Thank you so much.
User Profile
Collapse
-
getting error when I m trying to feed 'awk' command in my perl script
hello bytes friends,
I am trying to run simple perl script with linux command where I am using 'awk' command and my perl script is
------------------------------------------------
#!/usr/bin/perl -w
use strict;
while (my $line =<>) {
chomp $line;
my @list = split ('\t+',$line);
... -
@RonB
Thanks for your help and specially giving idea how to use HoA and which is really good for me and I will use it in future. :)Leave a comment:
-
@RonB
I wrote new programme and its working perfectly what I want but there is some error still now
#!/usr/bin/perl -w
use strict;
my %H;
my @col;
my %HoA = (
$col[0] => [ $col[1] ],
);
open (PN,"./file1.txt");
my @fam = <PN>;
close (PN);
for (my $i=0; $i<@fam; $i++) {
chomp $fam[$i]; ...Leave a comment:
-
@RonB
I tried to write programme for HOA and its working for file2.txt only because I didn't get the idea about 2nd part of your suggestion, how to compare file1.txt and file2.txt.
#!/usr/bin/perl -w
use strict;
my @col;
my %HoA = (
$col[0] => [ $col[1] ],
);
while (my $line = <>)
{
...Leave a comment:
-
@RonB
Thank you so much for your quick reply. I am not sure about this hash of array because I didn't use it before !! :( But if you kindly give some out structure of your idea in code language(perl) may be I will try to crack that.Leave a comment:
-
help to print data with their corresponding value
Hi I have two files. One file contains all my interested uniprot id and second file contains uniprot ID with their corresponding family. My aim or I am trying to create new file.
So from file1, I want compare all Id with file2's Id. If equal then they should print id with their family name or not equal then they should print their id with 'None' word.
I uploaded, File1 which contains uniprot Id.
File2 which contains... -
Thanks for your feedback....... ..Actually in every Sequence there are two parts which is divided by *...* so that means
>P1|BD-8
FHFHFJHFJFDJJHF JF
HFJHFJKFJKFJKFJ KF*
GFHFHJFJFJFJKFJ KF
HJFHJFJFJKFJKFJ KF*
So bold is part1 of that sequence and thats lies between > and first *
and 2nd part lies between first * and second *
so my job is to grab part1 of all sequence and print...Leave a comment:
-
hi
can u plz explain me about function of variable $flag.
and other thing is that if I try to print only
>P1|208,D
DVLMTQTPPSLPVSL GDQASISCRSSQTIV HSDGNTYLEW
YLQKPGQSPKLLIYK VSNRFSGVPDRFSGS GSGTDFTLKI
SRVEAEDLGLYYCFQ GSHVPPTFGGGTKLE IKR*
>P1|MN14C1
DILMTQTPLSLPVSL GDQASISCRSSQSLV HSNGNTYLHW
YLQKPGQSPKLLIYT VSNRFSGVPDRFSGS GSGTDFTLKI
SRVEAEDLGLYFCSQ STHLPPTFGGGTKLD IKR*
...Leave a comment:
-
-
Grabing line from file
Hi my original file looks like this-
>P1;208,D-
208,D-5 - (MOUSE) mouse
DVLMTQTPPSLPVSL GDQASISCRSSQTIV HSDGNTYLEW
YLQKPGQSPKLLIYK VSNRFSGVPDRFSGS GSGTDFTLKI
SRVEAEDLGLYYCFQ GSHVPPTFGGGTKLE IKR*
VQLLEESGGGLVKPG GSLKLSCAASGFTFS DYYMFWVRQT
PEKRLEWFATISDGG SHTYYPDSVKGRFTI SRDNAKNNLY
LQMSCLRSEDTAMYY CTRDSLDFYGMDYWG QGTSVTVSS*
>P1;MN14C1
MN14C11.6 - (MOUSE) mouse
DILMTQTPLSLPVSL GDQASISCRSSQSLV HSNGNTYLHW...
No activity results to display
Show More
Leave a comment: