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

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

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

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.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.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

mapping.loadFile(reverseCvFilename);
origin: uk.ac.ebi.intact.util/data-conversion

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

mapping.loadFile(reverseCvFilename);
uk.ac.ebi.intact.application.dataConversion.psiDownloadCvMappingloadFile

Javadoc

Load a tabulation separated flat file having the following format:
 
<MI:1>   <shortalbel1>   <MI:2> <shortalbel2> 

<MI:1> : PSI MI reference of the PSI2 term <shortalbel1> : shortlabel of the PSI2 term (only for clarity) <MI:2> : PSI MI reference of the PSI1 term <shortalbel2> : shortlabel of the PSI1 term (only for clarity)

notes: - all blank lines are skipped - all lines starting with # are considered as comments (hence skipped) - if <MI:1> is a star ('*') we load all the terms, picking the type based on <MI:2>'s - if <MI:2> is a star ('*') we load all the terms, picking the type based on <MI:1>'s

Popular methods of CvMapping

  • <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.
  • 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
  • onRequestPermissionsResult (Fragment)
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Best IntelliJ plugins
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