User Profile

Collapse

Profile Sidebar

Collapse
pallabtrue
pallabtrue
Last Activity: May 31 '12, 06:27 PM
Joined: Jun 17 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Hello friends
    I solved my problem. Thank you so much.
    See more | Go to post

    Leave a comment:


  • 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);
    ...
    See more | Go to post

  • @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. :)
    See more | Go to post

    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]; ...
    See more | Go to post

    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 = <>)
    {
    ...
    See more | Go to post

    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.
    See more | Go to post

    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...
    See more | Go to post

  • pallabtrue
    replied to Grabing line from file
    in Perl
    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...
    See more | Go to post

    Leave a comment:


  • pallabtrue
    replied to Grabing line from file
    in Perl
    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*
    ...
    See more | Go to post

    Leave a comment:


  • pallabtrue
    replied to Grabing line from file
    in Perl
    Thanks for your answer...
    See more | Go to post

    Leave a comment:


  • pallabtrue
    started a topic Grabing line from file
    in Perl

    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...
    See more | Go to post
No activity results to display
Show More
Working...