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 bkrike 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: 3inen
  • Content: Threads
  • Order by date
  1. 3inen

    Issue with program efficiency

    Hi! i have a program that is working fine except that i have huge data sets to work with and the script that i wrote is slow. is there are way to make it work faster. thanks while (<FILE1>) { my ($a,$s,$p,$c) = $_ =~ /^(.+)\t(\d+)\t(\d+)\t(.+)/; $n=$a."\t".$s."\t".$c; $hash1{$n} = $p; }...
  2. 3inen

    help with subroutine

    Hi! I am trying to use the Perl module on t-test http://backpan.perl.org/authors/id/Y/YU/YUNFANG/Statistics-TTest-1.0.html in a subroutine for working on my genetics data sets (not class work though) and am not able to direct the output to the OUTFILE. it prints to the console. Here are my two...
  3. 3inen

    about array matching

    Hi! I am trying to compare 2 arrays and when there is match in the second array, wants to print the element, the one before and the one after the match. when using only one matching element, it works, see below. my @num = (1..20); foreach $num(@num){ $count++; if ($num == 2) { print...
  4. 3inen

    sorting array elements

    Hi! I have 4 columns of tab-delimited data. column 1 has two patterns, 'UA' and 'DWN'. I want to select all the rows where coulmn 4 has a value above zero. From these, print rows where column 1 is 'DWN' and print all the 'UA' rows when there are 3 or more UA's between 'DWN'. I am stuck...
  5. 3inen

    looping through array

    Hi! all, i am trying to print 100 files with 100 names, just the names, ('file-A.txt' or 'file-B.txt') in each file. in file 1, fileA will be printed 1 time and fileB 99 times, and in file 2, 2 times fileA and 98 times fileB and so on. here is what i have done sofar. the program works but only...
  6. 3inen

    help with substitution

    Hi! i am trying to replace text from one file in another and am not able to get it done. please suggest a solution. thanks in advance here is what i have done sofar #!/usr/bin/perl -w my ($line, $name, $sequence, $intron, $sequences, $line2); my (%categories); open(FILER1...
  7. 3inen

    run program from a perl script

    Hello i downloaded a program fuzzyK and i want to run it through a perl script. the program file name is aerie and i call it from the command line in LINUX using bash-3.00# ./aerie Aerie> load Datasettrunc.cdt Loading TableData from Datasettrunc.cdt File has 98 rows and 106 columns Done...
  8. 3inen

    searching a list of values

    Hi! i have a search form where the user can copy and paste a list of values (one per line) and i would want to search each of those against the mysql database and return the result. using the below code, i am able to read through each line of the input but i am getting the result for only the...
  9. 3inen

    Dreamweaver and relational database

    Hi! All, i am new to Dreamweaver MX and i have a novice question to ask. i have a myql relational database of 3 tables and an Appache server installed on windows XP with Macromedia Dreamweaver MX 2004.Can i create PHP search forms to support my database. my knowledge of PHP is also limited...
  10. 3inen

    similar to UNIX GREP

    Hi! i have a list of terms in file "search.txt" that i am checking against a multiple column containig file "sentence.txt". here is the linux grep command that works grep -f search.txt sentence.txt >matches.txt it prints the lines that match the terms in the first file. and this is what i...
  11. 3inen

    trouble parsing file

    #AG1 4 Jacob Christopher Joseph Ethan #AG2 3 Madison2 Olivia Emma #AG3 2 Samantha Michael Hi! all. i have the above input fie with data grouped as group name and members in that group that are seprated by a tab. i wan to split the above data into 3 separate files (the line with hash and the...
  12. 3inen

    retain the query order-hash not helpful

    Hi! i have a query list in file2 and want to print the data from file1 when there is a match in column 1 of file1. as you can see with the code i have, the query order in the file1 is not retainded b'se i am using hash. can any body help in retaining the query order. thanks in advance...
  13. 3inen

    cat command

    Hi! I have 8700 html files in a folder totaling 8.7 Mb size. I tried using the shell command “cat” to merge them into one file such as combined.html, but I get the response “-bash: /bin/cat: Argument list too long” any perl way of doing this. Thanks in advance
  14. 3inen

    split text to files

    Hi! I have a text of fasta files and am trying to split. these are from 4 sources (> 1:, > 2:, > 3:, and > 4:) separated into blocks by #. i want to make separate files for each block such as file1 file 2 only if that block has information from all the four resources. i tried a piece of code...
  15. 3inen

    Array reformat

    Hi! i have multiple accouts with account number (right now upto 3 digits) in coulmn 1 and different entries separated by single space and ending with the .ca1 the number of entries differ for each account and i dont know before hand how many there would be per account. i want to change the...
  16. 3inen

    trouble with RegExp script

    Hi! Guys Could you help me straighten this script? Thanks in advance the script i have sofar.... #!/usr/bin/perl -w open(DATA,"<in.txt") || die("Missing File"); while ($inc = <DATA>) { @header = ($inc =~ /^#.*/g); ($val) = ($inc =~ /([ABC] GO:.*)/); foreach $io (@header) { print...

Part and Inventory Search

Back
Top