Skip to content

Commit 9de5841

Browse files
print CRAM file in 1st column
1 parent 198806e commit 9de5841

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

exampleCRAM.pl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
$ftp->message();
4242

4343
# print header
44-
print "study\tassembly\tsubgroup\tcramfile\tdescription\n";
44+
print "cramfile\tstudy\tassembly\tsubgroup\tdescription\n";
4545

4646
# stop if test only
4747
if($assembly_name eq 'test'){
@@ -56,7 +56,10 @@
5656
my @contents = $ftp->ls();
5757

5858
# skip other assemblies
59-
next if(!grep(/^$assembly_name$/, @contents));
59+
if(!grep(/^$assembly_name$/, @contents)){
60+
$ftp->cdup();
61+
next;
62+
}
6063

6164
# get description from hub.txt
6265
$descr = 'NA';
@@ -89,7 +92,7 @@
8992
$cramfile = $1;
9093

9194
# print this CRAM file
92-
print "$study\t$file\t$subgroup\t$cramfile\t$descr\n";
95+
print "$cramfile\t$study\t$file\t$subgroup\t$descr\n";
9396
}
9497
}
9598
close(HUB);

0 commit comments

Comments
 (0)