if (siftsFile.exists())
{
// The line below is required for unit testing... don't comment it out!!!
- jalview.bin.Console.outPrintln(">>> SIFTS File already downloaded for " + pdbId);
+ jalview.bin.Console
+ .outPrintln(">>> SIFTS File already downloaded for " + pdbId);
if (isFileOlderThanThreshold(siftsFile,
SiftsSettings.getCacheThresholdInDays()))
}
}
- // jalview.bin.Console.outPrintln(">> Download ftp url : " + siftsFileFTPURL);
+ // jalview.bin.Console.outPrintln(">> Download ftp url : " +
+ // siftsFileFTPURL);
// long now = System.currentTimeMillis();
URL url = new URL(siftsFileFTPURL);
URLConnection conn = url.openConnection();
}
outputStream.close();
inputStream.close();
- // jalview.bin.Console.outPrintln(">>> File downloaded : " + downloadedSiftsFile
+ // jalview.bin.Console.outPrintln(">>> File downloaded : " +
+ // downloadedSiftsFile
// + " took " + (System.currentTimeMillis() - now) + "ms");
return downloadTo;
}
public static String getDownloadUrlFor(String siftFile)
{
- String durl = SIFTS_SPLIT_FTP_BASE_URL+siftFile.substring(1, 3)+"/"+siftFile;
- Console.trace("SIFTS URL for "+siftFile+" is "+durl);
+ String durl = SIFTS_SPLIT_FTP_BASE_URL + siftFile.substring(1, 3) + "/"
+ + siftFile;
+ Console.trace("SIFTS URL for " + siftFile + " is " + durl);
return durl;
-
+
}
/**
seq = seq.getDatasetSequence();
}
structId = (chain == null) ? pdbId : pdbId + "|" + chain;
- jalview.bin.Console.outPrintln("Getting SIFTS mapping for " + structId + ": seq "
- + seq.getName());
+ jalview.bin.Console.outPrintln("Getting SIFTS mapping for " + structId
+ + ": seq " + seq.getName());
final StringBuilder mappingDetails = new StringBuilder(128);
PrintStream ps = new PrintStream(System.out)
if (mapping.isEmpty())
{
- throw new SiftsException("SIFTS mapping failed for "+entityId+" and "+seq.getName());
+ throw new SiftsException("SIFTS mapping failed for " + entityId
+ + " and " + seq.getName());
}
// also construct a mapping object between the seq-coord sys and the PDB
// seq's coord sys
int firstPDBResNum = UNASSIGNED;
for (Segment segment : segments)
{
- // jalview.bin.Console.outPrintln("Mapping segments : " + segment.getSegId() + "\\"s
+ // jalview.bin.Console.outPrintln("Mapping segments : " +
+ // segment.getSegId() + "\\"s
// + segStartEnd);
List<Residue> residues = segment.getListResidue().getResidue();
for (Residue residue : residues)
*/
public Entity getEntityByMostOptimalMatchedId(String chainId)
{
- // jalview.bin.Console.outPrintln("---> advanced greedy entityId matching block
+ // jalview.bin.Console.outPrintln("---> advanced greedy entityId matching
+ // block
// entered..");
List<Entity> entities = siftsEntry.getEntity();
SiftsEntitySortPojo[] sPojo = new SiftsEntitySortPojo[entities.size()];
++count;
}
Arrays.sort(sPojo, Collections.reverseOrder());
- // jalview.bin.Console.outPrintln("highest matched entity : " + sPojo[0].entityId);
+ // jalview.bin.Console.outPrintln("highest matched entity : " +
+ // sPojo[0].entityId);
// jalview.bin.Console.outPrintln("highest matched pid : " + sPojo[0].pid);
if (sPojo[0].entityId != null)