Ns126:Calendar/NOTES/2015-4-19

From ZhangLabWiki
Revision as of 07:37, 19 April 2015 by >Shicheng
Jump to navigation Jump to search


uncompress the methylation 450k dataset

#!/usr/bin/perl
use Cwd;
my $dir=getcwd;
chdir $dir;
my @file=glob("*.tar.gz");

foreach my $file(@file){
my ($sample,undef)=split /.tar.gz/,$file;
print "$sample\n";
system("tar xzvf $file");
system("mv -f $dir/$sample/* $dir/");
system("rm -rf $sample");
}