Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: noyk
  • Content: Threads
  • Order by date
  1. noyk

    loop in hash

    Hi, I am encountering some problem with looping here. How do get this line "if ($line =~ m ($gene)) {" to match all $gene in the hash? open (LIST1, "tab_delimited.txt"); while (<LIST1>) { ($id, $product, $ec) = split(/\t/, $_); $hash{$id} = ($product, $ec); }...
  2. noyk

    convert format

    hi, i need to change this output 821 940 0.31 - 0 id "g1"; 989 1205 0.53 - 1 id "g1"; 2141 2621 0.37 - 2 id "g1"; 2681 2847 0.89 - 1 id "g1"; 2921 2925 0.71 - 0 id "g1"; 5897 6076 0.55 + 0 id "g2"; 6129 6202 0.58 + 0 id "g2"; 6265 6381 0.57 + 1 id "g2"; into something like this. i.e. i need...
  3. noyk

    convert text

    Hi, i'm trying to write a script to read this YAL044W-A 0000004 YAL044W-A 0005554 YAL044W-A 0008372 and convert into this YAL044W-A 0000004, 0005554, 0008372 unfortunately, this is as far as i get open FH, "<infile.txt" or die $!; open OF, ">outputfile.txt"; while (<FH>) {...
  4. noyk

    random pair generator

    Hi! i need to generate a pair of random numbers between 0 to 100 e.g. 0 - 2, 5 - 54, 98 - 100 there is two conditions, (1) the same number is not used as a pair e.g. 1-1, 2-2 (2) the same pair of number is not repeated and that would include 1-2, 2-1 the first condition is pretty easy, just...
  5. noyk

    invoking perl from perl

    Hi everyone. I have a perl program that is invoked by the command match.pl A B the problem is that there is a few hundred combination of A and B that is possible so, i am thinking of writing a new program with a small loop that generate the command to invoke the match.pl so, how do I do...
  6. noyk

    append multiple file

    i need a quick script to open multiple files in a directory and copy all the content to a new file. thanks in advance
  7. noyk

    edit text file

    How do i change this YAL044W-A 0000004, 0005554, 0008372 to this? YAL044W-A 0000004 YAL044W-A 0005554 YAL044W-A 0008372 it doesnt have to be programmatic if there is a way doing it using 'replace with' function in any text editor Thanks a lot
  8. noyk

    open(DAT, &quot;&lt;$annotation_scheme_filepath&quot;)

    open(DAT, "<$annotation_scheme_filepath") || die ("Cannot read file $annotation_scheme_filepath"); what does this line means? i've been getting errors from this line

Part and Inventory Search

Back
Top