Skip to content

Commit

Permalink
print CRAM file in 1st column
Browse files Browse the repository at this point in the history
  • Loading branch information
brunocontrerasmoreira committed Oct 23, 2020
1 parent 198806e commit 9de5841
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions exampleCRAM.pl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
$ftp->message();

# print header
print "study\tassembly\tsubgroup\tcramfile\tdescription\n";
print "cramfile\tstudy\tassembly\tsubgroup\tdescription\n";

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

# skip other assemblies
next if(!grep(/^$assembly_name$/, @contents));
if(!grep(/^$assembly_name$/, @contents)){
$ftp->cdup();
next;
}

# get description from hub.txt
$descr = 'NA';
Expand Down Expand Up @@ -89,7 +92,7 @@
$cramfile = $1;

# print this CRAM file
print "$study\t$file\t$subgroup\t$cramfile\t$descr\n";
print "$cramfile\t$study\t$file\t$subgroup\t$descr\n";
}
}
close(HUB);
Expand Down

0 comments on commit 9de5841

Please sign in to comment.