Skip to content
Snippets Groups Projects
Commit d80b16f1 authored by Brandi Cantarel's avatar Brandi Cantarel
Browse files

Merge branch 'master' of git.biohpc.swmed.edu:BICF/Astrocyte/process_scripts

parents 275e5208 0f5e4dca
Branches
No related merge requests found
...@@ -15,7 +15,7 @@ while (my $line = <SYM>) { ...@@ -15,7 +15,7 @@ while (my $line = <SYM>) {
chomp($line); chomp($line);
my ($chrom,$start,$end,$ensembl,$symbol,$type) = split(/\t/,$line); my ($chrom,$start,$end,$ensembl,$symbol,$type) = split(/\t/,$line);
$ensembl = (split(/\./,$ensembl))[0]; $ensembl = (split(/\./,$ensembl))[0];
$names{$symbol} = {ensembl=>$ensembl,type=>$type}; $names{$ensembl} = {symbol=>$symbol,type=>$type};
} }
my @files = @ARGV; my @files = @ARGV;
...@@ -32,7 +32,8 @@ foreach $file (@files) { ...@@ -32,7 +32,8 @@ foreach $file (@files) {
while (my $line = <IN>) { while (my $line = <IN>) {
chomp($line); chomp($line);
my ($ensid,$gene,$chr,$strand,$start,$end,$cov,$fpkm,$tmp) = split(/\t/,$line); my ($ensid,$gene,$chr,$strand,$start,$end,$cov,$fpkm,$tmp) = split(/\t/,$line);
$cts{$gene}{$sample} = $fpkm; my ($ens,$version) = split(/\./,$ensid);
$cts{$ens}{$sample} = $fpkm;
} }
close IN; close IN;
} }
...@@ -57,7 +58,7 @@ foreach $gene (keys %cts) { ...@@ -57,7 +58,7 @@ foreach $gene (keys %cts) {
#next unless ($sortct[0] >= 1); #next unless ($sortct[0] >= 1);
next if ($names{$gene}{type} eq 'rRNA'); next if ($names{$gene}{type} eq 'rRNA');
next if ($exc{$gene}); next if ($exc{$gene});
print OUT join("\t",$names{$gene}{ensembl},$gene, print OUT join("\t",$gene,$names{$gene}{symbol},
$names{$gene}{type},@line),"\n"; $names{$gene}{type},@line),"\n";
} }
close OUT; close OUT;
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment