Search Results

Search: Posts Made By: linseyr
1,822
Posted By linseyr
The other version of rdrtx1 since I was looking...
The other version of rdrtx1 since I was looking for the region between the zeros which contains a 4 in the 4th column.

His output is exactly what I meant.

Sorry for the misunderstanding.
1,822
Posted By linseyr
Thanks Bartus11! Because Im new with this, I...
Thanks Bartus11!

Because Im new with this, I would like to know what the code of rdrtx1 does since that one actually does something different.

Could somebody explains his code?

Thanks1
1,822
Posted By linseyr
Hi, Thanks so much! That works exactly how it...
Hi, Thanks so much! That works exactly how it should. Could you explain your code?
1,822
Posted By linseyr
Region between lines
How can I find the regions between specific lines?

I have a file which contains lines like this:

chr1 0 17388 0
chr1 17388 17444 1
chr1 17444 17599 2
chr1 17599 17601 1 ...
1,003
Posted By linseyr
How to find similar values in different files
Hello,

I have 4 files like this:

file1:
cg24163616 15 297
cg09335911 123 297
cg13515808 565 776
cg12242345 499 705
cg22905282 225 427
cg16674860 286 ...
2,095
Posted By linseyr
I wanted to get the average of two columns and...
I wanted to get the average of two columns and compare that average to a column in another file. I have the average in column 2 in in column 1 the chromosome number. If column 1 is the same for both...
2,095
Posted By linseyr
Compare two tab-delimiter files
Hi,

I have two files like:

file1

chr1 40
chr1 50
chr2 10
chr2 60

file2

chr1 30
chr1 50
chr2 15
chr2 20

and want to get the difference of column...
1,480
Posted By linseyr
Get mean of two columns
Hi,

I have a file like this.

chr begin end
1 10 20
2 30 35

and want to create an extra column "middle" which contains the middle value of the 2nd and...
1,199
Posted By linseyr
Yes but thats not the problem. If I run the...
Yes but thats not the problem.

If I run the following loop it does everything I want:

for i in 148 162 171 174 175
do
awk '/^chr/{cnt+=$4; num+=1} END{echo $i"Navg="(cnt/num)}'...
1,199
Posted By linseyr
open files with multiple indexes
Hi,

I want to work with multiple files which all contain 2 numbers.
I tried to make a nested for loop but for some reason it doesn't recognize the $j as a number. The output is cannot open file...
2,567
Posted By linseyr
There are 146 lines below the header. Sorry its...
There are 146 lines below the header. Sorry its not clear.
The lines from the counts files are created from an other file which contains 6,000,000 lines.
This file contains 6,000,000 sequences of...
2,567
Posted By linseyr
for some reason the enter is missing in the last...
for some reason the enter is missing in the last post.
Correct is:
------A=1,B=1--------
0,2,1,2,3,4 etc...

Please use code tags (https://www.unix.com/misc.php?do=bbcode&#code) when posting...
2,567
Posted By linseyr
Sorry I have a biology background, but need to...
Sorry I have a biology background, but need to program for a project now, so Im totally new with this..
But my input are multiple files like this:

file 1:
--------- A=1, B=1 --------...
2,567
Posted By linseyr
sum numbers of multiple files
Hi,

I want to count the number of occurrences of numbers from a file of 6,000,000 lines. Because its too large, I decided to split the counts up in multiple files. So I have files of the counts of...
Showing results 1 to 14 of 14

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