Tabnine Logo
CvMapping
Code IndexAdd Tabnine to your IDE (free)

How to use
CvMapping
in
uk.ac.ebi.intact.application.dataConversion.psiDownload

Best Java code snippets using uk.ac.ebi.intact.application.dataConversion.psiDownload.CvMapping (Showing top 20 results out of 315)

origin: uk.ac.ebi.intact.app/data-conversion

  public static void main( String[] args ) throws IntactException {

    CvMapping mapping = new CvMapping();

    try
    {
      log.debug( "Database: " + IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getBaseDao().getDbName() );
      long start = System.currentTimeMillis();
      mapping.loadFile( new File( args[ 0 ] ));
      long stop = System.currentTimeMillis();

      log.debug( "Loading time: " + ( stop - start ) + "ms" );
    }
    catch (SQLException e)
    {
      e.printStackTrace();
    }

  }
}
origin: uk.ac.ebi.intact.util/data-conversion

CvObject to = (CvObject) ois.readObject();
addMapping( aMap, from, to );
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

String mapping = getPsiReference( from ) + " --> " + getPsiReference( to );
  String fromCls = getSimpleName( from.getClass() );
  String toCls = getSimpleName( to.getClass() );
  String msg = fromCls + "->" + toCls;
  String existing = getPsiReference( from ) + " --> " + getPsiReference( (CvObject) map.get( from ) );
  System.err.println( "WARNING: mapping " + mapping + " is conflicting with " + existing );
  System.err.println( "Skip it." );
origin: uk.ac.ebi.intact.util/data-conversion

Map loadedMap = loadSerializedMap( serializedFile );
              CvObject _fromCvObject = (CvObject) iterator.next();
              addMapping( map, _fromCvObject, toCvObject );
              CvObject _toCvObject = (CvObject) iterator.next();
              addMapping( map, fromCvObject, _toCvObject );
            addMapping( map, fromCvObject, toCvObject );
serializeMapping( map, serializedFile );
origin: uk.ac.ebi.intact.app/data-conversion

cvMapping = new CvMapping();
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

CvObject toCvObject = session.getReverseCvMapping().getPSI2toPSI1( cv );
if ( toCvObject != null && ! toCvObject.equals( cv ) ) {
  String msg = "NOTE: '" + cv.getShortLabel() + "' remapped to '" + toCvObject.getShortLabel() + "'.";
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

Map loadedMap = loadSerializedMap( serializedFile );
              CvObject _fromCvObject = (CvObject) iterator.next();
              addMapping( map, _fromCvObject, toCvObject );
              CvObject _toCvObject = (CvObject) iterator.next();
              addMapping( map, fromCvObject, _toCvObject );
            addMapping( map, fromCvObject, toCvObject );
serializeMapping( map, serializedFile );
origin: uk.ac.ebi.intact.util/data-conversion

cvMapping = new CvMapping();
origin: uk.ac.ebi.intact.util/data-conversion

CvObject toCvObject = session.getReverseCvMapping().getPSI2toPSI1( cv );
if ( toCvObject != null && ! toCvObject.equals( cv ) ) {
  String msg = "NOTE: '" + cv.getShortLabel() + "' remapped to '" + toCvObject.getShortLabel() + "'.";
origin: uk.ac.ebi.intact.app/data-conversion

Map loadedMap = loadSerializedMap( serializedFile );
              CvObject _fromCvObject = (CvObject) iterator.next();
              addMapping( map, _fromCvObject, toCvObject );
              CvObject _toCvObject = (CvObject) iterator.next();
              addMapping( map, fromCvObject, _toCvObject );
            addMapping( map, fromCvObject, toCvObject );
serializeMapping( map, serializedFile );
origin: uk.ac.ebi.intact.util/data-conversion

  public static void main( String[] args ) throws IntactException {

    CvMapping mapping = new CvMapping();

    try
    {
      log.debug( "Database: " + IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getBaseDao().getDbName() );
      long start = System.currentTimeMillis();
      mapping.loadFile( new File( args[ 0 ] ));
      long stop = System.currentTimeMillis();

      log.debug( "Loading time: " + ( stop - start ) + "ms" );
    }
    catch (SQLException e)
    {
      e.printStackTrace();
    }

  }
}
origin: uk.ac.ebi.intact.util/data-conversion

String mapping = getPsiReference( from ) + " --> " + getPsiReference( to );
  String fromCls = getSimpleName( from.getClass() );
  String toCls = getSimpleName( to.getClass() );
  String msg = fromCls + "->" + toCls;
  String existing = getPsiReference( from ) + " --> " + getPsiReference( (CvObject) map.get( from ) );
  System.err.println( "WARNING: mapping " + mapping + " is conflicting with " + existing );
  System.err.println( "Skip it." );
origin: uk.ac.ebi.intact.app/data-conversion

CvObject to = (CvObject) ois.readObject();
addMapping( aMap, from, to );
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

cvMapping = new CvMapping();
origin: uk.ac.ebi.intact.app/data-conversion

CvObject toCvObject = session.getReverseCvMapping().getPSI2toPSI1( cv );
if ( toCvObject != null && ! toCvObject.equals( cv ) ) {
  String msg = "NOTE: '" + cv.getShortLabel() + "' remapped to '" + toCvObject.getShortLabel() + "'.";
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

  public static void main( String[] args ) throws IntactException {

    CvMapping mapping = new CvMapping();

    try
    {
      log.debug( "Database: " + IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getBaseDao().getDbName() );
      long start = System.currentTimeMillis();
      mapping.loadFile( new File( args[ 0 ] ));
      long stop = System.currentTimeMillis();

      log.debug( "Loading time: " + ( stop - start ) + "ms" );
    }
    catch (SQLException e)
    {
      e.printStackTrace();
    }

  }
}
origin: uk.ac.ebi.intact.app/data-conversion

String mapping = getPsiReference( from ) + " --> " + getPsiReference( to );
  String fromCls = getSimpleName( from.getClass() );
  String toCls = getSimpleName( to.getClass() );
  String msg = fromCls + "->" + toCls;
  String existing = getPsiReference( from ) + " --> " + getPsiReference( (CvObject) map.get( from ) );
  System.err.println( "WARNING: mapping " + mapping + " is conflicting with " + existing );
  System.err.println( "Skip it." );
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

CvObject to = (CvObject) ois.readObject();
addMapping( aMap, from, to );
origin: uk.ac.ebi.intact.util/data-conversion

mapping = new CvMapping();
mapping.loadFile(reverseCvFilename);
origin: uk.ac.ebi.intact.dataexchange.psimi.legacy/data-conversion

mapping = new CvMapping();
mapping.loadFile(reverseCvFilename);
uk.ac.ebi.intact.application.dataConversion.psiDownloadCvMapping

Javadoc

Holds a Controlled Vocabulary Mapping.

The mapping is loaded from a file and the CvMapping is then queried in order to get a remapped CV.

Most used methods

  • <init>
    Construct a CvMapping object.
  • addMapping
    Add an association into the map. It takes care of : * circular mapping (a term to itself) * mapp
  • getPSI2toPSI1
    If there is a mapping available, replace the given CV by an other one.
  • getPsiReference
    Extract from the given CV term its PSI-MI id (if any).
  • getSimpleName
    Get the simple name of a Class Object.
  • loadFile
    Load a tabulation separated flat file having the following format:
  • loadSerializedMap
    Load mapping from a serialized file. The format is as follow: count of associations
  • serializeMapping
    Serialize the CV mapping into a file. count of associations from

Popular in Java

  • Making http requests using okhttp
  • findViewById (Activity)
  • getApplicationContext (Context)
  • requestLocationUpdates (LocationManager)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now