Search Results

Search: Posts Made By: pbluescript
1,182
Posted By pbluescript
Thanks bipinajith. That worked perfectly.
Thanks bipinajith. That worked perfectly.
1,182
Posted By pbluescript
Use a string in one column to get the largest or the smallest of another column
I have data that looks like this:

chr1 mm9_knownGene exon 155747075 155747189 0.000000 + . gene_id "Glul"; transcript_id "uc007daq.1";
chr1 mm9_knownGene...
4,474
Posted By pbluescript
Thanks for the help everyone! All the...
Thanks for the help everyone!

All the options worked except for bipinajith's.
It turns out this was the fastest option:
awk '{p=$2; getline<f} !A[$2=p $2]++' f=file2 file1

It churned through...
4,474
Posted By pbluescript
Merge two columns from two files into one if another column matches
I have two text files that look something like this:

A:B:C 123
D:E:F 234
G:H:I 345
J:K:L 123
M:N:O 456
P:Q:R 567


A:B:C 456
D:E:F 567
G:H:I 678
J:K:L 456
M:N:O 789
P:Q:R 890

I...
2,955
Posted By pbluescript
Thank you! I'm glad it was something so simple.
Thank you! I'm glad it was something so simple.
2,955
Posted By pbluescript
I apologize, I should have been more clear. This...
I apologize, I should have been more clear. This is what I meant when I said "I can add more columns and get more of that first line" in my original post. I'm more concerned about why the first line...
2,955
Posted By pbluescript
awk if statement not printing entire field
I have an input that looks like this:


chr1 mm9_knownGene utr3 3204563 3206102 0 - . gene_id "Xkr4"; transcript_id "uc007aeu.1";
chr1 mm9_knownGene utr3 4280927...
5,760
Posted By pbluescript
You're a wizard. CPU time : 3.88 sec....
You're a wizard.

CPU time : 3.88 sec.
Max Memory : 2 MB
Max Swap : 25 MB
Max Processes : 1
Max Threads : 1

:eek:

This involves...
5,760
Posted By pbluescript
Sure. These were all submitted to an LSF queue,...
Sure. These were all submitted to an LSF queue, and each node has a minimum of 8 cores with 2.8Ghz+ Intel Xeon CPUs and 16GB RAM running RHEL 5.3. Here is some extra info about each job, with the...
5,760
Posted By pbluescript
Thanks for the suggestions everyone. Here's how...
Thanks for the suggestions everyone. Here's how it went.
My original method: 99,640 CPU seconds
hergp's method: 207,613 CPU seconds
alister's awk method: 42,552 CPU seconds

Thanks alister for...
5,760
Posted By pbluescript
Speeding up search and replace in a for loop
Hello,
I am using sed in a for loop to replace text in a 100MB file. I have about 55,000 entries to convert in a csv file with two entries per line. The following script works to search file.txt for...
Showing results 1 to 11 of 11

 
All times are GMT -4. The time now is 03:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy