Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. Help me please...!!!........

Help me please...!!!........

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
helpperldata-structures
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    Dear all, I am off because my program is not working. I tried to combine the three arrays of gene expression to get single array. Then I tried to get a subset of array from the single combined array. So I wrote the following code: But the problem is this: Use of uninitialized value $val in scalar chomp at C:\manoj_bioinform\expression.pl line 33, <DIAMIDE> line 8808. Please help me what's wrong with my program..........!!! :( #!/usr/bin/perl -w #Open the three .txt file to the FILEHANDLE #and create the arrays for all the three file open (HYPEROSMOTIC, "hyperosmotic.txt")|| die "can't open the hyperosmotic file: $!\n"; @hyperosmotic = <HYPEROSMOTIC>; open (HEATSHOCK, "heatshock.txt")|| die "can't open the file heatshock: $!\n"; @heatshock = <HEATSHOCK>; open (DIAMIDE, "diamide.txt")|| die "can't open the file diamide: $!\n"; @diamide = <DIAMIDE>; #store all the expression data on the three array #into single @excomb array @excomb = (@hyperosmotic,@heatshock,@diamide); #print @excomb; #loop to split each line from the @expdata into a new tiny array #the columns of data in the original file are #separated by tabs as denoted by the /\t/ #then save only the info from column 0 and 2 as separate variable #also "chomp" each variable to remove unseen characters foreach $excomb(@excomb) { @tarray=split(/\t/, @excomb); $genename=$tarray[0]; $val=$tarray[1]; chomp $genename; chomp $val; } print @tarray;

    J 1 Reply Last reply
    0
    • L Lost User

      Dear all, I am off because my program is not working. I tried to combine the three arrays of gene expression to get single array. Then I tried to get a subset of array from the single combined array. So I wrote the following code: But the problem is this: Use of uninitialized value $val in scalar chomp at C:\manoj_bioinform\expression.pl line 33, <DIAMIDE> line 8808. Please help me what's wrong with my program..........!!! :( #!/usr/bin/perl -w #Open the three .txt file to the FILEHANDLE #and create the arrays for all the three file open (HYPEROSMOTIC, "hyperosmotic.txt")|| die "can't open the hyperosmotic file: $!\n"; @hyperosmotic = <HYPEROSMOTIC>; open (HEATSHOCK, "heatshock.txt")|| die "can't open the file heatshock: $!\n"; @heatshock = <HEATSHOCK>; open (DIAMIDE, "diamide.txt")|| die "can't open the file diamide: $!\n"; @diamide = <DIAMIDE>; #store all the expression data on the three array #into single @excomb array @excomb = (@hyperosmotic,@heatshock,@diamide); #print @excomb; #loop to split each line from the @expdata into a new tiny array #the columns of data in the original file are #separated by tabs as denoted by the /\t/ #then save only the info from column 0 and 2 as separate variable #also "chomp" each variable to remove unseen characters foreach $excomb(@excomb) { @tarray=split(/\t/, @excomb); $genename=$tarray[0]; $val=$tarray[1]; chomp $genename; chomp $val; } print @tarray;

      J Offline
      J Offline
      jschell
      wrote on last edited by
      #2

      Old school so I don't know specifically what the following expression does foreach $excomb(@excomb) But I certainly can guess. It iterates through the array putting a value into $excomb And it would certainly seem reasonable to me that you would want to actually use $excomb somewhere. Say in the following statement. But you don't. @tarray=split(/\t/, @excomb); (Even if the specifics are wrong I am almost certain that using the array there is not what you want.)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups