Search Results

Search: Posts Made By: wolf_blue
1,070
Posted By wolf_blue
creating a new variable from existing data
Hello,
I have the following data set:
TRAIT DOSE
40 0.4
30 0.3
95 1.2
120 1.7
85 1.4
136 1.8
134 1.8
40 0.4
30 0.3
95 1.2
120 1.7
85 1.4...
23,187
Posted By wolf_blue
Sorry to be confused on this one but where do I...
Sorry to be confused on this one but where do I enter my file name? at the end of:
nawk '{a=$5-$4;print $0,a}' infile | sort +5nr | nawk '!x[$1]++' myfile.txt Am I doing this correctly?
Sorry, I'm...
23,187
Posted By wolf_blue
Subtracting values from 2 columns in a file
Hello,
I have a file with 5 columns that looks like this:

A1BG chr19 + 58863335 58866549
A1BG chr19 - 58858171 58864865
A2LD1 chr13 - 101182417 101186056...
1,847
Posted By wolf_blue
when I enter: nawk '!A[$1]++' test.txt ...
when I enter:

nawk '!A[$1]++' test.txt


I get:
A[: Event not found.

When I type the entire code suggested:
I end up with a syntax error.
Thanks.

Please use code tags...
1,847
Posted By wolf_blue
still have duplicates
Thanks.
It works but I realized that there are genes that are in the output file more than once because some isoforms happen to have the same length.
So now I would have to take that file and...
1,847
Posted By wolf_blue
not working
I'm still getting a file with duplicate genes.

when I enter code:
nawk 'NR<2{next}{c=($NF-$(NF-1))}!($1 in A)||(c>m[$1]&&($1 in A)){m[$1]=c;A[$1]=$0 FS m[$1]}END{for(i in A) print A[i]}' yourfile...
1,847
Posted By wolf_blue
clarification please?
thanks! I got the file but could you please explain what these commands are doing? I just used the code for the second command to generate a new file. am I doing it correctly that way? Thanks so much!
1,847
Posted By wolf_blue
help! script to select line with greatest value 2 between columns
Hi,
I’m trying to do something I haven’t done before and I’m struggling with how to even create the command or script.
I have the following space delim file:

gene accession chr chr_st ...
Showing results 1 to 8 of 8

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