Codota Logo
File$RelatedFile.getRelation
Code IndexAdd Codota to your IDE (free)

How to use
getRelation
method
in
org.opencb.opencga.core.models.File$RelatedFile

Best Java code snippets using org.opencb.opencga.core.models.File$RelatedFile.getRelation (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: opencb/opencga

fileIds.addAll(
    transformedFile.getRelatedFiles().stream()
        .filter(myFile -> myFile.getRelation() == File.RelatedFile.Relation.PRODUCED_FROM)
        .map(File.RelatedFile::getFileId)
        .collect(Collectors.toSet())
origin: opencb/opencga

transformedFromFileIds.addAll(
    fileAux.getRelatedFiles().stream()
        .filter(myFile -> myFile.getRelation() == File.RelatedFile.Relation.PRODUCED_FROM)
        .map(File.RelatedFile::getFileId)
        .collect(Collectors.toSet())
origin: opencb/opencga

if (File.RelatedFile.Relation.PRODUCED_FROM.equals(relatedFile.getRelation())) {
  Query query = new Query(FileDBAdaptor.QueryParams.UID.key(), relatedFile.getFileId());
  file = get(studyStr, query, null, sessionId).first();
origin: opencb/opencga

private File getOriginalFromTransformed(String study, File file, String sessionId)
    throws URISyntaxException, CatalogException {
  // Look for the vcf file
  String vcfId = null;
  // Matchup variant files, if missing
  if (file.getRelatedFiles() == null || file.getRelatedFiles().isEmpty()) {
    catalogManager.getFileManager().matchUpVariantFiles(null, Collections.singletonList(file), sessionId);
  }
  for (File.RelatedFile relatedFile : file.getRelatedFiles()) {
    if (File.RelatedFile.Relation.PRODUCED_FROM.equals(relatedFile.getRelation())) {
      long fileUid = relatedFile.getFileId();
      // FIXME!!!
      vcfId = catalogManager.getFileManager().get(study,
          new Query(UID.key(), fileUid),
          new QueryOptions(QueryOptions.INCLUDE, ID.key()), sessionId).first().getId();
      break;
    }
  }
  if (vcfId == null) {
    logger.error("This code should never be executed. Every transformed avro file should come from a registered vcf file");
    throw new CatalogException("Internal error. No vcf file could be found for file " + file.getPath());
  }
  QueryResult<File> vcfQueryResult = fileManager.get(study, vcfId, FILE_GET_QUERY_OPTIONS, sessionId);
  if (vcfQueryResult.getNumResults() != 1) {
    logger.error("This code should never be executed. No vcf file could be found for vcf id " + vcfId);
    throw new CatalogException("Internal error. No vcf file could be found under id " + vcfId);
  }
  file = vcfQueryResult.first();
  return file;
}
origin: opencb/opencga

    .filter(relatedFile -> relatedFile.getRelation().equals(File.RelatedFile.Relation.PRODUCED_FROM))
    .collect(Collectors.toList());
assertEquals(1, relatedFiles.size());
origin: opencb/opencga

    .filter(relatedFile -> relatedFile.getRelation().equals(File.RelatedFile.Relation.PRODUCED_FROM))
    .collect(Collectors.toList());
assertEquals(1, relatedFiles.size());
org.opencb.opencga.core.modelsFile$RelatedFilegetRelation

Popular methods of File$RelatedFile

  • getFileId
  • <init>

Popular in Java

  • Finding current android device location
  • getExternalFilesDir (Context)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now