Skip to content
Snippets Groups Projects
Commit fae3fb83 authored by tjc's avatar tjc
Browse files

use port 22140 for mfetch

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@5745 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 5ef6dfd7
No related branches found
No related tags found
No related merge requests found
......@@ -553,11 +553,10 @@ public class DataCollectionPane extends JScrollPane
* @param ortholog true if ortholog is selected.
*
*/
protected static void getzCall(HitInfo hit, boolean ortholog)
private static void getzCall(HitInfo hit, boolean ortholog)
{
String env[] = { "PATH=/usr/local/pubseq/bin/" };
final String env[] = { "PATH=/usr/local/pubseq/bin/" };
File fmfetch = new File("/nfs/disk100/pubseq/bin/mfetch");
if(hit.getOrganism() == null ||
hit.getDescription() == null)
{
......@@ -566,13 +565,13 @@ public class DataCollectionPane extends JScrollPane
if(FastaTextPane.isRemoteMfetch())
{
String cmd =
"mfetch -f \"org des gen\" -d uniprot -i \"acc:"+hit.getID()+"\"" ;
"mfetch -p 22140 -f \"org des gen\" -d uniprot -i \"acc:"+hit.getID()+"\"" ;
uk.ac.sanger.artemis.j2ssh.SshPSUClient ssh =
new uk.ac.sanger.artemis.j2ssh.SshPSUClient(cmd);
ssh.run();
res = ssh.getStdOut();
}
else if(!fmfetch.exists())
else if(!FastaTextPane.getMfetchExecutable().exists())
{
try
{
......@@ -603,7 +602,7 @@ public class DataCollectionPane extends JScrollPane
}
else
{
String cmd[] = { "mfetch", "-f", "org des gen",
String cmd[] = { "mfetch", "-p", "22140", "-f", "org des gen",
"-d", "uniprot", "-i", "acc:"+hit.getID() };
ExternalApplication app = new ExternalApplication(cmd,
......@@ -642,7 +641,7 @@ public class DataCollectionPane extends JScrollPane
{
File fgetz = new File("/usr/local/pubseq/bin/getz");
String res = FastaTextPane.getUniprotLinkToDatabase(fgetz,
fmfetch, hit, env, "EMBL");
FastaTextPane.getMfetchExecutable(), hit, env, "EMBL");
int ind1 = res.indexOf("ID ");
if(ind1 > -1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment