Ns126:Calendar/NOTES/2015-4-19
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"); }