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
/
get_fasta_length.pl
blob
3a244a3ca1fb38fbb1cf97627ef41a139e4c3de0
1
#!/usr/bin/env perl
2
use
strict
;
3
use
warnings
;
4
5
my
%length
;
6
while
(<>) {
7
chomp
;
8
s/^>//
;
9
$/=
">"
;
10
my
$seq
= <>;
11
chomp
$seq
;
12
$seq
=~
s/\s//g
;
13
$/=
"
\n
"
;
14
$length
{
$_
} =
length
$seq
;
15
}
16
17
foreach
(
sort keys
%length
) {
18
print
"
$_
\t
$length
{
$_
}
\n
"
;
19
}