Skip to content

Commit

Permalink
Merge pull request #20 from s-andrews/master
Browse files Browse the repository at this point in the history
Fix GEO data lookups
  • Loading branch information
ewels authored Nov 16, 2018
2 parents d7c181b + 6653aa3 commit 233758f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Binary file modified ajax/sra_get_datasets.php
Binary file not shown.
4 changes: 3 additions & 1 deletion ajax/write_bash.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@

// Check the directory exists
if(!is_dir($dir)){
if(!mkdir($dir, 0775)){
$old_umask = umask(0);
if(!mkdir($dir, 0777)){
die("can't create directory $dir");
}
umask($old_umask);
}

// Write file
Expand Down
3 changes: 3 additions & 0 deletions js/datasets.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ $('#sra-links-modal').on('show', function () {
var acc = $(this).text();
file += "ftp://ftp-trace.ncbi.nlm.nih.gov/sra/sra-instant/reads/ByRun/sra/"+acc.substring(0,3)+"/"+acc.substring(0,6)+"/"+acc+"/"+acc+".sra";
var name = $(this).closest('tr').find('.dataset_name').text();
name = name.replace(/[\s:\?\/]+/g,'_');
name = name.replace(/[\(\)]+/g,'');

file += "\t"+name+"_"+acc+".sra <br>\n";
});
$('#sra-links-modal .modal-body pre').html(file);
Expand Down

0 comments on commit 233758f

Please sign in to comment.