repo.or.cz
/
GalaxyCodeBases.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
new file: cell2loc.py
[GalaxyCodeBases.git]
/
perl
/
etc
/
WoodyMiaoLin
/
Tiger
/
sort.pl
blob
ddbbdc65ade2a3ab4ff5d0a5b21ef49fa7bd4d42
1
#!/usr/bin/perl
2
use
strict
;
3
use
warnings
;
4
5
my
%align
;
6
while
(<>) {
7
my
@a
=
split
/\t/
;
8
$align
{
$a
[
1
]}{
$a
[
6
]}{
$a
[
8
]} =
$_
;
9
}
10
11
foreach
my
$c
(
sort keys
%align
) {
12
foreach
my
$d
(
sort
{
$a
<=>
$b
}
keys
%{
$align
{
$c
}}) {
13
foreach
my
$e
(
sort
{
$a
<=>
$b
}
keys
%{
$align
{
$c
}{
$d
}}) {
14
print
$align
{
$c
}{
$d
}{
$e
};
15
}
16
}
17
}