Skip to content

Commit

Permalink
Current state of the server
Browse files Browse the repository at this point in the history
  • Loading branch information
ar0ch committed Jul 9, 2019
1 parent 1715a8f commit 0526269
Show file tree
Hide file tree
Showing 141 changed files with 335,669 additions and 330 deletions.
Empty file removed patches/fr.vibriocholera.com
Empty file.
Empty file removed patches/us.vibriocholera.com
Empty file.
Binary file removed t6ss/.DS_Store
Binary file not shown.
58 changes: 58 additions & 0 deletions t6ss/done.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<div class="splash">
<div class="middle">
<h1>T6SS prediction finished</h1>
<p>Scroll down to see results</p>
<hr>
<p>Downloadable results:</p>
<ul style="list-style-type:none;">
<li><a href="genome.fasta">Input genome (noramlized)</a></li>
<li><a href="nucleotides.fna">Nucleotide fasta</a></li>
<li><a href="proteins.faa">Protein fasta</a></li>
<li><a href="log.txt">Analysis log</a></li>
</ul>
<hr>
</div>
<div class="bottomleft">
<p><a href="https://T6SS.Vibriocholera.com" target=_blank style="color: black; text-decoration: none;">T6SS.Vibriocholera.com</a></p>
</div>
</div>


<style>
body, html {
height: 100%
}

.splash {
height: 100%;
position: relative;
color: black;
/* Add a font */
font-family: "Courier New", Courier, monospace;
/* Set the font-size to 25 pixels */
font-size: 25px;
}


/* Position text in the bottom-left corner */
.bottomleft {
position: absolute;
bottom: 0;
left: 16px;
}

/* Position text in the middle */
.middle {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}

/* Style the <hr> element */
hr {
margin: auto;
width: 40%;
}
</style>
2 changes: 1 addition & 1 deletion t6ss/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<footer id="footer">

<div class="alert alert-success">
<strong>To cite : </strong> Chande et al. 2016. Computational characterization of Type VI Secretion Systems in <i>Vibrio cholerae</i> (Manuscript in preparation)<br/>
<strong>To cite : </strong> Crisan C.V. & Chande, A.T., et al. (2019) Analysis of Vibrio cholerae genomes identifies new, active Type VI Secretion System gene clusters</i> (Manuscript in review)<br/>
</div>

</footer>
79 changes: 79 additions & 0 deletions t6ss/gff.pl
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
#!/usr/bin/perl -w
# Aroon Chande
use strict;
use Getopt::Long;
use File::Basename;
use File::Temp;
my ($fasta,$gff,$outdir,$hmmFile,$protFile,$outfile,$prots,@prots,%prots,@gff,%gff,@hits,$predict);
$prots = '';
GetOptions ('fasta=s' => \$fasta, 'gff=s' => \$gff, 'predict=s' => \$predict);
$outdir = dirname($fasta);
open PROT, "$outdir/predictions.faa" or die "Cannot open $outdir/predictions.faa $!\n";
foreach (<PROT>){
$prots .= $_;
}
close PROT;
@prots = split(/\>/,$prots);
shift @prots;
foreach (@prots){
my($desc, undef) = split(/\r?\n/,$_,2);
my @desc = split(/\|/,$desc);
$prots{$desc[0]} = $desc[1];
}
if (!(defined $gff)){$gff = "$outdir/prots.gff";}
open GFF, $gff or die "Cannot open $outdir/prots.gff $!\n";
foreach(<GFF>){
my @cols = split(/\t/,$_);
if ($cols[0] =~ /\#/){next;}
else{
#print "$cols[0]\t$cols[8]\n";
my $base = $cols[0];
my $id = $cols[8];
my @idcols = split(/;/,$id);
($id) = $idcols[0] =~ m/(_\d*)/;
$id = join('',$cols[0],$id);
$gff{$id}{start} = $cols[3];
$gff{$id}{stop} = $cols[4];
$gff{$id}{strand} = $cols[6];
if(defined $prots{$id}){$gff{$id}{gene} = $prots{$id};}
else{$gff{$id}{gene} = "-";}
}
}
#foreach (keys %gff){ print "$_\t$gff{$_}{start}\t$gff{$_}{stop}\t$gff{$_}{strand}\t$gff{$_}{gene}\n" }
no warnings 'uninitialized';
my %files;
my $j = 1;
my $scale;
my $max;
foreach my $key(keys %prots){
if ($prots{$key} =~ /vgrg/){
my ($num) = $key =~ m/(\d*$)/;
$key =~ s/_\d*$//g;
open OUT, ">$outdir/$j.ptt";
print OUT "Location\tStrand\tLength\tPID\tGene\tSynonym\tCode\tCOG\tProduct\n";
for(my $i = -5; $i <6; $i++){
if($num + $i < 1){next;}
else{
my $gffkey = join("_",$key,$num+$i);
if ((defined $gff{$gffkey}) & !(defined $scale)){$scale = $gff{$gffkey}{start}-1;}
$max = $gff{$gffkey}{stop}-$scale if (defined $gff{$gffkey});
print OUT $gff{$gffkey}{start}-$scale,"..",$gff{$gffkey}{stop}-$scale,"\t$gff{$gffkey}{strand}\t",abs($gff{$gffkey}{start}-$gff{$gffkey}{stop}),"\t-\t$gff{$gffkey}{gene}\t-\t-\t-\t-\n" if (defined $gff{$gffkey});
}
}
close OUT;
$files{$j}{max}=$max;
undef $scale;
$j++;
}
}
foreach my $key (keys %files){
print "$key\n";
open IN, "$outdir/$key.ptt";
my @temp = <IN>;
close IN;
open OUT, ">$outdir/$key.ptt";
print OUT "Genome - 1..$files{$key}{max}\n",@temp-1," proteins\n";
print OUT @temp;
close OUT;
}

8 changes: 4 additions & 4 deletions t6ss/header.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="cover">
<div class="navbar">
<div class="navbar">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-ex-collapse">
Expand All @@ -13,7 +13,7 @@
<div class="collapse navbar-collapse" id="navbar-ex-collapse">
<ul class="nav navbar-nav navbar-right">
<li class="active">
<a href="https://vibriocholere.com" onclick="ga('send', 'event', 'home', 'click', 'home');">Home</a>
<a href="https://vibriocholera.com" onclick="ga('send', 'event', 'home', 'click', 'home');">Home</a>
</li>
<li>
<a href="https://git.vcholerae.com/explore/projects" target="_blank" onclick="ga('git.send', 'event', 'git', 'click', 'git');">Git</a>
Expand All @@ -28,6 +28,6 @@
<a href="http://www.hammerlab.biology.gatech.edu/" onclick="ga('send', 'event', 'hammer', 'click', 'hammer');"><i class="fa fa-flask fa-fw fa-lg text-success"></i>Hammer Lab</a>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
Loading

0 comments on commit 0526269

Please sign in to comment.