Search Results

Search: Posts Made By: dietmar13
1,025
Posted By dietmar13
@wisecracker
dear wisecracker,

as said, i have awk experience but i have problems in programming logic for my problem.

one very rude solution would probably be (and i will try to program it now):
...
1,025
Posted By dietmar13
@Akshay
dear Akshay,

to be honest - not too much. as said - i am a littlebit lost...

i don't want that other people think for me, but that people with similar problems share their thoughts and...
1,025
Posted By dietmar13
More a logic than a programming question
hello,

I'm a littlebit lost...

i have a table of single names and combination of two names and i want a table of ALL single names with ALL combinations (also the indirect ones).

- - - in...
1,289
Posted By dietmar13
nearly working!
Scutinizers work's nearly perfect. only the ">" is missing on all renamed headers.

as i don't understand the solution at all, i can't add it!

what means the 1 at the end - to print it?

...
1,289
Posted By dietmar13
Help with awk program
i have two files,
one looks like this (file1):
novelMiR_892 novelMiR_891,
novelMiR_852
novelMiR_893
novelMiR_1661
novelMiR_854
novelMiR_1210
novelMiR_1251 ...
2,521
Posted By dietmar13
problem solved
@alister: works, but not very elegant

@tukuyomi, rdrtx1: n can be >>> 4
i need the first two (1,2) and the last two (n-1,n)...

@rudiC:
elegant, modulo! the order is no problem

@Subbeh:...
2,521
Posted By dietmar13
Awk: for i in 1,2,n-1,n
hello,

a fast question:

how can i loop over four numbers in awk like in bash:

n ist a number >3

n=4
for i in 1 2 $((n-1)) $n
do .. donei tried:

awk: for (i in 1 2 n-1 n)
with all...
1,430
Posted By dietmar13
asorti from gawk
thanks again,

i searched a little bit and found the asorti function from gawk...

i only have to sort the array F and loop over this sorted array:

n = asort(F, G)


gawk '
BEGIN {...
1,430
Posted By dietmar13
thank's scrutinizer
I always forget, you take the input too literally. ;-)

of course is my real table much, much larger and has not only A,B,C,D.

some things i do not understand:
what means print x,h (x is not...
1,430
Posted By dietmar13
Weighted adjacency list to adjacency matrix
dear awk gurus,

i would need a fast (therefore) awk solution for the reformation of an uncomplete weighted adjacency list to a complete sorted adjacency matrix.

example (FS=OFS=,):
...
2,982
Posted By dietmar13
@Scrutinizer OS: Scientific Linux 6.3 (= Red...
@Scrutinizer
OS: Scientific Linux 6.3 (= Red Hat Enterprise Linux 6.3)
shell: GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu)


@DGPicket
do you mean that htseq knows that - is a...
2,982
Posted By dietmar13
Problem with process substitution
i have tried process substitution, but run in some problems.

this works:

samtools view -h $SAMdir/$b.bam | htseq-count -m union -s no -q -t exon -i gene_id - $gtf > $b.count &


but this...
2,864
Posted By dietmar13
thank you jim, i will use your solution... ...
thank you jim,

i will use your solution...



that's too complicated for me...

dietmar
2,864
Posted By dietmar13
Loop over array in batches
given an array of filenames files=(*) how can i loop over these in batches of four, or even better, work always with four files simultaneously.

i want do something with these files, always four...
2,182
Posted By dietmar13
@Don Cragun and @RudiC The task is solved,...
@Don Cragun and @RudiC

The task is solved, my downstream application works and I have learned a lot about programing awk...

thank you!

dietmar
2,182
Posted By dietmar13
dear don cragun, i use the table for another...
dear don cragun,

i use the table for another program, therefore i don't need a pretty print. I need tab's.

and there i found another little problem,
after each line there seems to be a tab,...
2,182
Posted By dietmar13
RudiC, thank you - now it works perfect. ...
RudiC,

thank you - now it works perfect.

what newline does in awk is new for me...
2,182
Posted By dietmar13
thank you RudiC and Don Cragun
names are of any length
output shoul be tab delimited
there are up to millions names
(I should have clarified this)

I think RudiC's script is nearly perfect. Only the space delimite has to be...
2,182
Posted By dietmar13
Awk: conversion of matrix formats
hello,

i would need a fast awk script for conversion of network formats (from 'sif' to 'adjacency' format):

sif (pp means only: protein-protein interaction):
A pp B
A pp C
B pp D
D pp E
...
1,720
Posted By dietmar13
thank you rudiC
I do not understand you approach completely, but the while loop is run every new value from file2 (?), and as I have hundreds of millions of values, this approach has to be slower than the array...
1,720
Posted By dietmar13
thank you both, but now i run into some other...
thank you both, but now i run into some other problems:

firstly one question, user8:
'NR==FNR{p[$1]=$2;next}
eats the first file and proceeds after this with the second one?

my problem: i...
1,720
Posted By dietmar13
Complex awk problem
hello,

i have a complex awk problem...

i have two tables, one with a value (0 to 1) and it's corresponding p-value, like this:

1. table:
______________________________
value p-value...
Showing results 1 to 22 of 22

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