https://github.com/arjunrajlaboratory/RajLabSeqTools
Revision d64c7115b852e3a269ed9e3c069a3485b34bbea5 authored by Eric Sanford on 10 October 2019, 18:04:36 UTC, committed by Eric Sanford on 10 October 2019, 18:04:36 UTC
1 parent c5b88eb
Tip revision: d64c7115b852e3a269ed9e3c069a3485b34bbea5 authored by Eric Sanford on 10 October 2019, 18:04:36 UTC
added location of hg19 reference files as comments to setEnvironmentVariables.sh script
added location of hg19 reference files as comments to setEnvironmentVariables.sh script
Tip revision: d64c711
meltHTSeqData.pl
#!/usr/bin/perl
# run from within repo directory.
# takes relative paths from the repo directory as arguments.
use File::Spec;
print "experiment\tsampleID\tgene_id\tcounts\n";
while (@ARGV) {
$fullPath = shift @ARGV;
($volume,$directories,$file) = File::Spec->splitpath($fullPath);
@dirs = File::Spec->splitdir($directories);
$experiment = shift @dirs;
shift @dirs;
$sampleID = shift @dirs;
open FILE, "< $fullPath";
for (<FILE>) {
print "$experiment\t$sampleID\t";
print;
}
}
Computing file changes ...