Hello Everyone!
I am new on this forum and this is my first post. I wish to apologize for my, not canonical, English.
I would like to solve this problem but I have no clue of how do it!I will be grateful if someone could help me!
I have a table like this:
Each row is a gene and each column a transcription factor.The number in the intersection means if the TF there is, there is not, is upregulated, is downregulated.
Now what I would like to obtain is something like that:
Adding at each gene the TF and the relative number!I get crazy!
I really hope that someone could help me!
Thanks a lot
Giuliano
Last edited by joeyg; 11-29-2012 at 02:29 PM..
Reason: corrected spelling
I have a text file in unix with a layout like this
Column 1 - 1-12
Column 2 - 13-39
Column 3 - 40-58
Column 4 - 59-85
Column 5 - 86-120
Columbn 6 - 121-131
The file also has a header on the first 6 lines of each page. Each page is 51 lines long. So I want to remove the header from each... (30 Replies)
Hi All,
I am new to UNIX can you please help me to sort a file with different columns
my file looks like this
$ cat gaut.txt
UID PID PPID PGID SID C STIME TTY TIME CMD
liveuser 3008 2892 3008 3008 0 11:58 ? 00:00:00 gnome-session
liveuser 3019 1 ... (8 Replies)
Hi,
I found the following awk script to transpose multiple (3) columns to multiple rows:
#===
BEGIN {FS=","}
{
for (i=1;i<=NF;i++)
{
arr=$i;
if(nf<= NF)
nf=NF;
}
nr=NR
}
END {
for(i=1;i<=nf;i++)
{ (8 Replies)
Looking to join three files and then transpose some columns from multiple rows into a single row.
File Info:
FIELD TERMINATED BY '^'
ENCLOSED BY '~'
LINE TERMINATED BY '\r\n'
FIRST FILE (FOOD_DES.txt)
~01001~^~0100~^~Butter, salted~^~BUTTER,WITH... (2 Replies)
Hi All,
I'm looking for a script which can transpose field names from column headers to values in one column.
for example, the input is:
IDa;IDb;IDc;PARAM1;PARAM2;PARAM3;
a;b;c;p1val;p2val;p3val;
d;e;f;p4val;p5val;p6val;
g;h;i;p7val;p8val;p9val;
into the output like this:
... (6 Replies)
Hi
I have 5 columns like this
a b c d e
f g h i j
k l m n o
From 2nd column till the 5th column of every record, I would like to transpose them as rows, so my output file contains only one row
a
b
c
d
e
f
g
h
i
j (9 Replies)
hello gurus,
Somebody must have done this before, I couldn't find anything. Please redirect me if this was solved before, and if not please help.
To the problem now, I have multiple csv files (about 1000) which I need to concatenate by column header. The final file should have a superset... (4 Replies)
Gents,
Transpose from row to column, taking in consideration the first column, which contends the date.
Input file
72918,111000009,111000009,111000009,111000009,111000009,111000009,111000009,111000009,111000009
72918,2356,2357,2358,2359,2360,2361,2362,2363,2364
72918,0,0,0,0,0,0,0,0,0... (12 Replies)
Discussion started by: jiam912
12 Replies
LEARN ABOUT DEBIAN
pgasetintegerinitrange
PGASetIntegerInitRange(2) PGAPack PGASetIntegerInitRange(2)NAME
PGASetIntegerInitRange - sets a flag to tell the initialization routines to set each integer-valued gene to a value chosen randomly from
the interval given by an upper and lower bound.
DESCRIPTION
No string initialization is done by this call.
INPUT PARAMETERS
ctx - context variable
min - array of lower bounds that define the interval the gene is initialized from
max - array of upper bounds that define the interval the gene is initialized from
OUTPUT PARAMETERS
none
SYNOPSIS
#include "pgapack.h"
void PGASetIntegerInitRange(ctx, min, max)
PGAContext *ctx
int *min
int *max
LOCATION
integer.c
EXAMPLE
Set the initialization routines to select a value for gene i
uniformly randomly from the interval [0,i]. Assumes all strings
are of the same length.
PGAContext *ctx;
int *low, *high, stringlen, i;
:
stringlen = PGAGetStringLength(ctx);
low = (int *) malloc(stringlen*sizeof(int));
high = (int *) malloc(stringlen*sizeof(int));
for(i=0;i<stringlen;i++) {
low[i] = 0;
high[i] = i
}
PGASetIntegerInitRange(ctx, low, high);
05/01/95 PGASetIntegerInitRange(2)