I want to find the different column numbers among rows in a file. For example:
A001 a b c d e ... N
A002 a b c d e ... N
A003 a b c d e ... N+1
A004 a b c d e ... N
A005 a b c d e ... N+2
:
:
For most of the lines I will have N columns (say 1000 rows) in each line except the line 3... (5 Replies)
Hello,
I've tried searching the forum for an answer to my question, but without any luck...
I have a datafile looking simplified as follows:
01 02 03 04 05 06
07 08 09 10 11 12
13 14 15 16 17 18
19 20 21 22 23 24
I want to reverse it by rearranging all the numbers from last to... (16 Replies)
I have to find the number of rows in a file and delete those many rows in another file.
For example, if I have 3 rows in a file A, i have to delete first 3 rows in anothe file B,
I have the code, it works as standalone, when I merge this with m application (c with unix), it doesnt work.
... (2 Replies)
Can I insert rows based on line numbers. Say If I need to insert 1 or more rows in a file from line number 10. Can I do that in UNIX
I have a file something like
A
B
C
D
E
F
After row C, I wanted to add 2 records as X and Y. I have the line number after C as my reference. Can I... (2 Replies)
Hello,
I have a column where there are values from 1 to 150.
I want to get the frequency of values in the following ranges:
1-5
6-10
11-15
....
....
....
146-150
How can I do this in a for loop?
Thanks,
Guss (1 Reply)
I have a tab delimited text file that looks like the following:
ERBB3 0.00097
IL31RA 0.000972
SETD5 0.000972
MCART1 0.000973
CENPJ 0.000973
FNDC6 0.000974
I want to assign a number to each row based on the value in the last column (in the order of increasing value so that the first row... (3 Replies)
I have a tab-delimited text file where the second column contains in increasing order and includes negative and positive numbers.
I want to assign ranks to the rows based on the value of the second column. The tricky part is that the row where the second column is "0", will be assigned "0", the... (3 Replies)
Hi all,
I am trying to analyze my data, and I will need your experience.
I have some files with the below format:
res1 = TYR res2 = ASN
res1 = ASP res2 = SER
res1 = TYR res2 = ASN
res1 = THR res2 = LYS
res1 = THR res2 = TYR
etc (many lines)
I am... (3 Replies)
data file contains
failed=24
error=23
error=163
failed=36
error=903
i need to get a total count of each value above. i'm looking for the most efficient method to do this as the datafile i provided is just a sample. the actual data can be several hundred thousands of lines.
so from... (3 Replies)
Discussion started by: SkySmart
3 Replies
LEARN ABOUT DEBIAN
gtk2::treestore
Gtk2::TreeStore(3pm) User Contributed Perl Documentation Gtk2::TreeStore(3pm)NAME
Gtk2::TreeStore - wrapper for GtkTreeStore
HIERARCHY
Glib::Object
+----Gtk2::TreeStore
INTERFACES
Gtk2::TreeModel
Gtk2::TreeDragSource
Gtk2::TreeDragDest
Gtk2::TreeSortable
Gtk2::Buildable
METHODS
treestore = Gtk2::TreeStore->new (...)
o ... (list) of strings, package names
treeiter = $tree_store->append ($parent)
o $parent (Gtk2::TreeIter or undef)
$tree_store->clear
$tree_store->set_column_types (...)
o ... (list) of strings, package names
$tree_store->set ($iter, $col1, $val1, ...)
o $iter (Gtk2::TreeIter)
o $col1 (integer) the first column number
o $val1 (scalar) the first value
o ... (list) pairs of columns and values
treeiter = $tree_store->insert ($parent, $position)
o $parent (Gtk2::TreeIter or undef)
o $position (integer)
treeiter = $tree_store->insert_after ($parent, $sibling)
o $parent (Gtk2::TreeIter or undef)
o $sibling (Gtk2::TreeIter or undef)
treeiter = $tree_store->insert_before ($parent, $sibling)
o $parent (Gtk2::TreeIter or undef)
o $sibling (Gtk2::TreeIter or undef)
treeiter = $tree_store->insert_with_values ($parent, $position, ...)
o $parent (Gtk2::TreeIter or undef)
o $position (integer) position to insert the new row
o ... (list) pairs of column numbers and values
Like doing insert followed by set, except that insert_with_values emits only the row-inserted signal, rather than row-inserted, row-
changed, and, if the store is sorted, rows-reordered as in the multiple-operation case. Since emitting the rows-reordered signal
repeatedly can affect the performance of the program, insert_with_values should generally be preferred when inserting rows in a sorted tree
store.
Since: gtk+ 2.10
boolean = $tree_store->is_ancestor ($iter, $descendant)
o $iter (Gtk2::TreeIter)
o $descendant (Gtk2::TreeIter)
integer = $tree_store->iter_depth ($iter)
o $iter (Gtk2::TreeIter)
boolean = $tree_store->iter_is_valid ($iter)
o $iter (Gtk2::TreeIter)
Since: gtk+ 2.2
$tree_store->move_after ($iter, $position)
o $iter (Gtk2::TreeIter)
o $position (Gtk2::TreeIter or undef)
Since: gtk+ 2.2
$tree_store->move_before ($iter, $position)
o $iter (Gtk2::TreeIter)
o $position (Gtk2::TreeIter or undef)
Since: gtk+ 2.2
treeiter = $tree_store->prepend ($parent)
o $parent (Gtk2::TreeIter or undef)
boolean = $tree_store->remove ($iter)
o $iter (Gtk2::TreeIter)
The return is always a boolean in the style of Gtk 2.2.x and up, even when running on Gtk 2.0.x.
$tree_store->reorder ($parent, ...)
o $parent (Gtk2::TreeIter or undef)
o ... (list) of integer's, the new_order
Since: gtk+ 2.2
$tree_store->swap ($a, $b)
o $a (Gtk2::TreeIter)
o $b (Gtk2::TreeIter)
Since: gtk+ 2.2
$tree_store->set_value ($iter, $col1, $val1, ...)
o $iter (Gtk2::TreeIter)
o $col1 (integer) the first column number
o $val1 (scalar) the first value
o ... (list) pairs of columns and values
Alias for Gtk2::TreeStore::set().
SEE ALSO
Gtk2, Glib::Object
COPYRIGHT
Copyright (C) 2003-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.
perl v5.14.2 2012-05-27 Gtk2::TreeStore(3pm)