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
modified: Makefile
[GalaxyCodeBases.git]
/
perl
/
etc
/
WoodyMiaoLin
/
PbeBefore2015
/
addSampleInfo.pl
blob
9018ace3d1e384ed2333be38fd4cc917383c555f
1
#!/usr/bin/perl
2
use
strict
;
3
use
warnings
;
4
5
open
I1
,
"<"
,
"Sample_Info.txt"
;
6
open
I2
,
"<"
,
"Origin_STR_SNP.txt"
;
7
open
O
,
">"
,
"STR_gt_info.txt"
;
8
9
my
%info
;
10
while
(<
I1
>) {
11
s/\r\n$//
;
12
my
@a
=
split
/\t/
;
13
$info
{
$a
[
0
]} =
$_
;
14
}
15
close
I1
;
16
17
while
(<
I2
>) {
18
s/\r\n$//
;
19
my
@a
=
split
/\t/
;
20
print
O
$_
,
"
\t
"
,
$info
{
$a
[
0
]},
"
\n
"
;
21
}
22
close
I1
;
23
close
I2
;
24
close
O
;