Search Results

Search: Posts Made By: yuejian
1,175
Posted By yuejian
This is not homework or assignment. I am doing...
This is not homework or assignment. I am doing some accounting work (many transaction) to report the highest balance on the banking account and the bank statement didn't provide the cumulative...
1,175
Posted By yuejian
How to find out the maximum cumulative value?
I have a file has thousands of rows and each row has a number and the number can be positive or negative. I want to do the cumulative sum from the first row. How can I find out the maximum cumulative...
1,197
Posted By yuejian
Output for matching questions
Hi, I have two files A and B.
file_Agga-mir-181b-1
gga-mir-181b-2
gga-mir-199-1
gga-mir-203
gga-mir-204-1
gga-mir-205a
gga-mir-206
gga-mir-214
gga-mir-218-1
gga-mir-365-2
gga-mir-454...
804
Posted By yuejian
Count special symbols between each unit
Can anybody help me figure this out? Thank you in advance.
I have a input file. It shows like this:
Query= random content
random content
> random content
random content
> random content
>...
1,208
Posted By yuejian
Thank you very much RudiC. Actually I am an...
Thank you very much RudiC. Actually I am an embryology biologist and I don't have any computer science background and I am a totally rookie. I have to deal with some very large data set from the...
1,208
Posted By yuejian
Extract columns based on the first line of each column
Sorry to bother you guys again. I have a file1 with multiple columns like this:gga_miR_100 gga_miR_300 gga_miR_3500 gga_miR_4600 gga_miR_5600 gga_miR_30 gga_miR_500
kj rwg ghhh jy jyu we vf...
1,551
Posted By yuejian
Thank you very much. I just adjusted it to...
Thank you very much. I just adjusted it to accommodate my column numbers and it works perfectly. I also tested n with various numbers and they are all good. Thank you RudiC.
1,551
Posted By yuejian
Hi RudiC, since for each column has been sorted,...
Hi RudiC, since for each column has been sorted, I initially naively thought just using the head or sed command to extract the top lines with the top "n" lowest values. Then I realized that a value...
1,551
Posted By yuejian
Sorry, I mean n=3, I just correct it in the...
Sorry, I mean n=3, I just correct it in the original thread.
1,551
Posted By yuejian
Extract strings based on the value
I have a file with multiple columns (in this case, the file has 3 columns): NM_001006304 (-33.7) XM_418228 (-38.4) JN880447 (-33.7)
CR387600 (-33.7) CR524203 (-36.3) GALGA_6AKII_KRT75 (-33.7)...
1,098
Posted By yuejian
Thanks RudiC, your script is perfectly matching...
Thanks RudiC, your script is perfectly matching but doesn't rank them, I just simply added the sort command after that. Thank you very much.
awk 'FNR==NR {T[$0];next}
...
1,098
Posted By yuejian
Match and rank question
I actually posted a similar question before but my expression probably lead the helper here frustrated. I also tried to figure it out by myself but failed. So I rephrase my question again and...
754
Posted By yuejian
Thanks Aia, it works perfectly. Also thanks for...
Thanks Aia, it works perfectly. Also thanks for point my mistake and I will be more careful when I post my question.
754
Posted By yuejian
How to average value if they have the same annotation names?
Hi I have a file like this
input_fileCR387793 -0.8
CR387793 -5.5
CR387794 -5.3
CR387795 -0.9
AR388755 -3.0
AR388755 3.8
AR388755 4.5
Each line has annotation name and its correlated value....
2,425
Posted By yuejian
Akshay, I tried this one. It didn't rank based on...
Akshay, I tried this one. It didn't rank based on the mfe value and some lines missing mfe value. Also, in the output file, the "GALGA25_FK1" value is "-158.8" which is the sum of the partially match...
2,425
Posted By yuejian
Hi Singh, I tried your code. It only ranks...
Hi Singh,

I tried your code. It only ranks the lines start with "GALGA" in file2. Actually all lines in file2 can have the corresponding mfe value in file1. Could you also take a look again? Thank...
2,425
Posted By yuejian
Hi Akshay, all keys in file2 should have the...
Hi Akshay, all keys in file2 should have the match mfe value in file1. your script only match the lines start with "GALGA"in file2.
2,425
Posted By yuejian
Hi Akshay, thanks for your reply, I ran your code...
Hi Akshay, thanks for your reply, I ran your code but some line result lack of the value and show "0.0" in the parenthesis. Could you take a look? thank you.
2,425
Posted By yuejian
Exact match question
Hi guys, I am using Centos 6.3. Actually I posted similar question but I still have some minor problem need be fixed. I have two files,
file1:target: gi|57529786|ref|NM_001006513.1| mfe: -31.4...
1,404
Posted By yuejian
Thank you guys, you saved my life.
Thank you guys, you saved my life.
1,404
Posted By yuejian
Extract the same lines from the two files
I used to use this script to extract the same lines from two files:
grep -f file1 file2 > outputfile
now I have file1 AB029895
AF208401
AF309648
AF526378
AJ444445
AJ720950
AJ851546
AY568629...
1,316
Posted By yuejian
Thank you so much, it works perfectly and no...
Thank you so much, it works perfectly and no error.
1,316
Posted By yuejian
Adding the file name as the first line of the file
I have a lot of files under a folder and each file has a different name. I want to add each file's name as the first line of each file. How can I do this? I was trying to use this script for file in...
1,743
Posted By yuejian
Hi Don, I feel very sorry make you...
Hi Don,

I feel very sorry make you frustrated. I just want to gave you guys simpler example files to deal with it and I thought it will apply to my own data, that's why I gave you the first...
1,743
Posted By yuejian
Hi RudiC, I tried with my own file1 and file2,...
Hi RudiC, I tried with my own file1 and file2, and the output file3 doesn't follow the mfe value order. Here is my own files.
file1:target: gi|45383869|ref|NM_204120.1| mfe: -30.0 kcal/mol p-value:...
Showing results 1 to 25 of 29

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