Skip to content

Commit

Permalink
Merge pull request #6476 from jmchilton/sra_special_case
Browse files Browse the repository at this point in the history
Rulebuilder: Special case auto URL schema detection for SRA inputs.
  • Loading branch information
dannon committed Jul 16, 2018
2 parents a72954d + 9356ff8 commit 6da93fc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion client/galaxy/scripts/components/RuleCollectionBuilder.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1705,7 +1705,13 @@ export default {
const urlColumn = mappingAsDict.url.columns[0];
let url = data[dataIndex][urlColumn];
if (url.indexOf("://") == -1) {
url = "http://" + url;
// special case columns containing SRA links. EBI serves these a lot
// faster over FTP.
if(url.indexOf("ftp.sra.") !== -1) {
url = "ftp://" + url;
} else {
url = "http://" + url;
}
}
res["url"] = url;
res["src"] = "url";
Expand Down

0 comments on commit 6da93fc

Please sign in to comment.