User Profile

Collapse

Profile Sidebar

Collapse
cdfd123
cdfd123
Last Activity: Oct 29 '09, 06:18 PM
Joined: Jan 8 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • cdfd123
    started a topic Matrix pairings to print 0 or 1
    in Perl

    Matrix pairings to print 0 or 1

    U have one file
    horse;tiger
    lion;mule
    lion;tiger
    horse;mule

    Another Second file
    horse mule tiger lion
    horse
    mule
    tiger
    lion

    Based on the first file that have pairings that is horse;tiger it will get 1 otherwise no parings will get 0

    Output shud be like that
    horse mule tiger lion
    horse 0 1 1 0
    mule 1 0 ...
    See more | Go to post

  • cdfd123
    replied to using perl to print output
    in Perl
    reply in simple format



    From file A
    we have inputs
    A -> G
    C->D
    A -> R
    P->A

    say first one A->G
    so from file B
    A =1 G=6

    so 1: 2:0 3:0 4:0 6: 7:0 all 20 vectors will be zero except 1 and 6

    Now A is first letter so format is denoted -1 and
    G is second letter so format is denoted as 1
    therefore...
    See more | Go to post

    Leave a comment:


  • cdfd123
    replied to using perl to print output
    in Perl
    reply in simple format



    From file A
    we have inputs
    A -> G
    C->D
    A -> R
    P->A

    say first one A->G
    so from file B
    A =1 G=6

    so 1: 2:0 3:0 4:0 6: 7:0 all 20 vectors will be zero except 1 and 6

    Now A is first letter so format is denoted -1 and
    G is second letter so format is denoted as 1
    therefore...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...