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;
}...
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...
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...
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...
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...
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...
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...
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...
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...
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...
#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...
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...
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
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.