Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// BridgeDb,
// An abstraction layer for identifier mapping services, both local and online.
// Copyright 2006-2009 BridgeDb developers
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
package org.bridgedb.tools.batchmapper;
import java.io.File;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.LineNumberReader;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.net.MalformedURLException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.Set;
import org.bridgedb.BridgeDb;
import org.bridgedb.DataSource;
import org.bridgedb.IDMapperException;
import org.bridgedb.IDMapperStack;
import org.bridgedb.Xref;
import org.bridgedb.bio.DataSourceTxt;
public class BatchMapper
{
private static class Settings
{
File fInput = null;
File fOutput = null;
File fReport = null;
List connectStrings = new ArrayList();
DataSource is = null;
DataSource os = null;
int inputColumn = 0;
int verbose = 0; // 0, 1 or 2
int mode = 0; // 0 or 1
int multiMap = 0; // 0 or 1
}
public static void main(String[] args)
{
BatchMapper mapper = new BatchMapper();
mapper.run(args);
}
public void printUsage()
{
String version = "";
try
{
Properties props = new Properties();
props.load (BridgeDb.class.getResourceAsStream("BridgeDb.properties"));
version = props.getProperty("bridgedb.version") +
" (r" + props.getProperty("REVISION") + ")";
}
catch (IOException ex) { version = ex.getMessage(); }
System.out.println ("BatchMapper version " + version);
System.out.print (
"BatchMapper is a tool for mapping biological identifiers.\n" +
"Usage:\n"+
" batchmapper -ls \n" +
" List system codes \n" +
" or\n" +
" batchmapper \n" +
" [-v|-vv] \n" +
" [-mm] \n" +
" [-g ] \n " +
" [-t ] \n " +
" [-i ] \n" +
" -is \n" +
" -os